<?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: Issues decoding MJPEG with VPUdec in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408223#M60898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Perhaps, the problem relates to the fact, that in hardware the VPU supports &lt;BR /&gt; only Baseline JPEG profile, for others You need to use a software JPEG codec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 02:13:40 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2015-10-20T02:13:40Z</dc:date>
    <item>
      <title>Issues decoding MJPEG with VPUdec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408222#M60897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having issue using VPUdec to decode MJPEG video. Althought, it is said that VPUdec can&amp;nbsp; decode MJPEG stream, i have been unable to make it works on my side.&lt;/P&gt;&lt;P&gt;Then, tried to transcode a file from H264 to MJPEG thanks to VPUenc (codec=12). This worked great. But then, when I do the other way around : use the file transcoded by the iMX6 and decode it thanks to the VPUdec, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone has an idea what's wrong ?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;command line to transcode h264 -&amp;gt;MJPEG :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gst-launch -vvv filesrc location=test.avi ! decodebin2 ! vpuenc codec=12 bitrate=20000 ! filesink location=test_mjpeg.avi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;command line to decode MJPEG :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gst-launch -vvv filesrc location=test_mjpeg.avi ! 'image/jpeg' ! vpudec ! vpuenc codec=6 ! filesink location=test_decode.avi&lt;/P&gt;&lt;P&gt;(I know this is not an 'image' as said in the pipeline, but this is the most relevant parameter I have found in VPUdec description.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error when I try to decode MJPEG :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;root@phyFLEX-i:~ gst-launch -vvv filesrc location=test_mjpeg.avi ! 'image/jpeg'&lt;/P&gt;&lt;P&gt;! vpudec ! vpuenc codec=6 ! filesink location=test_decode.avi&lt;/P&gt;&lt;P&gt;Setting pipeline to PAUSED ...&lt;/P&gt;&lt;P&gt;[INFO]&amp;nbsp; Product Info: i.MX6Q/D/S&lt;/P&gt;&lt;P&gt;vpuenc versions :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plugin: 3.0.7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wrapper: 1.0.35(VPUWRAPPER_ARM_LINUX Build on Sep&amp;nbsp; 2 2014 12:27:25)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpulib: 5.4.12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firmware: 2.1.9.36350&lt;/P&gt;&lt;P&gt;[INFO]&amp;nbsp; Product Info: i.MX6Q/D/S&lt;/P&gt;&lt;P&gt;vpudec versions :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plugin: 3.0.7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wrapper: 1.0.35(VPUWRAPPER_ARM_LINUX Build on Sep&amp;nbsp; 2 2014 12:27:25)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpulib: 5.4.12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firmware: 2.1.9.36350&lt;/P&gt;&lt;P&gt;Pipeline is PREROLLING ...&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = image/jpeg&lt;/P&gt;&lt;P&gt;[INFO]&amp;nbsp; bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps = image/jpeg&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, crop-top=(int)0, crop-left=(int)0, crop-right=(int)0, crop-bottom=(int)0, num-buffers-required=(int)7, framerate=(fraction)30/1, alignment=(int)1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VPU blocking: timeout.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[WARN]&amp;nbsp; pic was forced to be done&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuEnc:vpuenc0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, crop-top=(int)0, crop-left=(int)0, crop-right=(int)0, crop-bottom=(int)0, num-buffers-required=(int)7, framerate=(fraction)30/1, alignment=(int)1&lt;/P&gt;&lt;P&gt;[INFO]&amp;nbsp; chromaInterleave 0, mapType 0, linear2TiledEnable 0&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuEnc:vpuenc0.GstPad:src: caps = video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)30/1, framed=(boolean)true&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)30/1, framed=(boolean)true&lt;/P&gt;&lt;P&gt;Pipeline is PREROLLED ...&lt;/P&gt;&lt;P&gt;Setting pipeline to PLAYING ...&lt;/P&gt;&lt;P&gt;New clock: GstSystemClock&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: from element /GstPipeline:pipeline0/GstVpuDec:vpudec0: unknown error detect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional debug info:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vpudec.c(1409): gst_vpudec_process_error (): /GstPipeline:pipeline0/GstVpuDec:vpudec0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Execution ended after 1580669 ns.&lt;/P&gt;&lt;P&gt;Setting pipeline to PAUSED ...&lt;/P&gt;&lt;P&gt;Setting pipeline to READY ...&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = NULL&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuEnc:vpuenc0.GstPad:src: caps = NULL&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuEnc:vpuenc0.GstPad:sink: caps = NULL&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps = NULL&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps = NULL&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL&lt;/P&gt;&lt;P&gt;Setting pipeline to NULL ...&lt;/P&gt;&lt;P&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 14:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408222#M60897</guid>
      <dc:creator>yanntinaugus</dc:creator>
      <dc:date>2015-10-19T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues decoding MJPEG with VPUdec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408223#M60898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Perhaps, the problem relates to the fact, that in hardware the VPU supports &lt;BR /&gt; only Baseline JPEG profile, for others You need to use a software JPEG codec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 02:13:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408223#M60898</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-10-20T02:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issues decoding MJPEG with VPUdec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408224#M60899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this topic : &lt;A href="https://community.nxp.com/thread/307296"&gt;jpg decode using vpudec ?&lt;/A&gt;&amp;nbsp; It's said that VPU of iMX6 is able to decode MJPEG and not JPEG :&lt;/P&gt;&lt;P&gt;"No, the vpudec doesn't support jpeg decode"&amp;nbsp; - &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/jackmao"&gt;jackmao&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"it seems vpudec just can support mjpeg video" - &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/joanxie"&gt;joanxie&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;So, it seems possible to decode MJPEG, that is why I am try so hard to do it...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;What must be contained in the header of the MJPEG stream ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Does my pipeline is correct ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;(If necessary, I can switch my stream from MJPEG to JPEG, but I have to use VPUdec for perfomance reason). The questions remain the "same".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Thanks in advance for your reply,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yann&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 08:18:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408224#M60899</guid>
      <dc:creator>yanntinaugus</dc:creator>
      <dc:date>2015-10-20T08:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issues decoding MJPEG with VPUdec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408225#M60900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; as has been mentioned &lt;SPAN style="color: #51626f; font-family: Verdana, sans-serif;"&gt;only Baseline JPEG profile is supported,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Verdana, sans-serif;"&gt;so, please check what profile is used in Your "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;test_mjpeg.avi".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Verdana, sans-serif;"&gt;Yuri &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 08:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issues-decoding-MJPEG-with-VPUdec/m-p/408225#M60900</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-10-20T08:43:36Z</dc:date>
    </item>
  </channel>
</rss>

