<?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: Encode problem with imxvpuenc_h264</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513558#M83735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imxvpuenc_h264 is community GStreamer-imx plugin and its usage&lt;/P&gt;&lt;P&gt;can be found on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/376271"&gt;i.MX6 GStreamer-imx Plugins - Tutorial &amp;amp;amp; Example Pipelines&lt;/A&gt;&lt;/P&gt;&lt;P&gt;alternatively one can try vpuenc_h264 from fsl-gst-plugin package,&lt;/P&gt;&lt;P&gt;please refer to attached Linux Guide sect.7.3.3 Video encoding.&lt;/P&gt;&lt;P&gt;Differencies are described on&lt;/P&gt;&lt;P&gt;trac.gateworks.com/wiki/Yocto/gstreamer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jun 2016 09:57:13 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-06-04T09:57:13Z</dc:date>
    <item>
      <title>Encode problem with imxvpuenc_h264</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513557#M83734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use gstreamer plugin on iMX6DL board to capture image from camera, encode to H.264 format and stream it to PC&lt;/P&gt;&lt;P&gt;The pipeline I use is:&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! video/x-raw, format=I420,width=1920, height=1080 ! imxvpuenc_h264 gop-size=30 bitrate=512 ! h264parse ! rtph264pay name=pay0 pt=96 timestamp-offset=0 ! udpsink host=192.168.2.100 port=5000 &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the client PC, I create SDP file to display the streaming video in VLC, but there is a warning "wait for SPS/PPS" looping in log, I cannot see any video content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone point out the issue is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also test by saving to file by the pipeline:&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! video/x-raw, format=I420,width=1920, height=1080 ! imxvpuenc_h264 gop-size=30 bitrate=512 ! filesink location=/home/root/file.mp4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vlc can not render to play the video neither.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just was thinking about the encoding problem of imxvpuenc_h264 problem, or please correct me if there is any incorrect in my pipeline setting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 07:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513557#M83734</guid>
      <dc:creator>tutran</dc:creator>
      <dc:date>2016-06-03T07:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Encode problem with imxvpuenc_h264</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513558#M83735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imxvpuenc_h264 is community GStreamer-imx plugin and its usage&lt;/P&gt;&lt;P&gt;can be found on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/376271"&gt;i.MX6 GStreamer-imx Plugins - Tutorial &amp;amp;amp; Example Pipelines&lt;/A&gt;&lt;/P&gt;&lt;P&gt;alternatively one can try vpuenc_h264 from fsl-gst-plugin package,&lt;/P&gt;&lt;P&gt;please refer to attached Linux Guide sect.7.3.3 Video encoding.&lt;/P&gt;&lt;P&gt;Differencies are described on&lt;/P&gt;&lt;P&gt;trac.gateworks.com/wiki/Yocto/gstreamer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jun 2016 09:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513558#M83735</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-06-04T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Encode problem with imxvpuenc_h264</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513559#M83736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igorpadykov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I also investigated the link&amp;nbsp; &lt;A href="https://community.nxp.com/thread/376271" rel="nofollow noopener noreferrer" target="_blank"&gt;i.MX6 GStreamer-imx Plugins - Tutorial &amp;amp;amp; Example Pipelines&lt;/A&gt;&amp;nbsp; you send before I starting construct the pipeline. But it still not helps.&lt;/P&gt;&lt;P&gt;For the attached file, it's a really updated version 4.1.15.&lt;/P&gt;&lt;P&gt;Currently I am using the older BSP (version 3.14.28), and the more supported plugins begin with vpuenc_(codec) are not there.&lt;/P&gt;&lt;P&gt;My only way is to use vpuenc and imxvpuenc_h264 for H.264 encoder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For using examples pipeline from the reference link with imxvpuenc_h264, the pipeline I tried also output mp4 file, but I cannot view it via VLC application.&lt;/P&gt;&lt;H3 id="toc-hId-1534972961"&gt;h264&lt;/H3&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt; h264 is a very popular encoding technology. It is most often used for HD content, such as Blu-rays and HDTV. See below for an example using the hardware accelerated h264 encoder: &lt;/P&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN class="c"&gt;# Take camera input /dev/video0, encode it to h264 at a bitrate of 10mbit/s (CBR) and save to a file. 
&lt;/SPAN&gt;gst-launch-1.0&amp;nbsp; imxv4l2videosrc &lt;SPAN class="nv"&gt;device&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;/dev/video0 ! imxvpuenc_h264 &lt;SPAN class="nv"&gt;bitrate&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;10000 ! filesink &lt;SPAN class="nv"&gt;location&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;/tmp/file.mp4 &lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Some cameras provide output that the vpu encoder can't handle, thus colorspace convert it first: &lt;/P&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN class="c"&gt;# Take camera input /dev/video0, colorspace convert it, encode it to h264 at a quant-param level of 25 (VBR) and save to a file 
&lt;/SPAN&gt;gst-launch-1.0&amp;nbsp; imxv4l2videosrc &lt;SPAN class="nv"&gt;device&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;/dev/video0 ! imxipuvideotransform ! imxvpuenc_h264 quant-param&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;25 ! filesink &lt;SPAN class="nv"&gt;location&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;/tmp/file.mp4 &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my pipeline is:&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! video/x-raw, format=I420,width=1920, height=1080 ! imxvpuenc_h264 gop-size=30 bitrate=512 ! filesink location=/home/root/file.mp4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 07:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Encode-problem-with-imxvpuenc-h264/m-p/513559#M83736</guid>
      <dc:creator>tutran</dc:creator>
      <dc:date>2016-06-06T07:10:10Z</dc:date>
    </item>
  </channel>
</rss>

