[FFmpeg-devel] How to get width/height of an H264 stream using its SPS ?

wm4 nfxjfg at googlemail.com
Thu Jul 30 17:05:38 CEST 2015

On Thu, 30 Jul 2015 16:58:38 +0200
PROMONET Michel <michel.promonet at thalesgroup.com> wrote:

> Hi Ronald,
> Thanks for the quick answer, following the code this was also my guess.
> From my side I feel that it could be nice to use ffmpeg to decode SPS without any stream, I would like to avoid an other processing of the SPS.
> Is there a particular reason for hiding width/height before decoding ? and could it be a potential evolution of ffmpeg ?

This would rather be a de-evolution, since the trend is towards storing
all per-frame information in AVFrame, i.e. after decoding. (With
multithreading enabled, it's not exactly clear when a SPS is processed.)

More information about the ffmpeg-devel mailing list