PDA

View Full Version : Trouble loading a .mp4 file in Vdubmod using AVIsynth


Cyber Akuma
1st June 2006, 00:08
Ok, I have an .mp4 file thats encoded in x264/AAC. I want to clip two scenes out of (direct stream copy) in order to re-load the avi in vdub and extract the frames to make an animated gif.

At first I tried using DirectshowSource("filename.mp4"), but the video came out way too fast, not to mention that 180 megs was a little large for a 10 second clip.

So I loaded the .mp4 file in MPC and checked the FPS, it was listed as 23.98, so then I tried DirectshowSource("filename.mp4", fps=23.98), same deal.

Finally I tried DirectshowSource("filename.mp4", fps=23.98, convertfps=true).

But no matter what I tried, in all 3 encode attempts (all sound streams were disabled and it was set to direct stream copy) the clip I extracted played way too fast and was HUGE. I have no idea what im doing wrong, vdubmod is reading the .mp4 video/audio just fine, but when I try to extract something it messes up the video's speed.

foxyshadis
1st June 2006, 04:25
Avisynth->vdub will never work for extracting streams, all you'll extract is the decoded, uncompressed output. You should use yamb or avimuxgui instead. The directshowsource part is weird, but directshowsource has a habit of being weird.

bond
1st June 2006, 13:31
directshowsource with setting the fps should work actually.
what mp4 parser filter are you using? maybe you want to try another one

also are you sure that you are not setting a wrong fps via virtualdub itself?

Cyber Akuma
2nd June 2006, 02:13
directshowsource with setting the fps should work actually.
what mp4 parser filter are you using? maybe you want to try another one

also are you sure that you are not setting a wrong fps via virtualdub itself?

Halli for the splitter, and CoreAAC for the h264 decoder.

And to be honest I am not 100% sure thats the FPS of the source, I played the file in MPC and looked at it's properties, thats what MPC listed the FPS as being.

Cyber Akuma
30th June 2006, 05:51
Anyone have any ideas or tips or advice or anything?

Wilbert
30th June 2006, 20:01
Could you upload the MP4 somewhere?

Cyber Akuma
30th June 2006, 20:54
For some reason I tried the exact same .avs script yesterday and it actually worked fine, at least fine enough for the animated .gif I wanted to create, strange because im pretty sure I didnt update avisynth or any other components.