AnsweredAssumed Answered

IMX6 GStreamer plugin mfw_v4lsrc preview during recording problem

Question asked by Dan Shu on Oct 12, 2014
Latest reply on Nov 11, 2014 by li wuxiang

Our IMX6 board is using SII9135 HDMI video input device, the SII9135 driver is adpat "mxc_v4l2_capture" architecture, and the GST_FSL_PLUGIN version is 3.0.7. using gstreamer, we can correctly do video bypass preview  and video recording separately, using below commands:

 

gst-launch-0.10 -v mfw_v4lsrc device="/dev/video1" capture-mode=4 preview=0 bg=1 fps-n=30 ! mfw_isink 

gst-launch-0.10 -v mfw_v4lsrc device="/dev/video1" capture-mode=4 preview=0 bg=1 fps-n=30 ! 'video/x-raw-yuv, width=1920, height=1080' ! vpuenc ! matroskamux ! filesink location=1080p.mkv

------------------

 

But we need to do preview and video recording at the same time. so we tried below command, but the preview is not working.

 

gst-launch-0.10 -v mfw_v4lsrc device="/dev/video1" capture-mode=4 preview=true preview-width=1920 preview-height=1080 bg=1 fps-n=30 ! 'video/x-raw-yuv, width=1920, height=1080' ! vpuenc ! matroskamux ! filesink location=1080p.mkv

-------------------

 

When we look inside the "mfw_v4lsrc" plugin source code, we found the "preview" property is readonly in the code. so by default, it cannot do preview.  I tried to modify it read-writeable, and using the above command, but got segment fault.

 

My question is:

If the above command is correct to setup the gstreamer pipeline to do preview and video recording simultaneously ? or if there are bugs in the mfw_v4lsrc plugin or driver need to fix?

 

Thanks in advance!

Outcomes