Log in

View Full Version : X264 - Howto insert consecutive SPS/PPS


picturebuffer
2nd December 2014, 18:08
If I see that correctly, a SPS/PPS NAL is written once into a x264 bitstream per default before the first IDR Frame in the Stream. I didn`t find a cli-trigger to have them written before every IDR Frame throughout the stream.

Anybody here know if that is possible without modifying the code?

MasterNobody
2nd December 2014, 19:45
By default x264 cli insert SPS/PPS NALs before every keyframe (IDR-frame) if you output to raw (Annex B) H.264 elementary stream. If you output to MKV/MP4/FLV than you will have SPS/PPS only ones because this formats mandates global headers.

picturebuffer
3rd December 2014, 12:34
So true. Thanks!