[FFmpeg-devel] Does rtspenc actually support AVFMT_GLOBALHEADER?

Martin Storsjö martin at martin.st
Mon Aug 19 21:32:33 EEST 2024


On Mon, 19 Aug 2024, John Cox wrote:

> Does rtspenc actually support AVFMT_GLOBALHEADER? It is specified in the
> FFOutputFormat flags but I can't see anywhere in the code where
> extradata is referenced like it is in other output formats which support
> that flag.
>
> I ask because I have an encoder that supports the flag and when set
> removes SPS/PPS from the stream and puts them in extradata instead which
> I believe is the correct behavior - if it isn't then that is my problem
> and I'd appreciate clarification of what is meant to occur. The
> transmitted RTSP stream then doesn't contain SPS/PPS.

That's correct, the SPS/PPS gets transmitted in the SDP description, not 
in-band.

// Martin



More information about the ffmpeg-devel mailing list