-1

I use ffmpeg to send the RTP of mp4 (only video) to my RTP Server. And I could retrieve the RTP packet and get the 67 42 ... (sps).

But I want to calculate the frame rate from the sps(using vui(if flag == 1), time_tick and time_scale).

Are there any source code(such as open source) could resolve the sps ?

thanks !

Roman R.
  • 68,205
  • 6
  • 94
  • 158
H. BY
  • 21
  • 1
  • 5

1 Answers1

2
Community
  • 1
  • 1
Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • Hi thank for your help Now I can get the VUI_flag, but I could not fetch the time_scale and tick. Because there are some variable bits when I parse the bits such as bit_depth_luma_minus8(ue(v)) , bit_depth_chroma_minus8(ue(v)), offset_for_ref_frame(se(v)) and so on. – H. BY Mar 01 '16 at 15:33
  • [Code](https://github.com/cplussharp/graph-studio-next/blob/master/src/H264StructReader.cpp#L76) behind link 2 above succeeds in parsing this variable length data. – Roman R. Mar 01 '16 at 15:39