Log in

View Full Version : No audio with mpg in avisynth


eyemessiah
16th January 2005, 00:22
Hello.

Extremely simple .avs

LoadPlugin("f:\ba\MPEGDecoder.dll")
MpegSource("F:\ba\0012.mpg")

Video plays back fine, but there is no audio.

I have also tried DirectShowSource but the result is exactly the same.

The file 0012.mpg has working audio that plays back fine normally.


I'm stumped for now.

Amy tips?


thanks :)

rfmmars
16th January 2005, 05:19
Yes that is correct...no audio............Use Virtualdub to demux the audio first and then load it separatly on a line in the Avisynth script.

richard
photorecall.net

ObiKenobi
16th January 2005, 05:54
Originally posted by eyemessiah
Video plays back fine, but there is no audio.

Of course there won't be, that only loads the video.

eyemessiah
16th January 2005, 08:25
Fair enough!

That's exactly what i needed to know.


thanks,

eyemessiah
16th January 2005, 08:35
Hrm. I can't seem to figure out how to batch extract wavs from mpgs in virtualdub. Even if I do manage to get all the audio out, the batch-avs script writer page (http://www.zenaria.com/avs.jsp) doesn't suggest how to handle multiple %filenames per script.

Basically what I am trying to do is clip 115 frames or so of a couple of hundred mpgs. I was trying to use avisynth so i could use the "trim" command and batch process the trimmed avs's in virtualdub (using dubman) and end up with a lot of trimmed xvid avis rather than untrimmed mpgs.

Am I on the right track?

Is there some easier way I have missed?


thanks a lot,