vidsrc in uvch264 fails

Sneha Murganoor sneha.nie at gmail.com
Mon Aug 31 05:44:56 PDT 2015


Forgot to mention

I read that vfsrc must be linked and in playing mode (or set
auto-start=true).. so captured the below scenario too.

When i try both the sources vidsrc and vfsrc, i get only vfsrc window.

gst-launch-1.0 -v -e uvch264src device=/dev/video0 name=src
auto-start=true  src.vfsrc ! queue !
video/x-raw,format=\(string\)YUY2,width=320,height=240,framerate=10/1 !
textoverlay text="Capture from vfsrc" font-desc="Sans 24" ! xvimagesink
sync=false src.vidsrc ! queue ! video/x-h264 ! h264parse ! avdec_h264 !
textoverlay text="Capture from vidsrc" font-desc="Sans 24" ! xvimagesink
sync=false
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: num-buffers =
-1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: device =
/dev/video0
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: num-buffers =
-1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: device =
/dev/video0
/GstPipeline:pipeline0/GstUvcH264Src:src/GstCapsFilter:capsfilter2: caps =
video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
framerate=(fraction)10/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0.GstPad:src:
caps = video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstVideoConvert:videoconvert1.GstPad:src:
caps = video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstUvcH264Src:src.GstGhostPad:vfsrc: caps =
video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw,
format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw,
format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstUvcH264Src:src.GstGhostPad:vfsrc.GstProxyPad:proxypad0:
caps = video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstVideoConvert:videoconvert1.GstPad:sink:
caps = video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstVideoConvert:videoconvert1.GstPad:sink:
caps = video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstVideoConvert:videoconvert1.GstPad:sink:
caps = video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstTextOverlay:textoverlay0.GstPad:video_sink: caps
= video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction)10/1
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
Output window was closed
Additional debug info:
xvimagesink.c(551): gst_xvimagesink_handle_xevents ():
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...


On Mon, Aug 31, 2015 at 5:53 PM, Sneha Murganoor <sneha.nie at gmail.com>
wrote:

> Hi,
>
> Following pipeline fails. How to debug this? What is going wrong?
>
> gst-launch-1.0 -v uvch264src device=/dev/video0 name=src auto-start=true
> src.vidsrc ! queue ! video/x-h264 ! h264parse ! avdec_h264 ! xvimagesink
> sync=false
>
>
> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: num-buffers
> = -1
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: device =
> /dev/video0
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: num-buffers
> = -1
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: device =
> /dev/video0
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0.GstPad:src:
> caps = video/x-raw, format=(string)YUY2, width=(int)2304, height=(int)1536,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
> framerate=(fraction)2/1
> /GstPipeline:pipeline0/GstUvcH264Src:src.GstGhostPad:vfsrc: caps =
> video/x-raw, format=(string)YUY2, width=(int)2304, height=(int)1536,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
> framerate=(fraction)2/1
> /GstPipeline:pipeline0/GstUvcH264Src:src.GstGhostPad:vfsrc.GstProxyPad:proxypad0:
> caps = video/x-raw, format=(string)YUY2, width=(int)2304, height=(int)1536,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
> framerate=(fraction)2/1
> ERROR: from element
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: Internal data
> flow error.
> Additional debug info:
> gstbasesrc.c(2865): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0:
> streaming task paused, reason not-linked (-1)
> Execution ended after 0:00:02.891955232
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
>
>
> But from vfsrc is working fine.
>
> gst-launch-1.0 -v -e uvch264src device=/dev/video0 name=src
> auto-start=true  src.vfsrc ! queue !
> video/x-raw,format=\(string\)YUY2,width=320,height=240,framerate=10/1 !
> textoverlay text="Capture from vfsrc 79879 " font-desc="Sans 24" !
> xvimagesink sync=false
>
> Thanks,
> Sneha
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150831/fa4cfd50/attachment.html>


More information about the gstreamer-devel mailing list