<?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: H.264 encoder header problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300931#M37819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The encoded video file should play in common video players. This is the primary requirement, I can't suggest user to use some specific player.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 08:12:46 GMT</pubDate>
    <dc:creator>nandkishorbirad</dc:creator>
    <dc:date>2014-04-23T08:12:46Z</dc:date>
    <item>
      <title>H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300925#M37813</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am working on i.MX53 platform on linux 2.6.35. It captures the camera feed and encodes to H.264 file format. I used mxc_vpu_test as a reference project. The problem is it doesn't play in VLC player or other than the movie player of ubuntu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I checked the video created by mxc_vpu_test.out, It is also having same problem. I think, this some encoder header issue.&lt;/P&gt;&lt;P&gt;Has anybody faced same issue &amp;amp; how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the command for mxc_vpu_test is,&lt;/P&gt;&lt;P&gt;./mxc_vpu_test -E "-o Out.mp4 -f 2 -c 300 -w 640 -h 480"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandkishor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 05:02:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300925#M37813</guid>
      <dc:creator>nandkishorbirad</dc:creator>
      <dc:date>2014-04-22T05:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300926#M37814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guess the header is not stored. Using vpu_EncGiveCommand(handle, ENC_PUT_AVC_HEADER, &amp;amp;hdr_sps) api with appropriate parameters will provide the headers. Write the header to the file before writing the encoded data.Sample code may be fetching the header already - try to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 08:27:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300926#M37814</guid>
      <dc:creator>prasannakumar_m</dc:creator>
      <dc:date>2014-04-22T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300927#M37815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpu_EncGiveCommand is already used as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;enchdr_param.headerType = SPS_RBSP;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;vpu_EncGiveCommand(handle, ENC_PUT_AVC_HEADER, &amp;amp;enchdr_param);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;vbuf = (virt_bsbuf + enchdr_param.buf - phy_bsbuf);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ret = vpu_write(enc-&amp;gt;cmdl, (void *)vbuf, enchdr_param.size);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;enchdr_param.headerType = PPS_RBSP;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;vpu_EncGiveCommand(handle, ENC_PUT_AVC_HEADER, &amp;amp;enchdr_param);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;vbuf = (virt_bsbuf + enchdr_param.buf - phy_bsbuf);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ret = vpu_write(enc-&amp;gt;cmdl, (void *)vbuf, enchdr_param.size);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I have attached the screen-shot of video file in hex editor. (mxc_vpu_test.png) and the video file created using G-streamer (g-streamer.png),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandkishor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300927#M37815</guid>
      <dc:creator>nandkishorbirad</dc:creator>
      <dc:date>2014-04-22T10:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300928#M37816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the header is present in the vpu encoded file. There must be some other problem. Please try playing in mplayer or ffplay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 11:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300928#M37816</guid>
      <dc:creator>prasannakumar_m</dc:creator>
      <dc:date>2014-04-22T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300929#M37817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned earlier the video plays in movie player in ubuntu 12.04. But not in other players like VLC player.&lt;/P&gt;&lt;P&gt;The video file recorded using g-streamer plays in all video player.&lt;/P&gt;&lt;P&gt;Did you see the attached screen shot of both video files in hex editor. g-streamer video file has more informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you point out what information is missing in other video file (mxc_vpu_test.png) &amp;amp; how can I generate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandkishor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 12:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300929#M37817</guid>
      <dc:creator>nandkishorbirad</dc:creator>
      <dc:date>2014-04-22T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300930#M37818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ffplay, Luke! :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 13:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300930#M37818</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2014-04-22T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300931#M37819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The encoded video file should play in common video players. This is the primary requirement, I can't suggest user to use some specific player.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 08:12:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300931#M37819</guid>
      <dc:creator>nandkishorbirad</dc:creator>
      <dc:date>2014-04-23T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300932#M37820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you should add video frames in container, e.g. avi.&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 09:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300932#M37820</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2014-04-23T09:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300933#M37821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as I mentioned in the SR, I send the link to you, try to change the raw data to mp4 file first, hope that helpful for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 08:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300933#M37821</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2014-04-25T08:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300934#M37822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nandkishor&lt;/P&gt;&lt;P&gt;Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 03:36:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300934#M37822</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-06-20T03:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 encoder header problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300935#M37823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nandkishor&lt;/P&gt;&lt;P&gt;This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 08:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-encoder-header-problem/m-p/300935#M37823</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-07-03T08:00:27Z</dc:date>
    </item>
  </channel>
</rss>

