RTP playback issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

RTP playback issue

Gst-Geek
All,

All I am trying to decode rtp in generated by gstreamer pipeline,  gstreamer Playback pipeline, but it do not decode anything. rtpjitterbuffer is dropping all the packets with below caps error.
 WARN         rtpjitterbuffer gstrtpjitterbuffer.c:3133:gst_rtp_jitter_buffer_chain:<rtpjitterbuffer0> No clock-rate in caps!, dropping buffer

But stream is deocdable with VLC.

RTP generator pipeline:
gst-launch-1.0 videotestsrc ! x264enc ! mpegtsmux name=mux mux.! rtpmp2tpay ! udpsink host=127.0.0.1 port=9000 audiotestsrc ! voaacenc ! mux.

RTP playback pipeline:
gst-launch-1.0 udpsrc port=9000  caps="application/x-rtp,clock-rate=90000,payload=33" ! rtpjitterbuffer ! rtpmp2tdepay ! decodebin name=dec dec.! video/x-raw ! fakesink dec.! audio/x-raw ! fakesink


What is the problem ??

~ Vinod
Reply | Threaded
Open this post in threaded view
|

Re: RTP playback issue

Nicolas Dufresne-4
Le jeudi 08 décembre 2016 à 03:53 -0800, Vinod Kesti a écrit :

> All I am trying to decode rtp in generated by gstreamer pipeline, 
> gstreamer
> Playback pipeline, but it do not decode anything. rtpjitterbuffer is
> dropping all the packets with below caps error.
>  WARN         rtpjitterbuffer
> gstrtpjitterbuffer.c:3133:gst_rtp_jitter_buffer_chain:<rtpjitterbuffe
> r0> No
> clock-rate in caps!, dropping buffer
>
> But stream is deocdable with VLC.
>
> RTP generator pipeline:
> gst-launch-1.0 videotestsrc ! x264enc ! mpegtsmux name=mux mux.!
> rtpmp2tpay
> ! udpsink host=127.0.0.1 port=9000 audiotestsrc ! voaacenc ! mux.
>
> RTP playback pipeline:
> gst-launch-1.0 udpsrc port=9000 
> caps="application/x-rtp,clock-rate=90000,payload=33" !
> rtpjitterbuffer !
> rtpmp2tdepay ! decodebin name=dec dec.! video/x-raw ! fakesink dec.!
> audio/x-raw ! fakesink
>
>
> What is the problem ??

I have run your pipeline, and they just works here. What GStreamer
version is this ?

p.s. you probably want to control key-max-int on x264enc, and disable
b-frames

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTP playback issue

Gst-Geek
Hi Nicolas ,

Sorry the the pipelines given in previous thread work, I copies wrong playback pipeline.

I have problem when instead of setting caps on the udp source caps, if caps set on using capssetter then pipeline is not working. It throws up caps error.
gst_rtp_jitter_buffer_chain:<rtpjitterbuffer0> No clock-rate in caps!, dropping buffer

In my application source and depacketizer modules are isolated so I want to set depacketizer caps with capsssetter.

gst-launch-1.0 udpsrc port=9000  ! capssetter caps="application/x-rtp,clock-rate=90000,payload=33" ! rtpjitterbuffer ! rtpmp2tdepay ! decodebin name=dec dec.! video/x-raw ! fakesink dec.! audio/x-raw ! fakesink  --gst-debug=3


This pipeline works.
gst-launch-1.0 udpsrc port=9000  caps="application/x-rtp,clock-rate=90000,payload=33" ! rtpjitterbuffer ! rtpmp2tdepay ! decodebin name=dec dec.! video/x-raw ! fakesink dec.! audio/x-raw ! fakesink  --gst-debug=3


~ Vinod
Reply | Threaded
Open this post in threaded view
|

Re: RTP playback issue

Gst-Geek
Thank you Nicolas ,


gst-launch-1.0 udpsrc port=9000  ! application/x-rtp,clock-rate=90000,payload=33 ! rtpjitterbuffer ! rtpmp2tdepay ! decodebin name=dec dec.! video/x-raw ! fakesink dec.! audio/x-raw ! fakesink  --gst-debug=3

Pipeline started working when capssetter element was replaced by capsfilter element int the pipeline.

~ Vinod
Reply | Threaded
Open this post in threaded view
|

Re: RTP playback issue

Nicolas Dufresne-5
Le vendredi 09 décembre 2016 à 19:22 -0800, Vinod Kesti a écrit :
> gst-launch-1.0 udpsrc port=9000  !
> application/x-rtp,clock-rate=90000,payload=33 ! rtpjitterbuffer !
> rtpmp2tdepay ! decodebin name=dec dec.! video/x-raw ! fakesink dec.!
> audio/x-raw ! fakesink  --gst-debug=3 
>
> Pipeline started working when capssetter element was replaced by
> capsfilter
> element int the pipeline.

Indeed, capssetter for your use case would require you to set
join=false. The default behavior is to only overwrite the incoming
fields. udpsrc will produce ANY, which has no field set.

The capsfilter will work with intersection, which means the operation
always return the caps you have set.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment