[Live-devel] get H.264 frame width and height out of SPS
Ross Finlayson
finlayson at live555.com
Thu Mar 23 22:00:59 PDT 2017
> On Mar 23, 2017, at 8:45 AM, Ross Finlayson <finlayson at live555.com> wrote:
>
>> Given that I would expect this to be a quite common task, I wanted to ask if there are some helper classes/functions in live555 that already prase the SPS and give me what I want.
>
> No there aren’t
I realized just now that this isn’t totally correct.
We *do* have some H.264 (and H.265) parsing code in the file “liveMedia/H264or5VideoStreamFramer.cpp”. This is used to parse raw H.264 (and H.265) video byte streams - in particular, so that our servers know the proper frame rate for the video.
Note in particular the function “analyze_seq_parameter_set_data()”, which does some parsing of SPS NAL units. (It does this to look for timing information, not width/height, but you might still find it useful.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list