[x264-devel] vfr video

Tomas Carnecky tom at dbservice.com
Fri Jun 9 20:19:45 CEST 2006


I'm using a modified x264 executable to read raw YUV frames from a file
which also contains dimension and frame timestamps to convert it to
H.264. I've created new input functions and I also had to modify the mp4
muxer because mplayer doesn't seem to honor CTS_Offset, it displays the
frames as indicated by DTS. I also had to change the code that sets
'pic.i_pts' to set it only when p_read_frame() left it untouched
(because my read_frame() reads it from the file).

My code would need to be embedded in 'ifdef LINUX' or something similar
since I use mmap() and copy the data using memcpy() rather than fread().

I'm working on a 'fraps for linux' application and the YUV files is
simply glReadPixels() converted to YUV and dumped to the file.
Until I can figure out which lossless codec would be able to handle
1280x1024 or larger resolutions in realtime, I'll just dump the image
raw into the file. It 'only' uses 700MB/minute when capturing in
half-size (640x512) at 25fps.. and the 126minute video I've just
captured is only 49GB (it's only ~14fps though), but that seems to be a
reasonable size for a lossless video.

anyway.. maybe you can use something from my patch..

tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yukon.patch
Type: text/x-patch
Size: 6944 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20060609/98ae8331/attachment.bin 


More information about the x264-devel mailing list