<?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 Problems in H.264 encoding and decoding video using MINISASTOCSI in imx8mpevk in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problems-in-H-264-encoding-and-decoding-video-using-MINISASTOCSI/m-p/1298570#M176061</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am able to display the video using waylandsink and autovideosink commands:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! autovideosink &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=1920,height=1080 ! queue max-size-time=0 ! waylandsink enable-tile=true sync=false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;imx8mpevk&lt;/STRONG&gt; board.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;root@imx8mpevk:/# uname -r&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;5.10.9-1.0.0+g32513c25d8c7&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I am unable to perform H.264 encoding and decoding of video. I tried the below commands:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:~# &lt;STRONG&gt;&lt;EM&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! \&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt; v4l2h264enc extra-controls="controls,h264_entropy_mode=0,video_bitrate=245000;" ! \&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt; h264parse ! v4l2h264dec ! queue ! waylandsink sync=false&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;WARNING: erroneous pipeline: no element "v4l2h264enc"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:/# &lt;STRONG&gt;&lt;EM&gt;gst-launch-1.0 videotestsrc ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUENC: 4.6.0 build on Jan 29 2021 08:22:32. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb 18 2021 02:40:50)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;^Chandling interrupt.&lt;BR /&gt;Interrupt: Stopping pipeline ...&lt;BR /&gt;Execution ended after 0:00:08.299120750&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:/# &lt;EM&gt;&lt;STRONG&gt;gst-launch-1.0 filesrc location=test.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! vpudec ! queue ! waylandsink&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUDEC: 4.6.0 build on Jan 29 2021 08:22:32. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb 18 2021 02:40:50)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: This file is invalid and cannot be played.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/gst/isomp4/qtdemux.c(535): gst_qtdemux_pull_atom (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;atom has bogus size 9911666659956916224&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;streaming stopped, reason error (-5)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: This file contains no playable streams.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/gst/isomp4/qtdemux.c(489): gst_qtdemux_post_no_playable_stream_error (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;no known streams found&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:~# &lt;EM&gt;&lt;STRONG&gt;gst-launch-1.0 videotestsrc device=/dev/video1 ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;WARNING: erroneous pipeline: no property "device" in element "videotestsrc0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be obliged if you can help me solve this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need any further information, feel free to ask me.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 18:56:07 GMT</pubDate>
    <dc:creator>kenizgandhi</dc:creator>
    <dc:date>2021-06-25T18:56:07Z</dc:date>
    <item>
      <title>Problems in H.264 encoding and decoding video using MINISASTOCSI in imx8mpevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problems-in-H-264-encoding-and-decoding-video-using-MINISASTOCSI/m-p/1298570#M176061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am able to display the video using waylandsink and autovideosink commands:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! autovideosink &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=1920,height=1080 ! queue max-size-time=0 ! waylandsink enable-tile=true sync=false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;imx8mpevk&lt;/STRONG&gt; board.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;root@imx8mpevk:/# uname -r&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;5.10.9-1.0.0+g32513c25d8c7&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I am unable to perform H.264 encoding and decoding of video. I tried the below commands:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:~# &lt;STRONG&gt;&lt;EM&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! \&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt; v4l2h264enc extra-controls="controls,h264_entropy_mode=0,video_bitrate=245000;" ! \&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt; h264parse ! v4l2h264dec ! queue ! waylandsink sync=false&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;WARNING: erroneous pipeline: no element "v4l2h264enc"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:/# &lt;STRONG&gt;&lt;EM&gt;gst-launch-1.0 videotestsrc ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUENC: 4.6.0 build on Jan 29 2021 08:22:32. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb 18 2021 02:40:50)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;^Chandling interrupt.&lt;BR /&gt;Interrupt: Stopping pipeline ...&lt;BR /&gt;Execution ended after 0:00:08.299120750&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;BR /&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:/# &lt;EM&gt;&lt;STRONG&gt;gst-launch-1.0 filesrc location=test.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! vpudec ! queue ! waylandsink&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUDEC: 4.6.0 build on Jan 29 2021 08:22:32. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Feb 18 2021 02:40:50)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: This file is invalid and cannot be played.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/gst/isomp4/qtdemux.c(535): gst_qtdemux_pull_atom (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;atom has bogus size 9911666659956916224&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;streaming stopped, reason error (-5)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: This file contains no playable streams.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/gst/isomp4/qtdemux.c(489): gst_qtdemux_post_no_playable_stream_error (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;no known streams found&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@imx8mpevk&lt;/STRONG&gt;:~# &lt;EM&gt;&lt;STRONG&gt;gst-launch-1.0 videotestsrc device=/dev/video1 ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;WARNING: erroneous pipeline: no property "device" in element "videotestsrc0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be obliged if you can help me solve this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need any further information, feel free to ask me.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 18:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problems-in-H-264-encoding-and-decoding-video-using-MINISASTOCSI/m-p/1298570#M176061</guid>
      <dc:creator>kenizgandhi</dc:creator>
      <dc:date>2021-06-25T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in H.264 encoding and decoding video using MINISASTOCSI in imx8mpevk</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problems-in-H-264-encoding-and-decoding-video-using-MINISASTOCSI/m-p/1298639#M176074</link>
      <description>&lt;P&gt;Hello, I got the output. In case if anyone wants, I am writing the commands below. Hope it helps.&lt;/P&gt;&lt;P&gt;gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1000 ! video/x-raw,width=1920,height=1080 ! vpuenc_h264 ! avimux ! filesink location=test1_h264.avi&lt;BR /&gt;gst-launch-1.0 filesrc location=test1_h264.avi ! queue ! h264parse ! vpudec ! imxvideoconvert_g2d ! queue ! autovideosink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// dont use qtdemux if you are decoding h264 stream. use qtdemux when you are decoding mov or mp4 files.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 09:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problems-in-H-264-encoding-and-decoding-video-using-MINISASTOCSI/m-p/1298639#M176074</guid>
      <dc:creator>kenizgandhi</dc:creator>
      <dc:date>2021-06-26T09:03:12Z</dc:date>
    </item>
  </channel>
</rss>

