[Live-devel] get H.264 frame width and height out of SPS

Ross Finlayson finlayson at live555.com
Thu Mar 23 08:45:06 PDT 2017


> 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 - because the “LIVE555 Streaming Media” software doesn’t do any video decoding (or encoding), and what you’re asking for is a H.264 decoder.  Specifically, you want to decode the SPS NAL unit - the one that begins with 0x67 - to figure out the video width and height.

You can do this - but you’ll need to look in H.264 decoding software (e.g., “ffmpeg”) for the answer.  Or you can look for the official ISO/IEC document that describes H.264:
	ISO/IEC 14496-10


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list