[x264-devel] Re: Support for VFR in MP4 output

Mike Matsnev mike at po.cs.msu.su
Fri Oct 6 00:30:02 CEST 2006


Tomas Carnecky wrote:
> I'm again at the point where I have a video file which contains semi-raw 
> YUV images and I want to convert it to something usable (mp4/avi/mkv 
> etc). I'm fine if you don't accept my demuxer-patch, but the solution 
> someone on this ML suggested (that I should create a filter, eg. `cat 
> file | my-filter | x264 -o video.mp4 -`) won't work since x264 
> apparently doesn't accept y4m input from stdin, it always assumes a raw 
> yuv stream. I'd need y4v to be able to feed x264 with VFR video (store 
> the PTS somewhere in the frame header), but I can forget about all that 
> if x264 never will support VFR.
> 
> I can always convert the video to CFR in my filter, but I really want to 
> keep the original video as long as possible (no dropped or duplicated 
> frames etc).
> 
> any suggestions?
You can encode to mkv, write pts to a separate text file, and apply vfr
timestamps later on with mkvmerge.

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list