H.264 webcam capture, missing GstMetaVideo API

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

H.264 webcam capture, missing GstMetaVideo API

Alexey-3
Hi!

I'm building webcam (Logitech C920) application with gstreamer1.0.

With mjpeg it works:

gst-launch-1.0 v4l2src ! "image/jpeg" ! jpegdec ! videoconvert ! xvimagesink

But with h264 encoder doesn't:

gst-launch-1.0 --gst-debug-level=3 v4l2src ! "video/x-h264" !
avdec_h264 ! videoconvert ! xvimagesink

0:00:00.109059811  5094  0x9407240 WARN                GST_PADS
gstpad.c:3582:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.109550728  5094  0x9407240 WARN                GST_PADS
gstpad.c:3582:gst_pad_peer_query:<videoconvert0:src> pad has no peer
0:00:00.109902871  5094  0x9407240 WARN                GST_PADS
gstpad.c:3582:gst_pad_peer_query:<videoconvert0:src> pad has no peer
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
0:00:00.900169994  5094  0x9407240 WARN                     bin
gstbin.c:2488:gst_bin_do_latency_func:<pipeline0> failed to query
latency
New clock: GstSystemClock
0:00:00.947260355  5094  0x943a030 ERROR                   v4l2
gstv4l2bufferpool.c:374:gst_v4l2_buffer_pool_set_config:<v4l2bufferpool0>
missing GstMetaVideo API in config, default stride: 0, wanted stride
3840
0:00:00.947541025  5094  0x943a030 ERROR                   v4l2
gstv4l2bufferpool.c:374:gst_v4l2_buffer_pool_set_config:<v4l2bufferpool0>
missing GstMetaVideo API in config, default stride: 0, wanted stride
3840
0:00:00.947583648  5094  0x943a030 ERROR                   v4l2
gstv4l2bufferpool.c:374:gst_v4l2_buffer_pool_set_config:<v4l2bufferpool0>
missing GstMetaVideo API in config, default stride: 0, wanted stride
3840
0:00:00.947611178  5094  0x943a030 ERROR             bufferpool
gstbufferpool.c:485:gst_buffer_pool_set_active:<v4l2bufferpool0> pool
was not configured
0:00:00.947631365  5094  0x943a030 ERROR                basesrc
gstbasesrc.c:2838:gst_base_src_set_allocation:<v4l2src0> failed to
activate bufferpool.
0:00:00.947676353  5094  0x943a030 WARN                 basesrc
gstbasesrc.c:2781:gst_base_src_loop:<v4l2src0> error: Internal data
flow error.
0:00:00.947703856  5094  0x943a030 WARN                 basesrc
gstbasesrc.c:2781:gst_base_src_loop:<v4l2src0> error: streaming task
paused, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Internal data flow error.
Additional debug info:
gstbasesrc.c(2781): gst_base_src_loop ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 47347852 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Is there any way to use hardware h.264 encoder with v4l2src element,
or I must use uvch264_src from plugins-bad?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: H.264 webcam capture, missing GstMetaVideo API

Olivier Crête-3
Hello,

On Wed, 2012-11-21 at 20:04 +0400, Alexey wrote:
> Is there any way to use hardware h.264 encoder with v4l2src element,
> or I must use uvch264_src from plugins-bad?

You must use uvch264_src if you want to use the encoder. The logitech
C920 has a particularly traumatizing API.

--
Olivier Crête
[hidden email]

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: H.264 webcam capture, missing GstMetaVideo API

Tristan Matthews-2
2012/11/21 Olivier Crête <[hidden email]>:
> Hello,
>
> On Wed, 2012-11-21 at 20:04 +0400, Alexey wrote:
>> Is there any way to use hardware h.264 encoder with v4l2src element,
>> or I must use uvch264_src from plugins-bad?
>
> You must use uvch264_src if you want to use the encoder. The logitech
> C920 has a particularly traumatizing API.

You're probably better off using uvch264_src, but if you just want to
mess around there's this hack:

http://www.oz9aec.net/index.php/gstreamer/473-using-the-logitech-c920-webcam-with-gstreamer


--
Tristan Matthews
web: http://tristanswork.blogspot.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel