user1588918
user1588918

Reputation: 21

How to get the frame rate from h.264 video stream?

How to get frame rate and bitrate from h.264 video stream? I'm able to get width and height from SPS NAL unit but not the frame rate.

Upvotes: 2

Views: 5214

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69662

vui_parameters of SPS NAL has fields: timing_info_present_flag, num_units_in_tick, time_scale, fixed_frame_rate_flag - together they define frame rate of the stream (when/if applicable).

Upvotes: 5

Related Questions