Using shmsink/shmsrc with RTP packets
Anand Sivaram
aspnair at gmail.com
Wed Jul 12 09:29:29 UTC 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230712/501bc485/attachment.htm>
More information about the gstreamer-devel
mailing list