[Interest] Webcam recording

BOUCARD Olivier boucard_olivier at yahoo.fr
Wed Oct 30 16:22:07 CET 2013


Sorry, I've just realize that I was sending only to you instead of the ML.

Here the output of gst-inspect:
Factory Details:
  Long name:    Video (video4linux2) Source
  Class:    Source/Video
  Description:    Reads frames from a Video4Linux2 device
  Author(s):    Edgard Lima <edgard.lima at indt.org.br>, Stefan Kost <ensonic at users.sf.net>
  Rank:        primary (256)

Plugin Details:
  Name:            video4linux2
  Description:        elements for Video 4 Linux
  Filename:        /usr/lib64/gstreamer-0.10/libgstvideo4linux2.so
  Version:        0.10.30
  License:        LGPL
  Source module:    gst-plugins-good
  Source release date:    2011-06-15
  Binary package:    Mandriva gstreamer0.10-plugins-good package
  Origin URL:        http://www.mandriva.com/

GObject
 +----GstObject
       +----GstElement
             +----GstBaseSrc
                   +----GstPushSrc
                         +----GstV4l2Src

Implemented Interfaces:
  GstURIHandler
  GstImplementsInterface
  GstTuner
  GstColorBalance
  GstVideoOrientation
  GstPropertyProbe
...

Maybe my version is too old?

Olivier




Le Mercredi 30 octobre 2013 17h09, BOUCARD Olivier <boucard_olivier at yahoo.fr> a écrit :
 
Oh yes! You're right. I didn't check that...
>
>Thanks,
>
>Olivier
>
>
>
>
>
>
>Le Mercredi 30 octobre 2013 16h43, Lopes Yoann <Yoann.Lopes at digia.com> a écrit :
> 
>Do you have all gstreamer plugins installed? Could you check if you have the 'v4l2src' element with the command:
>>> gst-inspect-0.10 v4l2src
>>
>>
>>
>>Yoann Lopes
>>Senior Software Engineer - Digia, Qt
>>Visit us on: http://qt.digia.com 
>>
>>On Oct 30, 2013, at 3:12 PM, BOUCARD Olivier wrote:
>>
>>Thanks Yoann,
>>>
>>>When I try to display my webcam in QML with Camera I get this:
>>>
>>> 
>>>(<unknown>:24233): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_object_ref: assertion `object != NULL' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_object_sink: assertion `GST_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_element_get_bus: assertion `GST_IS_ELEMENT (element)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_bus_add_watch_full: assertion `GST_IS_BUS (bus)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_bus_set_sync_handler: assertion `GST_IS_BUS (bus)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_object_ref: assertion `object != NULL' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_element_get_state: assertion `GST_IS_ELEMENT (element)' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_bus_set_sync_handler: assertion `GST_IS_BUS (bus)' failed
>>>
>>>
>>>(<unknown>:24233): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed
>>>
>>>
>>>(<unknown>:24233): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed
>>>
>>>I successfully displayed my webcam using a MediaPlayer pointing to v4l2:///dev/video0 though.
>>>But I don't know how to record from there.
>>>
>>>
>>>I will check with VLC too. But it will be so cool to only use Qt... ;)
>>>
>>>
>>>Olivier
>>>
>>>
>>>
>>>
>>>Le Mercredi 30 octobre 2013 15h37, Lopes Yoann <Yoann.Lopes at digia.com> a écrit :
>>>
>>>Hi,
>>>>
>>>>
>>>>Well QtMultimedia is a cross-platform API which has camera features ;)
>>>>Video recording is currently supported on Mac, Linux, and mobile platforms, but not on Windows... (will be added in a future release)
>>>>
>>>>
>>>>Otherwise maybe you can have a look at libVLC, it has support for camera as well.
>>>>
>>>>Yoann Lopes
>>>>Senior Software Engineer - Digia, Qt
>>>>Visit us on: http://qt.digia.com 
>>>>
>>>>On Oct 30, 2013, at 1:56 PM, BOUCARD Olivier wrote:
>>>>
>>>>Hi guys,
>>>>>
>>>>>
>>>>>I'm browsing the Web for two days looking for a solution to record video from a webcam.
>>>>>I try to find a cross-platform solution compatible with Qt.
>>>>>
>>>>>
>>>>>I know there is OpenCV but it seems like using bazooka for a fly. And I can't control the webcam settings.
>>>>>Maybe libvidcap can be good.
>>>>>
>>>>>
>>>>>If someone could help me on this one, I will be grateful.
>>>>>
>>>>>
>>>>>Olivier
>>>>>
_______________________________________________
>>>>>Interest mailing list
>>>>>Interest at qt-project.org
>>>>>http://lists.qt-project.org/mailman/listinfo/interest
>>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131030/b288b0b5/attachment.html>


More information about the Interest mailing list