uvch264src element fails to work with two C920 devices
Juan Robles
filosangrante at gmail.com
Tue Sep 23 14:11:31 PDT 2014
Hi,
I'm trying to test the capture using two C920 cameras and it doesn't work.
It seems to me that the second pipeline using the uvch264src element is
being mapped to v4l2src0 instead of to v4l2src1, or at leas that's what I
get from this line in the second pipeline that uses the second camera:
gstv4l2bufferpool.c(994): gst_v4l2_buffer_pool_poll ():
/GstPipeline:pipeline0/GstUvcH264Src:video1/GstV4l2Src:v4l2src0:
poll error 1: No space left on device (28)
Any ideas?
My first pipeline and output with GST_DEBUG=3, this one works and writes to
disk.
gst-launch-1.0 uvch264src name=cam0 initial-bitrate=1000000
average-bitrate=1000000 iframe-period=3000 device=/dev/video0 name=video0
auto-start=true video0.vfsrc !
video/x-raw,format=(string)YUY2,width=320,height=240,framerate=10/1 !
fakesink sync=false video0.vidsrc ! queue !
video/x-h264,width=1280,height=720,framerate=30/1 ! queue ! filesink
location=/home/filo/video0.mp4
0:00:00.065259242 5061 0x149d40 WARN uvch264src
gstuvch264_src.c:1879:xu_query:<cam0> Can't query XU with fd = -1
0:00:00.065377157 5061 0x149d40 WARN uvch264src
gstuvch264_src.c:931:set_bitrate:<cam0> BITRATE_LAYERS GET_CUR error
0:00:00.065423948 5061 0x149d40 WARN uvch264src
gstuvch264_src.c:1879:xu_query:<cam0> Can't query XU with fd = -1
0:00:00.065461447 5061 0x149d40 WARN uvch264src
gstuvch264_src.c:1053:update_bitrate:<cam0> BITRATE_LAYERS GET_CUR error
Setting pipeline to PAUSED ...
0:00:00.210921562 5061 0x189180 FIXME default
gstutils.c:3643:gst_pad_create_stream_id_internal:<preview-appsrc:src>
Creating random stream-id, consider implementing a deterministic way of
creating a stream-id
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.233090511 5061 0x148660 WARN uvch264src
gstuvch264_src.c:1890:xu_query:<video0> PROBE GET_LEN error
0:00:00.233163052 5061 0x148660 WARN uvch264src
gstuvch264_src.c:989:set_ltr:<video0> LTR_BUFFER_SIZE GET_CUR error
0:00:00.233203927 5061 0x148660 WARN uvch264src
gstuvch264_src.c:1890:xu_query:<video0> PROBE GET_LEN error
0:00:00.233240676 5061 0x148660 WARN uvch264src
gstuvch264_src.c:1147:update_ltr:<video0> LTR_BUFFER_SIZE GET_CUR error
The second one that fails when launched at the same time that the first:
gst-launch-1.0 uvch264src name=cam1 initial-bitrate=1000000
average-bitrate=1000000 iframe-period=3000 device=/dev/video1 name=video1
auto-start=true video1.vfsrc !
video/x-raw,format=(string)YUY2,width=320,height=240,framerate=10/1 !
fakesink sync=false video1.vidsrc ! queue !
video/x-h264,width=1280,height=720,framerate=30/1 ! queue ! filesink
location=/home/odroid/video1.mp4
0:00:00.065603432 6260 0x149d40 WARN uvch264src
gstuvch264_src.c:1879:xu_query:<cam1> Can't query XU with fd = -1
0:00:00.065719515 6260 0x149d40 WARN uvch264src
gstuvch264_src.c:931:set_bitrate:<cam1> BITRATE_LAYERS GET_CUR error
0:00:00.065765473 6260 0x149d40 WARN uvch264src
gstuvch264_src.c:1879:xu_query:<cam1> Can't query XU with fd = -1
0:00:00.065804431 6260 0x149d40 WARN uvch264src
gstuvch264_src.c:1053:update_bitrate:<cam1> BITRATE_LAYERS GET_CUR error
Setting pipeline to PAUSED ...
0:00:00.211656043 6260 0x189180 FIXME default
gstutils.c:3643:gst_pad_create_stream_id_internal:<preview-appsrc:src>
Creating random stream-id, consider implementing a deterministic way of
creating a stream-id
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.233924142 6260 0x148660 WARN uvch264src
gstuvch264_src.c:1890:xu_query:<video1> PROBE GET_LEN error
0:00:00.233998850 6260 0x148660 WARN uvch264src
gstuvch264_src.c:989:set_ltr:<video1> LTR_BUFFER_SIZE GET_CUR error
0:00:00.234040308 6260 0x148660 WARN uvch264src
gstuvch264_src.c:1890:xu_query:<video1> PROBE GET_LEN error
0:00:00.234076974 6260 0x148660 WARN uvch264src
gstuvch264_src.c:1147:update_ltr:<video1> LTR_BUFFER_SIZE GET_CUR error
0:00:00.596676920 6260 0x148660 ERROR v4l2
gstv4l2bufferpool.c:551:gst_v4l2_buffer_pool_streamon:<v4l2src0:pool:src>
error with STREAMON 28 (No space left on device)
0:00:00.596816252 6260 0x148660 WARN v4l2
gstv4l2bufferpool.c:994:gst_v4l2_buffer_pool_poll:<v4l2src0> error: poll
error 1: No space left on device (28)
0:00:00.596959292 6260 0x148660 WARN v4l2src
gstv4l2src.c:749:gst_v4l2src_create:<v4l2src0> error: Failed to allocate a
buffer
ERROR: from element
/GstPipeline:pipeline0/GstUvcH264Src:video1/GstV4l2Src:v4l2src0: Could not
read from resource.
0:00:00.597046125 6260 0x148660 WARN basesrc
gstbasesrc.c:2933:gst_base_src_loop:<v4l2src0> error: Internal data flow
error.
Additional debug info:
gstv4l2bufferpool.c(994): gst_v4l2_buffer_pool_poll ():
/GstPipeline:pipeline0/GstUvcH264Src:video1/GstV4l2Src:v4l2src0:
poll error 1: No space left on device (28)
0:00:00.597131832 6260 0x148660 WARN basesrc
gstbasesrc.c:2933:gst_base_src_loop:<v4l2src0> error: streaming task
paused, reason error (-5)
Execution ended after 0:00:00.369500302
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Thanks!
Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140923/4fb81218/attachment.html>
More information about the gstreamer-devel
mailing list