PDA

View Full Version : Mpegdecoder no sound


coaa
8th July 2004, 05:38
I'm just trying to load an existing mpeg file into avisynth to convert it from pal -> ntsc

First question is why use a mpeg plugin to do this? Will I get the same results by just using directshowsource?

I downloaded a few mpegdecoder files from the avisynth site. The only one that works with a mpeg file is mpegdecoder. When I open the file with this plugin I get no audio. Am I missing something?

Why does it generate a d2v? Are there any mpeg plugins that just handle mpeg-2 formats without the d2v or is it somehow beneficial to use the d2v?

Lastly, can someone give me some suggestions on which mpeg plugin to use? I see a bunch listed on the avisynth site but some only work with d2v files and the a lot say RIP by the date column leading me to believe they are outdated.

Thanks for the help.

Mug Funky
8th July 2004, 12:40
hehe... all i can say is read the guides and thankyou for choosing avisynth :)

mpegdecoder only decodes the video (it'll work on raw m2v streams with no audio as well), and creates a d2v file to keep track of what's in the stream and how it is to be decoded (these can be edited in notepad/textpad or whatever if so desired).

[edit]

i'm of the opinion that ac3 sound should not be touched, and the ripped file should be muxed into the final container (be it avi, ogm, mkv, or even quicktime if it supports ac3) as is. ac3 is too fragile to be transcoded without ugliness becoming apparent.

so it's probably best the sound doesn't make it into avisynth. of course it does mean that delays should be taken into account, and frame-rate changes should be approached very carefully so as not to introduce a desynch in the audio.

Bogalvator
8th July 2004, 19:34
If it's an MPEG-1 file then it's generally recommended to use DirectShowSource("...") instead of MPEGDecoder. This has the added bonus of including the sound :)

If it's an MPEG-2 file then DGDecode is generally recommended:
http://neuron2.net/fixd2v/decodefix.html
This won't have audio though...

coaa
8th July 2004, 20:48
Ahh I see. So just handle the audio seperately. Duh! When I opened the mpeg in avisynth and didn't get any sound I just assumed it was a problem. So all I have to do is rip the audio and mux the video and audio streams in avisynth using the audiodub function (after I work out the timing issues). Thanks guys!