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

Roland Aigner Roland.Aigner at aec.at
Thu Mar 23 09:45:29 PDT 2017


Okay, thanks. I thought the SPS would be related to SDP... But makes sense, I just recently realized it's encoded in a NAL unit.

 -----Ursprüngliche Nachricht-----
Von: live-devel [mailto:live-devel-bounces at ns.live555.com] Im Auftrag von Ross Finlayson
Gesendet: Donnerstag, 23. März 2017 16:45
An: LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>
Betreff: Re: [Live-devel] get H.264 frame width and height out of SPS

> 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/


_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel



More information about the live-devel mailing list