<p>RTP is just a protocol for data transfer, it doesn't contain any specific information about the internals of the data transmitted.</p>

<p>The information should be contained in the .h264 stream. The SPS (Sequence Parameter Set) is what you want to look at, it should contain all the meta information you need. Here is a very nice detailed look at how the SPS is set up: <a href="https://www.cardinalpeak.com/the-h-264-sequence-parameter-set/" rel="nofollow noreferrer">https://www.cardinalpeak.com/the-h-264-sequence-parameter-set/</a></p>

<p>Though in theory you should be able to just mux this into a mp4 and it should play fine.</p>

CC BY-SA 3.0
2014-06-04T14:03:18.577Z
The motivation for the question was reading somewhere on the web (can't locate the references) that the playback of raw h264 data requires a value for the frame rate to be specified. Example. `mplayer H264-media-1.264 -fps 24`
TheMeaningfulEngineer
CC BY-SA 3.0
2014-06-04T15:24:03.457Z
Like it says in the article, the framerate can somtimes not be present in the SPS. I do not know the reason for that but in that case you will have to specify the framerate.
timonsku
CC BY-SA 4.0
2014-06-04T12:13:18.270Z
2020-03-08T20:55:47.507Z
2020-03-08T20:55:47.507Z
timonsku
<p>Does raw H264 data (<a href="https://supportforums.cisco.com/blog/149421/general-replay-video-packet-capture" rel="nofollow">stripped from an RTP stream</a>) contain information about the framerate?</p>

<p>Or is the framerate derived either from RTP timestamps for stream reproduction or written the container files (avi, mkv...) when playing a video from a file?</p>

CC BY-SA 3.0
2014-06-04T11:13:00.407Z
I guess you'll find an answer here: [how-to-get-the-frame-rate-from-h-264-video-stream](http://stackoverflow.com/questions/11893387/how-to-get-the-frame-rate-from-h-264-video-stream)
nwsp
<video><framerate>
H264 framerate information?
TheMeaningfulEngineer
# H264 framerate information?

(Asked by: username_0 on 2014-06-04)

Does raw H264 data ([stripped from an RTP stream](https://supportforums.cisco.com/blog/149421/general-replay-video-packet-capture)) contain information about the framerate?

Or is the framerate derived either from RTP timestamps for stream reproduction or written the container files (avi, mkv...) when playing a video from a file?

**Tags:** video, framerate

> **Comments:**
> **username_1**: I guess you'll find an answer here: [how-to-get-the-frame-rate-from-h-264-video-stream](http://stackoverflow.com/questions/11893387/how-to-get-the-frame-rate-from-h-264-video-stream)  

---

## 1 answers

### Answer by username_2 on 2014-06-04. Score: 4 | Accepted answer

RTP is just a protocol for data transfer, it doesn't contain any specific information about the internals of the data transmitted.

The information should be contained in the .h264 stream. The SPS (Sequence Parameter Set) is what you want to look at, it should contain all the meta information you need. Here is a very nice detailed look at how the SPS is set up: <https://www.cardinalpeak.com/the-h-264-sequence-parameter-set/>

Though in theory you should be able to just mux this into a mp4 and it should play fine.

> **Comments:**
> **username_0**: The motivation for the question was reading somewhere on the web (can't locate the references) that the playback of raw h264 data requires a value for the frame rate to be specified. Example. `mplayer H264-media-1.264 -fps 24`  
> **username_2**: Like it says in the article, the framerate can somtimes not be present in the SPS. I do not know the reason for that but in that case you will have to specify the framerate.  

---

