View Full Version : x264 adding five frames to the start of every vid?
MasamuneXGP
28th May 2006, 03:00
Hello all. The next problem on my rocky path of beginner encoding is that x264 is apperently prepending five frames, usually either black or whatever frame 1 is, to the start of the video. This is uncool because it throws off my audio sync (I encode audio-less at first, then mux the audio later). I'll post the x264 config if asked.
unmei
28th May 2006, 03:22
/me thinks the use of mp4 or mkv cure this problem..
Caroliano
28th May 2006, 03:40
/me complete unmei saying that you shoud also not use virtualdub(mod) for encoding x264 if you care about these problems.
Mkv output of Vdubmod will have the same problem because it is VFW related.
To see why that, read this: http://forum.doom9.org/showthread.php?t=80430
It's almost the same for AVC, but a bit worse.
unmei
28th May 2006, 05:14
yes in that you are right..
i didn't think about he possibility to use VDM to write compliance-mode avc mkvs. I meant not to use a vfw based program of course.
celtic_druid
28th May 2006, 05:50
Well if you must use VfW, then I would suggest avs2avi 1.39x. You need to have x264 set to use the fourCC "h264" to.
Well if you must use VfW, then I would suggest avs2avi 1.39x. You need to have x264 set to use the fourCC "h264" to.i am sure there is no reason to use vfw except virtualdub
if you want to convert your virtualdub .avi to a nice .mp4 (and later on maybe .mkv) use avi2mp4 (http://forum.doom9.org/showthread.php?t=108172)
celtic_druid
28th May 2006, 13:45
My point is that using avs2avi 1.39x you should always get the same number of frames out as you put in. With other VfW decoders, you might not.
MasamuneXGP
28th May 2006, 18:54
Many thanks, I'll use MeGUI and encode to MP4 then. Question, if I should ever need to edit the resulting video in a VFW program, could I run the MP4 through an AVISynth script and get the same number of frames?
Many thanks, I'll use MeGUI and encode to MP4 then. Question, if I should ever need to edit the resulting video in a VFW program, could I run the MP4 through an AVISynth script and get the same number of frames?yes, tough you might want to not use vfw for editing, but eg use avidemux
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.