[FFmpeg-devel] How to get width/height of an H264 stream using its SPS ?
h.leppkes at gmail.com
Tue Aug 4 12:39:50 CEST 2015
On Tue, Aug 4, 2015 at 12:36 PM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> On Tue, Aug 4, 2015 at 4:49 AM, PROMONET Michel <
> michel.promonet at thalesgroup.com> wrote:
>> But h264.h not seems to be a public include.
>> Thanks, I will looking in this direction.
> It isn't, we never expose much of codec internals. But I'm pretty sure
> you'll need codec internals for this kind of stuff, so I'd just compile
> against a local/static version of ffmpeg and go this route. The public API
> won't get you far for such highly codec-specific stuff...
Parsing the SPS up to the point to get the width/height isn't that
hard, grab the H264 specs from the web and implement it - its pretty
Or reference the avcodec h264 code to see how its parsed.
More information about the ffmpeg-devel