Log in

View Full Version : DirectShowSource and improper VOB playback


Zunino
24th January 2006, 02:54
Hello.

Brand new user of Avisynth here, so please bear with me. I have indeed tried to find the answer to my question before posting, but found nothing which seemed to match the subject under consideration.

I have extracted a small chapter from one of my discs (FWIW, it's the Almost Famous DVD (http://www.imdb.com/title/tt0181875/)) using DVD Decrypter. I selected only the video and Dolby 2ch audio track, but did not "demux" them. So the result was an IFO + VOB pair of files. Now for the problem itself: if I play the VOB file directly, either using BSplayer or MediaPlayer (the old one; version 9.0 will complain that it is not a valid DVD), it will play flawlessly. However, if I create a simple .avs with an only line that reads:

DirectShowSource("VTS_01_1.VOB")

and save it to, say, "AlmostFamous.avs", the playback gets totally out of order, with both the video and audio seeming way accelerated, especially the audio. The video size also seems to change.

What could be going on? Why does the playback not remain the same? So far, all my avs file is doing is referring to the video file. I am making no other changes nor applying any filters. Could it be possible that playing the VOB directly uses a given video and audio decoder which is different from that used when going through the avs? How can I check it? What can I do about it?

Any tips or suggestions will be highly appreciated.

Thank you very much,

--
Ney André de Mello Zunino

Revgen
24th January 2006, 03:54
It would be better to use DGIndex create a .d2v file and play it back with mpeg2source.

You can also demux the .ac3 stream with DGIndex and use the nic's audio (http://forum.doom9.org/showthread.php?p=632274#post632274) plugin to play it back.

For example.

LoadPlugin("yourdrive:\DGDecode.dll")
LoadPlugin("yourdrive:\nicaudio.dll")

video=mpeg2source("yourdrive\yourvideo.d2v")
audio=NicAC3Source("yourdrive\yourac3file.ac3")

audiodub(video,audio)

Pookie
24th January 2006, 05:57
Welcome Zunino ! Good movie, and Revgen has the correct answer. DGindex is a necessary utility, and our very own Neuron2 is the author.

Stay with it. Takes a little time to get familiar with AviSynth (I learn new things every day), but it is by far the BEST video processing app. (I can say that Don, because in this case it is true) :D

Zunino
25th January 2006, 22:44
Thank you both very much! Revgen for hitting the nail right on the head and Pookie for the warm welcome. It's very encouraging for a beginner to get this kind of response from the more experienced members of a newly-joined community.

FWIW, here's the script I ended up using:

LoadPlugin("D:\DGMPGDec 1.4.6 Beta 6\DGDecode.dll")
LoadPlugin("D:\NicAudio\NicAudio.dll")
video = MPEG2Source("Love Thing.d2v")
audio = NicAC3Source("Love Thing T03 2_0ch 192Kbps DELAY -181ms.ac3")
audio = Amplify(audio, 3)
AudioDub(video, audio)
DelayAudio(-.181)
Trim(0, 1530)
FadeOut(30)

I am really interested in learning how to make the most out of Avisynth, so, if there is anything notoriously inadequate in the script above or if there's room for improvement, please let me know.

Cheers!

--
Ney André de Mello Zunino