<?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: H264 Encoder to WebRTC Problems</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991152#M147148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jarrod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imxvpuenc_h264 is part of gstreamer-imx plugins, issues may be posted on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Freescale/gstreamer-imx/issues" title="https://github.com/Freescale/gstreamer-imx/issues"&gt;Issues · Freescale/gstreamer-imx · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively one can try nxp gstreamer plugins (imx-gst1.0-plugins) using linux&lt;/P&gt;&lt;P&gt;documentation (Linux Guide) on link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Fri, 06 Mar 2020 05:43:33 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-03-06T05:43:33Z</dc:date>
    <item>
      <title>H264 Encoder to WebRTC Problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991151#M147147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having an issue getting video to properly display via webRTC and the problem seems to be the h264 encoding done by&amp;nbsp;imxvpuenc_h264.&amp;nbsp; My setup is I am using gstreamer to stream RTP to a UDP sink and then using Janus Gateway to do the webRTC that can be viewed by the user when the connect to a webpage running on the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what happens is if i do this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gst-launch-1.0 videotestsrc is-live=true ! openh264enc ! rtph264pay ! capssetter caps="application/x-rtp,profile-level-id=(string)42e01f" ! udpsink host=127.0.0.1 port=8080 &amp;amp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Everything works perfectly!&amp;nbsp; The video displays on the page with no issues, but as you can see i'm using the openh264enc and doing the encoding via software.&amp;nbsp; If I swap out the encoder and use the imx's gstreamer hardware encoder like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gst-launch-1.0 videotestsrc is-live=true ! imxvpuenc_h264 ! rtph264pay !&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;capssetter caps="application/x-rtp,profile-level-id=(string)42e01f" |&lt;/SPAN&gt;&amp;nbsp;udpsink host=127.0.0.1 port=8080 &amp;amp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Things don't work as well.&amp;nbsp; It partially works, so if i start the pipeline above AFTER i open the webpage on my client the video shows and plays fine, BUT if the pipeline has been started before I open the page or i have a short network blip the video doesn't play it just freezes at the current frame (or no frame if page loaded after stream is started).&amp;nbsp; It's like there is some data sent at the very start of the video or something that if i miss it, it won't play.&amp;nbsp; I tried doing something like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gst-launch-1.0 videotestsrc is-live=true ! imxvpuenc_h264 ! fdsink | ffmpeg -f h264 -i - -c:v copy -flags global_header -bsf dump_extra -f rtp rtp://127.0.0.1:8080 &amp;amp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To have ffmpeg put the headers in but that didn't make any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts about what the issue with the video encoded by the hardware encoder might be?&amp;nbsp; Or if there is a better place to ask this question?&amp;nbsp; Since i can fix the issue by simply not using the hardware encoder it would seem to be a problem with that, so this seemed like the best place to start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 13:35:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991151#M147147</guid>
      <dc:creator>jcc273</dc:creator>
      <dc:date>2020-03-05T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: H264 Encoder to WebRTC Problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991152#M147148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jarrod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imxvpuenc_h264 is part of gstreamer-imx plugins, issues may be posted on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Freescale/gstreamer-imx/issues" title="https://github.com/Freescale/gstreamer-imx/issues"&gt;Issues · Freescale/gstreamer-imx · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively one can try nxp gstreamer plugins (imx-gst1.0-plugins) using linux&lt;/P&gt;&lt;P&gt;documentation (Linux Guide) on link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Fri, 06 Mar 2020 05:43:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991152#M147148</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-03-06T05:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: H264 Encoder to WebRTC Problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991153#M147149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor!&amp;nbsp; I am going to give the other gstreamer stuff a try over the weekend and see how it goes and if it doesn't help then i'll try the github for gstreamer-imx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 13:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/991153#M147149</guid>
      <dc:creator>jcc273</dc:creator>
      <dc:date>2020-03-06T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: H264 Encoder to WebRTC Problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/1744431#M214553</link>
      <description>&lt;P&gt;Please check the config-interval property of rtph264pay component, set that to say 1 , so that you will get the ID frames for every 1 second and that might solve your issue.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 11:11:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H264-Encoder-to-WebRTC-Problems/m-p/1744431#M214553</guid>
      <dc:creator>abeeshmp_dct</dc:creator>
      <dc:date>2023-10-23T11:11:43Z</dc:date>
    </item>
  </channel>
</rss>

