[Live-devel] testRTSPClient / H.264 Network Camera Stream

Ross Finlayson finlayson at live555.com
Fri Apr 26 12:16:28 PDT 2013


>> Using the library, what is the most efficient way to get access to the H.264 portion of the stream
>  
> >>Because this is a Frequently Asked Question, I have now added an entry for it to the FAQ.  See:
> >>http://www.live555.com/liveMedia/faq.html#testRTSPClient-how-to-decode-data
>  
> Re-reading your explanation above, in my ContinueAfterSETUP method,  should I do the following:
>  
> unsigned n_records=0;
> const char* sps = scs.subsession->fmtp_spropparametersets();   
> SPropRecord* pSPropRecord = parseSPropParameterSets( sps, n_records );
>  
> Now what do I send to my downstream decoder ??

Do something like:

for (unsigned i = 0; i < n_records; ++i) {
	pass the NAL unit pointed to by "psPropRecord[i]->sPropBytes" (of length "psPropRecord[i]->sPropLength") to your decoder
}
delete[] psPropRecord;


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130426/76b16a2e/attachment.html>


More information about the live-devel mailing list