<?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: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855380#M130797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego and thanks for the response.&lt;/P&gt;&lt;P&gt;@Moderator - How can I have messages auto-approved so they don't have to be reviewed by you before posting to the forum?&amp;nbsp; This is the only forum I belong to that is doing that past the first post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;was at CES last week and now am getting back into normal work mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Everyone - I seem to be missing some items I need on the BSP.&amp;nbsp; I'm new to Yocto, and&amp;nbsp;only imaged an SD card from in the&amp;nbsp;&lt;SPAN class=""&gt;fsl-image-qt5-validation-imx-xwayland-imx8mqevk.sdcard image in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;L4.9.88_2.0.0_images_MX8MQ.tar.gz BSP.&amp;nbsp; I have a feeling I need to add more packages via Yocto to be productive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can anyone point me to a preconfigured image or package(s) with the above BSP that also contains: (The image I'm using is missing these items)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- apt-get and other linux system management tools.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- gcc compiler &amp;amp; C/C++ development tools.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- menuconfig and related tools&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- ffmpeg and OpenMax IL (I've been able to cross compile them, but it would be more convenient building on the board itself)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I've&amp;nbsp; done very little modification on the os image, so I'm ok with scrapping it and starting again with an image containing the missing pieces.&amp;nbsp; If I at least have apt-get and the board specific drivers &amp;amp; libs installed, I can fetch any os packages I need via apt-get if they're available or build from source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- Doug&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;"Nothing is impossible if ImPossible"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 19:30:53 GMT</pubDate>
    <dc:creator>doug4350</dc:creator>
    <dc:date>2019-01-15T19:30:53Z</dc:date>
    <item>
      <title>Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855375#M130792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first post here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I purchased the i.mx 8m evaluation kit to work on video streaming from ip cameras.&amp;nbsp; I have successfully got the board to boot from a Linux BSP sd card, can ssh to the board and poke around.&amp;nbsp; There was no gnu gcc compiler out of the box, so I spent a couple days figuring out and setting up a cross compiling environment on my Mac.&amp;nbsp; It works by creating a Docker container with the Ubuntu 18.04 image and gcc build tools.&amp;nbsp; After getting the docker image created and running, I followed the I.MX8 Hello World Linux post here as a guide:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-341031"&gt;i.MX 8 Hello World Linux - ArmV7a 32-bit and ArmV8a 64-bit &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am porting an ffmpeg and openmax based video streaming platform to the i.mx8 and am at a cross roads.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the ffmpeg library compiled from source and can connect with a test program to an ip camera and get data from the camera to the i.mx8 evaluation board.&amp;nbsp; Cool so far.&amp;nbsp; I haven't tried any decompression or other steps yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being that there appears to be a long ride on any road I now choose to go down, can anyone recommend whether to keep openmax or suggest an alternative that fits better?&amp;nbsp; I've spent some time looking for&amp;nbsp;openmax downloads for the board, but finally took a step back and decided to ask the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The platform I'm porting from will accept streams from multiple cameras, decode them and do some manipulation on the raw raster image, re-encode them and stream back out to client viewers who periodically connect to the platform.&amp;nbsp; Re-encoding is only done when client viewers are connected.&amp;nbsp; The client viewers are able to select at will which camera to view from.&amp;nbsp; That's kind of a high level description of my end goal &amp;amp; hope it makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd really appreciate any direction to how-to docs, examples, source downloads for recommendations you all think will work for me.&lt;/P&gt;&lt;P&gt;Take care,&lt;/P&gt;&lt;P&gt;- Doug Slattery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Nothing is impossible if ImPossible"&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2019 03:53:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855375#M130792</guid>
      <dc:creator>doug4350</dc:creator>
      <dc:date>2019-01-06T03:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855376#M130793</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;In the Linux user guide, on the section 7.3.12, you can see an example of how to stream a video with Gstreamer.&amp;nbsp; Hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855376#M130793</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-01-07T20:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855377#M130794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego and thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are referring to looks like command line utility related, whereas I'm looking for libraries and source examples in c/c++ that will tap into the vpu/gpu which is where OpenMax comes in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled on a couple of nuggets after reading&amp;nbsp;&amp;amp; searching some more which looks more like what I need:&lt;/P&gt;&lt;P&gt;i.MX_Linux_Reference_Manual.pdf section 6.6 - Video Processing&amp;nbsp; &amp;nbsp;[seems to be g-streamer source code oriented]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMX8MDQlQRM.pdf chapter 14 - Video Processing Unit (VPU)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[looks to have OpenMax details I'm needing, now if that's the case, I just need to find the OpenMax libraries.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have more questions, so will leave the thread open for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care,&lt;/P&gt;&lt;P&gt;- Doug Slattery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Nothing is impossible if ImPossible"&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855377#M130794</guid>
      <dc:creator>doug4350</dc:creator>
      <dc:date>2019-01-07T20:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855378#M130795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made some progress, but am not finding a needed library describe in this guide:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IMX8MDQlQRM.pdf chapter 14 - Video Processing Unit (VPU)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It says that it's using the Hantro hw decoder library under the Bellagio implementation of OpenMax.&amp;nbsp; More specifically, OMX IL API for 8170/8190/9170/9190/G1/G2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to locate and build the Bellagio OMX library, but can't find much useful information on Hantro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any experience or information on the Hantro decoder libs?&amp;nbsp; &amp;nbsp;I will also be doing transcoding, so will be following that path for re-encoding after getting decoding working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a gstreamer example using Hantro which I'm trying to pick apart to become familiar with Hantro, but it's not using the OpenMax IL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;- Doug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Nothing is impossible if ImPossible"&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 01:05:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855378#M130795</guid>
      <dc:creator>doug4350</dc:creator>
      <dc:date>2019-01-09T01:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855379#M130796</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;The Hantro branch for the video processing unit is already set as default in our BSP. You can confirm it if you go to the menuconfig configuration described in the Linux User Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 17:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855379#M130796</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-01-10T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855380#M130797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego and thanks for the response.&lt;/P&gt;&lt;P&gt;@Moderator - How can I have messages auto-approved so they don't have to be reviewed by you before posting to the forum?&amp;nbsp; This is the only forum I belong to that is doing that past the first post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;was at CES last week and now am getting back into normal work mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Everyone - I seem to be missing some items I need on the BSP.&amp;nbsp; I'm new to Yocto, and&amp;nbsp;only imaged an SD card from in the&amp;nbsp;&lt;SPAN class=""&gt;fsl-image-qt5-validation-imx-xwayland-imx8mqevk.sdcard image in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;L4.9.88_2.0.0_images_MX8MQ.tar.gz BSP.&amp;nbsp; I have a feeling I need to add more packages via Yocto to be productive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can anyone point me to a preconfigured image or package(s) with the above BSP that also contains: (The image I'm using is missing these items)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- apt-get and other linux system management tools.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- gcc compiler &amp;amp; C/C++ development tools.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- menuconfig and related tools&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- ffmpeg and OpenMax IL (I've been able to cross compile them, but it would be more convenient building on the board itself)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I've&amp;nbsp; done very little modification on the os image, so I'm ok with scrapping it and starting again with an image containing the missing pieces.&amp;nbsp; If I at least have apt-get and the board specific drivers &amp;amp; libs installed, I can fetch any os packages I need via apt-get if they're available or build from source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- Doug&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;"Nothing is impossible if ImPossible"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 19:30:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855380#M130797</guid>
      <dc:creator>doug4350</dc:creator>
      <dc:date>2019-01-15T19:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855381#M130798</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;Unfortunately, have apt-get on a Yocto image is not possible, since Yocto is a costume&amp;nbsp;made image for the embedded systems, all the package needs to be pre-installed by recipes. Some of the repositories are already included on our&amp;nbsp;BSP and they are easy to add in the final Yocto image, for example, the gcc&amp;nbsp;compiler. For OpenMax, we do have the Gstreamer&amp;nbsp;plug-ins that could help you with the all the streaming of the video.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do have a Yocto training&amp;nbsp;that I recommend you to follow if you want to learn about Yocto. The training is so well explained. Please find below the link for the Training:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-94035"&gt;https://community.nxp.com/docs/DOC-94035&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 21:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855381#M130798</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-01-23T21:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855382#M130799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback Diego.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working through creating a custom image with Yocto.&amp;nbsp; I'm getting several build failures working through them one by one until the image is built.&amp;nbsp; I'm on my 2nd attempt, the first was missing some layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Yocto Training link you mentioned is dead.&amp;nbsp; Just FYI, I kind of have a handle on it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still want to keep this thread open if that's ok since the goal is to get my streaming server ported to the NXP platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care,&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Doug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;"Nothing is impossible if ImPossible"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:31:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855382#M130799</guid>
      <dc:creator>doug4350</dc:creator>
      <dc:date>2019-01-24T17:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855383#M130800</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;My bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see if this link to the training&amp;nbsp;works:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-94849"&gt;https://community.nxp.com/docs/DOC-94849&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 22:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855383#M130800</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-01-24T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on video streaming on i.mx 8m, linux, ffmpeg &amp;  openmax</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855384#M130801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've finally got my development environment setup and running on the mx8mqevk platform.&amp;nbsp; The Hantro, FFMPEG and OpenMax IL libraries are compiled and I can link a binary.&amp;nbsp; I haven't done much testing, but will open another discussion for that if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some notes for anyone else coming along that may be in a similar situation needing to build an image or create a cross-compiling environment on Docker for Mac:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a few retries of increasing the docker container size to ultimately 200GB, that gave me sufficient space to build the image from the BSP I needed with all the packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this Docker image to start with:&amp;nbsp;&lt;SPAN class=""&gt;satoshikumano/ubuntu-18.04-cpp:0.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;and this command to start a container with the image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Note: -v &amp;lt;host dir&amp;gt;:&amp;lt;container dir&amp;gt;&amp;nbsp; is an option to share a directory between the host and the docker container.&amp;nbsp; This is one way to copy files to/from the host/container which I find more convenient &amp;amp; easier than the docker cp command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;./docker run -it -d -p 80:80 -v &amp;lt;host dir&amp;gt;:&amp;lt;container dir&amp;gt; --name ubuntu satoshikumano/ubuntu-18.04-cpp:0.0.1 bash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The i.MX_Yocto_Project_User's_Guide.pdf file was quite helpful, but there were still issues I had to work through.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;One example is on pgs 5 &amp;amp; 6 on the Yocto Project Setup chapter,&amp;nbsp; I had to use&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;repo init -u &lt;A href="https://source.codeaurora.org/external/imx/imx-manifest" target="test_blank"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt; -b imx-linux-sumo -m imx-4.14.78-1.0.0_ga.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;instead of&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;repo init -u &lt;A href="https://source.codeaurora.org/external/imx/imx-manifest" target="test_blank"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt; -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml&lt;/P&gt;&lt;P class=""&gt;Probably due to the pdf being a little behind.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;In&amp;nbsp;&lt;SPAN class=""&gt;build/conf/local.conf, I had this line set to the following to include all the recipes I needed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;EXTRA_IMAGE_FEATURES ?= "dbg-pkgs dev-pkgs tools-sdk tools-debug tools-profile debug-tweaks"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;There were several linux package dependencies to install besides the ones shown in section 3.1 Host Packages&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;a few were:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;apt-get install python3 python3-pip cpio vim locales dpkg libncurses5-dev libncursesw5-dev xcb-proto&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Also, while building, there were various compile and install stage failures, and I found for a reason yet unknown, that if I went in and ran the appropriate run_docompile or run_doinstall script from a different shell window, it would go through, at which point, the yocto build could be restarted and continue on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Some places I had to actually tweak build scripts as one instance, it was trying to execute python 2.x script with a python 3.x interpreter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Other cases, there were gcc compiler errors which I had to trek through to get working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;There were some cases where the compiler was building for the local environment rather than the target environment which ended up being the $PATH pointing to the incorrect compiler.&amp;nbsp; Adjusting the $PATH variable resolved it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Also, one part of the build was complaining about the locale not being correct, so some parts of these steps fixed it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; dpkg-reconfigure locales&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;apt-get install locales&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;# local-gen en_US.UTF-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;update-locale LC ALL=en_US.UTF-8 LANG=en_US.UTF-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;export LANG=en_US.UTF-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;There were link errors on some modules complaining about missing xcb, Xau and Xdmcp libraries.&amp;nbsp; I ended up tweaking either the offending Makefile or Makefile.ac.&amp;nbsp; Others were resolved by setting this env variable:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;export X_EXTRA_LIBS="-lxcb -lXau -lXdmcp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Here's another&amp;nbsp;build variable that fixed another build failure on one of the recipes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;# error: Undefined reference to _IO_fwide:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;# add -D_IO_fwide=fwide to CFLAGS&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;And lastly, strange compiler errors indicating bugs in gcc which turned out to be OOM errors.&amp;nbsp; I increased the ram footprint of the docker image to 6GB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This is what the final .sdcard image looked like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;-rw-r--r-- 1 pi pi 8682209280 Feb 23 09:49 fsl-image-validation-imx-imx8mqevk-20190222165938.rootfs.sdcard&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Take care,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;- Doug&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;EM&gt;&lt;SPAN class=""&gt;"Nothing is impossible if ImPossible"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:54:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-on-video-streaming-on-i-mx-8m-linux-ffmpeg-openmax/m-p/855384#M130801</guid>
      <dc:creator>doug4350</dc:creator>
      <dc:date>2019-03-14T20:54:00Z</dc:date>
    </item>
  </channel>
</rss>

