<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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:<o:p></o:p></p><p class=MsoNormal>Linux bionic-ventana 4.20.7-gce6ad6dac2e1 #129 SMP Tue May 12 21:10:10 UTC 2020 armv7l armv7l armv7l GNU/Linux<o:p></o:p></p><p class=MsoNormal>And am using gstreamer 1.14.5<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.  <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>gst-launch-1.0 -v v4l2src device=$DEVICE ! \<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>>         v4l2video6convert output-io-mode=dmabuf-import ! \<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>>         tee name=t ! queue ! fbdevsink \<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>>         t. ! queue \<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>>         v4l2h264enc output-io-mode=dmabuf-import ! \<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>> filesink location=video_capture/$(date +"%Y_%m_%d_%H_%M_%p").mp4<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Setting pipeline to PAUSED ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Pipeline is live and does not need PREROLL ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Setting pipeline to PLAYING ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>New clock: GstSystemClock<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>/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<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>^Chandling interrupt.<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Interrupt: Stopping pipeline ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Execution ended after 0:00:22.133131499<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Setting pipeline to PAUSED ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Setting pipeline to READY ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Setting pipeline to NULL ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Freeing pipeline ...<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>root@bionic-ventana:~# ls -lart video_capture/<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>total 58072<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>-rw-r--r-- 1 root root  7744388 Jun 16 16:43 2020_06_16_16_43_PM.mp4<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>-rw-r--r-- 1 root root        0 Jun 16 21:01 2020_06_16_21_01_PM.mp4<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>drwxr-xr-x 2 root root     4096 Jun 16 21:01 .<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Chris<o:p></o:p></p></div></body></html>