shmsink/shmsrc adds colored band to output

Mandar Joshi emailmandar at gmail.com
Wed Apr 26 05:29:03 UTC 2017


Hello,
I am using the following pipelines to decode video in one program and
display it in another

gst-launch-1.0 rtspsrc location=url ! rtph264depay ! vaapidecodebin !
shmsink socket-path=/tmp/x wait-for-connection=false

gst-launch-1.0 -v shmsrc  socket-path=/tmp/x is-live=true
do-timestamp=true !
video/x-raw,width=1920,height=1080,format=NV12,framerate=25/1  !
videoconvert !  xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12,
framerate=(fraction)25/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps
= video/x-raw, width=(int)1920, height=(int)1080,
framerate=(fraction)25/1, format=(string)YV12
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, width=(int)1920, height=(int)1080,
framerate=(fraction)25/1, format=(string)YV12
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps
= video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12,
framerate=(fraction)25/1
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.345800624
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

They work but there is a colored band in the out at the top of the
image. I've attached the image.
I am doing this on an Intel Haswell processor.
Doing video conversion to RGBA  before sending video to shmsink solves
the problem but that adds a lot to the CPU usage.
Can someone suggest a solution?

Regards
Mandar Joshi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hikvision1.jpeg
Type: image/jpeg
Size: 110798 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170426/728acccf/attachment-0001.jpeg>


More information about the gstreamer-devel mailing list