This would still depend on a constant frame rate though? I can't guarantee that the source or encoder won't drop frames so it needs to be robust against that.

Besides, my encoder has options for VUI but the documentation states that these parameters are ignored.

On 03/19/2015 10:47 AM, Ross Finlayson wrote:
Having tested this further I realised that the H264VideoStreamFramer assumes a constant 25fps.

Not exactly. The code assumes a frame rate of 25 fps *only if* there is no timing information in the SPS NAL units.

If you want your video to be streamed at the correct frame rate, you should make sure that the SPS NAL unit contains "vui_parameters", which in turn has the "timing_info_present_flag" set, with the "time_scale" and "num_units_in_tick" fields set. In other words, you'll need to reconfigure your encoder to give you this information (if it doesn't do so already).


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/



_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to