[x264-devel] without SPS/PPS?

Jason Garrett-Glaser darkshikari at gmail.com
Wed Sep 23 13:11:53 CEST 2009


On Wed, Sep 23, 2009 at 4:06 AM, Takashi Mochizuki
<mochi at da2.so-net.ne.jp> wrote:
> Simple question.
> Is it true that current x264 could emit stream without SPS/PPS?
> - SPS, PPS is emitted only when x264_encoder_headers() is called.
> - on the other hand, ffmpeg svn19977 shows GlobalHeader flag requires to
> make SPS/PPS
> - It seems that ffmpeg without GLOBAL_HEADER flag build avc stream without
> SPS/PPS.
> My understanding is as following:
> - sps/pps should be embed at least once at start, or into stream
> periodically if stream is not in, such like mp4 file format.
> I am afraid of my misunderstanding.
> Takashi Mochizuki

With GLOBAL_HEADER, sps/pps is only emitted when encoder_headers is called.

Without GLOBAL_HEADER, sps/pps is emitted at every single IDR frame,
without having to call encoder_headers.

Dark Shikari


More information about the x264-devel mailing list