Setting up a display and record pipeline

Smith, Christopher - 0773 - MITLL chris.smith at ll.mit.edu
Tue Jun 23 14:59:12 UTC 2020


Hi,

 

I'm using Gateworks Ventana Hardware with the imx6 and am trying to do a few
things using gstreamer.  I've reached out to them but they are unsure of
which element is causing my error and suggested I try here.  Right now I
have the following kernel:

Linux bionic-ventana 4.20.7-gce6ad6dac2e1 #129 SMP Tue May 12 21:10:10 UTC
2020 armv7l armv7l armv7l GNU/Linux

And am using gstreamer 1.14.5

 

So first when I try to do a sink to kmssink it says "general resource error"
I then switch it up to fbdevsink and it works.  From what I understand
kmssink is the preferred method so that's a little confusing and I feel it
may cause an issue later.  

 

And the real issue I have is I'd like to display video on the screen while
recording to file for later.  I can save video or display to screen using
each part of the tee below, but when I use both it writes a zero length
file.

 

gst-launch-1.0 -v v4l2src device=$DEVICE ! \

>         v4l2video6convert output-io-mode=dmabuf-import ! \

>         tee name=t ! queue ! fbdevsink \

>         t. ! queue \

>         v4l2h264enc output-io-mode=dmabuf-import ! \

> filesink location=video_capture/$(date +"%Y_%m_%d_%H_%M_%p").mp4

Setting pipeline to PAUSED ...

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw,
format=(string)YUY2, width=(int)720, height=(int)480,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
colorimetry=(string)bt709

/GstPipeline:pipeline0/v4l2video6convert:v4l2video6convert0.GstPad:src: caps
= video/x-raw, framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstTee:t.GstTeePad:src_0: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstFBDEVSink:fbdevsink0.GstPad:sink: caps =
video/x-raw, framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstTee:t.GstTeePad:src_1: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstQueue:queue1.GstPad:src: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/GstTee:t.GstPad:sink: caps = video/x-raw,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
format=(string)RGB16, width=(int)720, height=(int)480

/GstPipeline:pipeline0/v4l2video6convert:v4l2video6convert0.GstPad:sink:
caps = video/x-raw, format=(string)YUY2, width=(int)720, height=(int)480,
framerate=(fraction)25/1, interlace-mode=(string)progressive,
colorimetry=(string)bt709

^Chandling interrupt.

Interrupt: Stopping pipeline ...

Execution ended after 0:00:22.133131499

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Freeing pipeline ...

root at bionic-ventana:~# ls -lart video_capture/

total 58072

-rw-r--r-- 1 root root  7744388 Jun 16 16:43 2020_06_16_16_43_PM.mp4

-rw-r--r-- 1 root root        0 Jun 16 21:01 2020_06_16_21_01_PM.mp4

drwxr-xr-x 2 root root     4096 Jun 16 21:01 .

 

Any ideas?  I have other tests I've done and can discuss more but none of it
was very conclusive so I'm looking for inspiration!

 

Thanks,

 

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20200623/42f79082/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7642 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20200623/42f79082/attachment.bin>


More information about the gstreamer-embedded mailing list