Log in

View Full Version : x264 and MP4 compatibility


Pages : 1 [2]

akupenguin
17th October 2006, 22:50
1. akupenguin says that the framerate is always written and apparently (according to him) this is true if it is specified on the command line or not. But it doesn't appear there is a designated place within the specification as to where it is written and perhaps even required to be written in the raw form.
ITU-T H.264 (http://akuvian.org/src/x264/ITU-T_H264.pdf.gz) page 311 section E.1.1 "VUI parameters syntax", specifically the variables "num_units_in_tick", "time_scale", and "fixed_frame_rate_flag". And page 320 where their semantics are specified.
True, the encoder is not required to write a framerate in the stream (note the surrounding if(), and that the whole vui_parameters() is also optional). But it's certainly defined. And x264 chooses to always write vui, including framerate.

dumbuser
18th October 2006, 00:24
I guess that's what I needed to hear. Including that my assumptions are nonsense and why. :) But really I don't believe I was ignoring anyone or anything here and I most certainly hope no one thought me disrespectful as this was furthest from my mind.

I appreciate the time and effort everyone put in to make this dumbuser understand. Perhaps with a little luck someone will implement reading for GPAC and other muxing utilities in the future. But for now at least, I have a way of working and dealing with all this.

:thanks:

akupenguin
18th October 2006, 05:49
Just for you, I implemented h264 framerate detection in GPAC, and posted the 4 line patch to the sourceforge bugtracker (http://sourceforge.net/tracker/index.php?func=detail&aid=1579407&group_id=84101&atid=571738).

dumbuser
18th October 2006, 08:07
Thank You! With any luck, perhaps it will show up in the next revision. :)

bond
18th October 2006, 18:41
:thanks: