GStreamer - imxv4l2src

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GStreamer - imxv4l2src

4,077 Views
erikraynolds
Contributor III

I want save a video from webcam. I set this pipeline

gst-launch-1.0 imxv4l2src -e -v device=/dev/video1 num-buffers=100 ! vpuenc_h264 ! h264parse ! filesink location=video1.mp4

I am getting:

root@imx6qpsabreauto:~# gst-launch-1.0 imxv4l2src -e -v device=/dev/video1 num-buffers=100 ! vpuenc_h264 ! h264parse ! filesink location=video1.mp4

====== IMXV4L2SRC: 4.0.8 build on Jun  6 2016 18:59:27. ======

Setting pipeline to PAUSED ...

[INFO]  Product Info: i.MX6Q/D/S

====== VPUENC: 4.0.8 build on Jun  6 2016 18:59:36. ======

        wrapper: 1.0.62 (VPUWRAPPER_ARM_LINUX Build on Jun  6 2016 18:33:35)

        vpulib: 5.4.32

        firmware: 3.1.1.46070

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

ERROR: from element /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0: Internal data flow error.

Additional debug info:

/mnt/work/Linux/fsl-release-3.14.52-1.1.0_ga/build-x11-full/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0:

streaming task paused, reason not-negotiated (-4)

EOS on shutdown enabled -- waiting for EOS after Error

Waiting for EOS...

New clock: GstSystemClock

Got EOS from element "pipeline0".

EOS received - stopping pipeline...

Execution ended after 0:00:00.001804333

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Freeing pipeline ...

root@imx6qpsabreauto:~#

Thank you for your help.

Tags (1)
0 Kudos
2 Replies

1,700 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Hope the following helps.

Streaming webcam video with the gstreamer-imx

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,700 Views
erikraynolds
Contributor III

Nope. it did not help unfortunately.

root@imx6qpsabreauto:~# gst-launch-1.0 v4l2src -e -v device=/dev/video1 num-buffers=100 ! vpuenc_h264 ! h264parse ! filesink location=video1.mp4Setting pipeline to PAUSED ...

[INFO]    Product Info: i.MX6Q/D/S

====== VPUENC: 4.0.8 build on Jun  6 2016 18:59:36. ======

    wrapper: 1.0.62 (VPUWRAPPER_ARM_LINUX Build on Jun  6 2016 18:33:35)

    vpulib: 5.4.32

    firmware: 3.1.1.46070

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.

Additional debug info:

/mnt/work/Linux/fsl-release-3.14.52-1.1.0_ga/build-x11-full/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:

streaming task paused, reason not-negotiated (-4)

EOS on shutdown enabled -- waiting for EOS after Error

Waiting for EOS...

I check pipeline functionality with

$ gst-launch v4l2src ! decodebin2 ! mfw_v4lsink

root@imx6qpsabreauto:~# gst-launch v4l2src ! decodebin2 ! mfw_v4lsink

(gst-plugin-scanner:16058): GLib-GObject-WARNING **: cannot register existing type 'GstVorbisDec'

(gst-plugin-scanner:16058): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(gst-plugin-scanner:16058): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

MAX resolution 1920x1080

WARNING: erroneous pipeline: no element "mfw_v4lsink"

root@imx6qpsabreauto:~#

And I RTFM and no answer there :smileyhappy:

0 Kudos