<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: [imx6slevk] Trouble creating a fake video source using v4l2loopback, gstreamer, and mfw_v4lsink</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6slevk-Trouble-creating-a-fake-video-source-using/m-p/362046#M51021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&lt;/P&gt;&lt;P&gt;May be good if you post this question into the gstreamer dev list. Also, enable a more verbose log with --gst-debug=*sink:5 as extra parameter.&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 22:30:38 GMT</pubDate>
    <dc:creator>LeonardoSandova</dc:creator>
    <dc:date>2014-10-31T22:30:38Z</dc:date>
    <item>
      <title>[imx6slevk] Trouble creating a fake video source using v4l2loopback, gstreamer, and mfw_v4lsink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6slevk-Trouble-creating-a-fake-video-source-using/m-p/362045#M51020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;I've been running circles around this one for far too long, and I feel like I must be missing something totally obvious. Please do enlighten me as to what I'm doing wrong. &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with the i.MX6 Solo Lite EVK, and my current goal is to set up a fake video device, e.g. /dev/video1, to use as a video source for a SIP call. In the future, I'll be acquiring the real video from a remote source, but naturally I'd like all of that to remain transparent to my SIP application. After reading up a bit on the topic, GStreamer seems like the way to go here. Using Yocto, I've set up an image that includes the &lt;EM&gt;fsl-gstreamer-full&lt;/EM&gt; packagegroup, as well as &lt;EM&gt;v4l-utils&lt;/EM&gt;, &lt;EM&gt;gst-ffmpeg&lt;/EM&gt;, and &lt;EM&gt;libav&lt;/EM&gt;. Furthermore, I've compiled the &lt;EM&gt;v4l2loopback&lt;/EM&gt; kernel module and set up a dummy device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;$ vtl2-ctl --list-devices&lt;/STRONG&gt;
Dummy video device (0x0000) (v4l2loopback:0):
&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/video1
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After (far too long), I also found out that the correct sink to use isn't v4l2sink, but rather &lt;EM&gt;mfw_v4lsink&lt;/EM&gt; [&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-93447" rel="noopener noreferrer" target="_blank"&gt;source&lt;/A&gt;]. When I attempt to run &lt;EM&gt;gst-launch&lt;/EM&gt;, however, I get an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;$ gst-launch -v videotestsrc ! mfw_v4lsink device=/dev/video1&lt;/STRONG&gt;
MFW_GST_V4LSINK_PLUGIN 3.0.11 build on Sep 15 2014 16:50:01.
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240, framerate=(fraction)30/1, color-matrix=(string)sdtv, chroma-site=(string)mpeg2
Pipeline is PREROLLING ...
VIDIOC_S_FMT output overlay: Invalid argument
&amp;gt;&amp;gt;V4L_SINK: Actually buffer status:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hardware buffer : 12
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; software buffer : 0
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data flow error.
Additional debug info: (*path omitted*)
streaming task paused, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Total rendered:0
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = NULL
Freeing pipeline ...
[---&amp;gt;FINALIZE v4l_sink
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, it doesn't complain when executing the command for /dev/video0 -- the physical camera port on the board -- but when attempting to use this source in my SIP client I get the error that the device is busy. Perhaps of further interest is that the exact same error occurs if I specify a device that doesn't even exist. Attempting to use the &lt;EM&gt;autovideosink&lt;/EM&gt; yields no error, but when I attempt to use the device I get an error stating "v4l2: /dev/video1 is no video capture device."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate some insights on this, as my project pretty much hinges on getting this up and running at the moment.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lars Karlström
Added reference regarding mfw_v4lsink and fixed some formatting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6slevk-Trouble-creating-a-fake-video-source-using/m-p/362045#M51020</guid>
      <dc:creator>lfk</dc:creator>
      <dc:date>2020-11-02T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6slevk] Trouble creating a fake video source using v4l2loopback, gstreamer, and mfw_v4lsink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6slevk-Trouble-creating-a-fake-video-source-using/m-p/362046#M51021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&lt;/P&gt;&lt;P&gt;May be good if you post this question into the gstreamer dev list. Also, enable a more verbose log with --gst-debug=*sink:5 as extra parameter.&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 22:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6slevk-Trouble-creating-a-fake-video-source-using/m-p/362046#M51021</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-10-31T22:30:38Z</dc:date>
    </item>
  </channel>
</rss>

