<?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>topic Re: G-streamer Transcoding on iMX8QuadMax in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1393464#M185240</link>
    <description>&lt;P&gt;I found a dam buffer command like this, you can refer to it:&lt;/P&gt;
&lt;P&gt;$ gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=300 io-mode=dmabuf ! \&lt;BR /&gt;'video/x-raw,format=(string)NV12,width=1920,height=1080,framerate=(fraction)30/1' ! \&lt;BR /&gt;queue ! v4l2h264enc output-io-mode=dmabuf-import ! avimux ! filesink location=test.avi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Dec 2021 05:41:27 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2021-12-31T05:41:27Z</dc:date>
    <item>
      <title>G-streamer Transcoding on iMX8QuadMax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1352179#M181208</link>
      <description>&lt;P&gt;Hello There !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This pipeline works&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;gst-launch-1.0 -v filesrc location=/run/media/sda1/Big_Buck_Bunny_1080_10s_30MB.mp4 ! qtdemux ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! v4l2convert ! v4l2h264enc ! filesink location=/tmp/test.mp4&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it uses a lot of CPU, which is likely due to it not using zero-copy DMA. Real time transcoding is not possible as it takes about twice as long as the duration of the video.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried adding in the io-mode, as suggested in the NXP Gstreamer manual&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;gst-launch-1.0 -v filesrc location=/run/media/sda1/Big_Buck_Bunny_1080_10s_30MB.mp4 ! qtdemux ! h264parse ! v4l2h264dec output-io-mode=dmabuf-import&amp;nbsp; ! imxvideoconvert_g2d ! v4l2convert ! v4l2h264enc capture-io-mode=dmabuf-import ! filesink location=/tmp/test.mp4&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But that results in this error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier" size="2"&gt;(gst-launch-1.0:1084): GStreamer-CRITICAL **: 00:11:27.573: gst_buffer_resize_range: assertion 'bufmax &amp;gt;= bufoffs + offset + size' failed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Additional debug info:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;../../../git/gst/isomp4/qtdemux.c(6605): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is using 5.4.24-2 Kernel with gstreamer 1.16.1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to get around this problem ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 00:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1352179#M181208</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2021-10-08T00:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: G-streamer Transcoding on iMX8QuadMax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1361548#M182143</link>
      <description>&lt;P&gt;could you send your file to me? let me reproduce this&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 09:25:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1361548#M182143</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-10-26T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: G-streamer Transcoding on iMX8QuadMax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1361833#M182165</link>
      <description>&lt;P&gt;Hi Joanxie !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached. Thanks for looking into this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 17:01:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1361833#M182165</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2021-10-26T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: G-streamer Transcoding on iMX8QuadMax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1393464#M185240</link>
      <description>&lt;P&gt;I found a dam buffer command like this, you can refer to it:&lt;/P&gt;
&lt;P&gt;$ gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=300 io-mode=dmabuf ! \&lt;BR /&gt;'video/x-raw,format=(string)NV12,width=1920,height=1080,framerate=(fraction)30/1' ! \&lt;BR /&gt;queue ! v4l2h264enc output-io-mode=dmabuf-import ! avimux ! filesink location=test.avi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 05:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1393464#M185240</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-12-31T05:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: G-streamer Transcoding on iMX8QuadMax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1396854#M185605</link>
      <description>&lt;P&gt;Hi There !&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks, although this does not transcode&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 17:38:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/G-streamer-Transcoding-on-iMX8QuadMax/m-p/1396854#M185605</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2022-01-10T17:38:59Z</dc:date>
    </item>
  </channel>
</rss>

