[libav-api] Cannot open stream

Joshua Kordani jkordani at lsa2.com
Tue Jun 10 17:28:11 CEST 2014

Are you aware that the sprop-parameter-sets contain the sps and pps nal 
packets encoded in base64?  Is your code looking for the sps and pps 
nals in the rtp stream itself?  Are you accounting for whether or not 
the sps and pps are coming in-stream vs in the sdp?

If your rtp reception code can produce an h264 annex b file, can vlc 
play it?   Making your code create this file will tell you that you have 
everything you need in order to pass data to the decoding library.  If 
vlc can play the h264 annex b that you create, then you know that all 
you have left to do is figure out how to pass this data to the library 
to decode it yourself, most likely.

Joshua Kordani
LSA Autonomy

On 6/10/14 8:11 AM, Manuel Torres wrote:
> Captured with Wireshark:
> v=0
> o=- 1293840088672 1293840088672 IN IP4
> s=Live
> t=0 0
> m=audio 0 RTP/AVP 0
> c=IN IP4
> a=control:rtsp://
> m=video 0 RTP/AVP 96
> c=IN IP4
> a=control:rtsp://
> a=fmtp:96 packetization-mode=0; profile-level-id=42A01E;
> sprop-parameter-sets=J01AH42NKBaHt/4AQAA21BgYGQAAAwPoAADDUOhAB08AAQcau8uNCADp4AAg41d5cE+iwA==,KO48gA==
> a=rtpmap:96 H264/90000
> a=x-avg-params:96 source-height=1080; source-width=1920
> m=application 0 RTP/AVP 98
> c=IN IP4
> a=control:rtsp://
> a=rtpmap:98 vnd.onvif.metadata/90000
> On Tue, Jun 10, 2014 at 12:58 PM, Luca Barbato <lu_zero at gentoo.org> wrote:
>> On 10/06/14 12:44, Manuel Torres wrote:
>>> Would there be any other way to get the missing data? I guess that there
>>> must be a way since VLC and MPlayer open the stream.
>> Could you please provide the sdp?
>> lu
>> _______________________________________________
>> libav-api mailing list
>> libav-api at libav.org
>> https://lists.libav.org/mailman/listinfo/libav-api
> _______________________________________________
> libav-api mailing list
> libav-api at libav.org
> https://lists.libav.org/mailman/listinfo/libav-api

More information about the libav-api mailing list