The SPS is usually sent in-band with the video stream, but it can also be extracted and stored separately. Having access to SPS information is crucial for various applications, including video players, editors, and analysers.
An advanced online parser will decode:
While this article focuses on online tools, consider offline options for sensitive or massive video streams: h264 sps parser online
Calculated from fields like pic_width_in_mbs_minus1 and pic_height_in_map_units_minus1 .
If you are dealing with HDR or HLG video, your SPS parser must support VUI parsing. Otherwise, you will misrepresent colors. The SPS is usually sent in-band with the
Defines the capabilities used (e.g., Baseline, Main, or High profiles ).
Specifies the performance constraints, such as maximum resolution and bit rate. If you are dealing with HDR or HLG
Technically, yes. The SPS is defined by the ITU-T H.264 specification (Exp-Golomb coding). You could take a hex dump and manually decode bits—but it is excruciatingly complex. For example, reading pic_order_cnt_type involves arithmetic decoding that is nearly impossible to do quickly with a calculator.
You received a video file. MediaInfo says it is 720p, but FFmpeg fails to decode it, claiming "Invalid SPS size."
While "online" web tools often come and go, these established open-source projects and professional analyzers are the industry standards for parsing SPS data: h264-parser - crates.io: Rust Package Registry