shmsink 'had_client' assertion failure

DanielZ daniel at notraffic.tech
Thu Aug 22 13:10:32 UTC 2019


Hi,

I have the following scenario :

v4l2src -> crop -> resize ->
                                        ---> process1 (with opencv)
                                        ---> rtsp server

In order to do the split, I'm using shmsink and shmsrc as follows:

*preprocessing: 
*GST_DEBUG=1 gst-launch-1.0 v4l2src device=/dev/video0 !
video/x-raw,width=1920, height=1080,format=UYVY ! videocrop top=0 left=60
right=60 bottom=585 ! videoscale ! videorate !
video/x-raw,width=640,height=480,format=UYVY,framerate=15/1 ! shmsink
socket-path=/tmp/video-sock shm-size=10000000 wait-for-connection=false
sync=false

*process1:
*shmsrc socket-path=/tmp/video-sock is-live=true !
video/x-raw,width=640,height=480,format=UYVY,framerate=15/1 ! videoconvert !
appsink

*RTSP server:*
./test_launch "shmsrc socket-path=/tmp/video-sock is-live=true
do-timestamp=true name=video-sock ! video/x-raw,
format=UYVY,width=640,height=480,framerate=15/1 ! videoscale ! videorate !
videoconvert ! video/x-raw,width=640,height=480,format=I420,framerate=15/1 !
omxh264enc ! rtph264pay name=pay0 pt=96"

The pipeline seems to work, but every once in a while I get the following
error:

gst-launch-1.0: shmpipe.c:873: sp_shmbuf_dec: Assertion `had_client'
failed../gstreamer_preprocessing_pipeline_runner.sh: line 2:    69 Aborted                
(core dumped) GST_DEBUG=1 gst-launch-1.0 v4l2src device=/dev/video0 !
video/x-raw,width=1920, height=1080,format=UYVY ! videocrop top=0 left=60
right=60 bottom=585 ! videoscale ! videorate !
video/x-raw,width=640,height=480,format=UYVY,framerate=15/1 ! shmsink
socket-path=/tmp/video-sock shm-size=10000000 wait-for-connection=false
sync=false


The platform is Tegra TX2.
Running Ubuntu 16.04 with Docker 

Any thought why this happens?
Thanks



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list