sprop-param-set

Chuck Crisler ccrisler at mutualink.net
Mon Apr 7 06:39:31 PDT 2014


Thank you Tim. I see that you are escaping the 'bad' characters ('=' and
','). I didn't think of that.

Chuck


On Fri, Apr 4, 2014 at 5:58 PM, Tim Müller <tim at centricular.com> wrote:

> On Fri, 2014-04-04 at 16:24 -0400, Chuck Crisler wrote:
>
> Hi Chuck,
>
> > OK, I am beginning to understand. Here is a part of the log.
> >
> > Apr  4 16:08:05 rtspdaemon[731]: 0:00:00.015266513   753  0x808d008
> > DEBUG             RTSPSocket RTSPSocket.cpp:380:StartPipeline: RTSP
> > Pipeline: ( udpsrc port=6215 name=UDPSrc !
> >
> application/x-rtp,media=video,payload=96,clock-rate=90000,encoding-name=H264,sprop-parameter-sets=Njc0ZDAwMTZkYTAyODBmNmMwNTUyMDAwMDAwMzAwNDAwMDAwMDc4YzA4MDAzZTgwMDAwYThjMzdiZGYwYmMyMjExYTg=,NjhlZTNjODA=
> ! valve name=pay0 drop=false )
> > Apr  4 16:08:06 rtspdaemon[731]: 0:00:00.423412736   753  0x808d008
> > WARN                 default
> > gststructure.c:2112:gst_structure_from_string: Failed to find
> > delimiter, r==,NjhlZTNjODA=
> > Apr  4 16:08:06 rtspdaemon[731]: 0:00:00.423444876   753  0x808d008
> > ERROR           GST_PIPELINE ./grammar.y:713:_gst_parse_yyparse: could
> > not parse caps
> >
> "application/x-rtp,media=video,payload=96,clock-rate=90000,encoding-name=H264,sprop-parameter-sets=Njc0ZDAwMTZkYTAyODBmNmMwNTUyMDAwMDAwMzAwNDAwMDAwMDc4YzA4MDAzZTgwMDAwYThjMzdiZGYwYmMyMjExYTg=,NjhlZTNjODA="
> >
> >
> > gststructure works with ASCII but the sprops-parameter-set is BASE64
> > encoded.
>
> BASE64 is a subset of ASCII.
>
> >  So first, it can't handle the PPS added after the ',' (which is
> > legal). Second, it can't handle '=' in the field (which is legal).
> > Third, for some reason gststructure.c fails when I add the NAL type at
> > the beginning. The problem is that the Android app parses the SPS and
> > will fail if it isn't valid, even though the SPS and PPS are signaled
> > inband.
>
> This seems to work for me:
>
>  gst-launch-0.10 fakesrc ! 'application/x-rtp, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)H264,
> sprop-parameter-sets=(string)"Z01AFeygoP2AiAAAAwALuaygAHixbLA\=\,aOvssg
> \=\=", payload=(int)96, ssrc=(uint)1968523427,
> clock-base=(uint)2269461842, seqnum-base=(uint)26782' ! fakesink
>
> Generated with:
>
>  gst-launch-0.10 -v videotestsrc ! x264enc ! rtph264pay ! fakesink
>
> (well, almost, I looked at the debug log, because the -v output is
> doubly-escaped I think; h)
>
>  Cheers
>   -Tim
>
>
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140407/fba00b03/attachment-0001.html>


More information about the gstreamer-devel mailing list