Using shmsink/shmsrc with RTP packets
Anand Sivaram via gstreamer-devel <[email protected]>
| Newsgroups | gmane.comp.video.gstreamer.devel |
|---|---|
| Message-ID | <CAHBw83cYNiRPS_b5aLqYu=WG_pr7XAUqHPXVxaxwhxjv=ORnpA@mail.gmail.com> |
Dear All, Whenever I use the raw I420 video frame through shmsink/shmsrc, then it is working fine. But, I need to use RTP packets and I tried the following pipeline. gst-launch-1.0 videotestsrc pattern=0 ! capsfilter caps='video/x-raw,format=I420,width=640,height=360,framerate=30/1' ! videoscale ! videorate ! videoconvert ! timeoverlay ! \ x264enc key-int-max=30 ! capsfilter caps='video/x-h264,stream-format=byte-stream' ! rtph264pay pt=96 ! \ shmsink socket-path=/tmp/gstshm sync=true wait-for-connection=false gst-launch-1.0 shmsrc socket-path=/tmp/gstshm ! \ capsfilter caps='application/x-rtp,media=(string)video,clock-rate=(int)90000' ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideos ink The shmsrc pipeline is giving an error. If I replace shmsink/shmsrc to udpsink/udpsrc it is working very well. The shmsrc pipeline is giving the following error. ERROR: from element /GstPipeline:pipeline0/GstShmSrc:shmsrc0: Internal data stream error. Additional debug info: ../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstShmSrc:shmsrc0: streaming stopped, reason error (-5) Any help would be appreciated. Thanks and Regards Anand