<?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: Imxcompositor Gstreamer Lagging Problem on IMX8MPlus</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711568#M211459</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;The pipeline is ok syntactically and the camera is streaming normally for the first 20 minutes. Then it starts to develop a slight lag. The lag then appears to accelerate until the pipeline freezes.&lt;/P&gt;&lt;P&gt;For example, a new video is created ever 1 second:&lt;/P&gt;&lt;P&gt;157533 the test starts. The video is 2 seconds behind, which is expected.&lt;/P&gt;&lt;P&gt;158000. The video is 2 seconds behind&lt;/P&gt;&lt;P&gt;159000. The video is 3 seconds behind&lt;/P&gt;&lt;P&gt;160000. The video is 7 seconds behind&lt;/P&gt;&lt;P&gt;160500. The video is 104 second behind.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is strange about this is that the videotestsrc is ok, so that means the imx_compositor isn't the problem, otherwise the videotestsrc frames should also be freezing up since both frames are composited into a single image. The /dev/video3 is getting backed up for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing on the IMX8MPLUS EVK with the NXP&amp;nbsp;&lt;SPAN&gt;MINISASTOCSI&amp;nbsp; camera module. The frame rate of 15 fps should be manageable. But it doesn't appear to be the case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 15:57:03 GMT</pubDate>
    <dc:creator>dwightk</dc:creator>
    <dc:date>2023-08-25T15:57:03Z</dc:date>
    <item>
      <title>Imxcompositor Gstreamer Lagging Problem on IMX8MPlus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711027#M211411</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three pipelines (as below). Sink pipeline takes&lt;STRONG&gt; videotestsrc&lt;/STRONG&gt; and&lt;STRONG&gt; /dev/video3&lt;/STRONG&gt; input and then uses&lt;STRONG&gt; imxcompositor_g2d&lt;/STRONG&gt; to convert them into a single stacked image which is then outputted to the &lt;STRONG&gt;appsink&lt;/STRONG&gt; element named &lt;STRONG&gt;sourcesink&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&lt;STRONG&gt; sourcesink&lt;/STRONG&gt; frames are then passed into the appsrc of the other two pipelines where they are then cropped and turned into .mp4 videos.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg. src Pipeline 1 and 2 respectively take the same image, split it into two and then create a video from the top and bottom of it. Pipeline 1 creates an image from &lt;STRONG&gt;/dev/video3&lt;/STRONG&gt; and Pipeline 2 from &lt;STRONG&gt;videotestsrc&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behaviour I observed is that the videotestsrc is creating videos fine. However, the /dev/video3 after about 30 minutes starts producing frozen videos, where its the same image in every frame. Also the frame is from 3-4 minutes ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I noticed on the forums others are using &lt;FONT color="#FF00FF"&gt;imxv4l2src&lt;/FONT&gt; whereas we are using only &lt;FONT color="#FF0000"&gt;v4l2src&lt;/FONT&gt;. What is the difference between the two ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached video for further clarity. 157533 is the video at the start after about 10 minutes of running which shows the frames are scrolling normally coming out of /dev/video3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;161325 is the same pipeline after running for about 1 hr. It is frozen and lagging. However, notice that the corresponding stereo image that comes off the videotestsrc is showing normal streaming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas of what might be the problem ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Sink Pipeline:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;imxcompositor_g2d name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=1920 sink_0::height=1080 sink_1::xpos=0 sink_1::ypos=1080 sink_1::width=1920 sink_1::height=1080 ! imxvideoconvert_g2d ! video/x-raw,format=BGRx,width=1920,height=2160 !appsink name=sourcesink emit-signals=True&lt;STRONG&gt; videotestsrc&lt;/STRONG&gt; ! video/x-raw, width=1920, height=1080, framerate=15/1 ! queue ! comp.sink_1 &lt;STRONG&gt;v4l2src device=/dev/video3&lt;/STRONG&gt; ! video/x-raw, width=1920, height=1080, framerate=15/1 ! queue ! comp.sink_0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Src Pipeline 1:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;appsrc name=mpsrc ! videoparse format=8 width=1920 height=2160 framerate=15/1 ! videocrop top=0 bottom=1080 right=0 left=0 ! imxvideoconvert_g2d ! queue ! vpuenc_h264 ! queue ! h264parse ! splitmuxsink name=mpsink location=./cropped_mkv/output%02d.mkv&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Src Pipeline 2:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;appsrc name=mpsrc2 ! videoparse format=8 width=1920 height=2160 framerate=15/1 ! videocrop top=1080 bottom=0 right=0 left=0 ! imxvideoconvert_g2d ! queue ! vpuenc_h264 ! queue ! h264parse ! splitmuxsink name=mpsink2 location=./cropped_mkv/output%02d.mkv&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Aug 2023 23:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711027#M211411</guid>
      <dc:creator>dwightk</dc:creator>
      <dc:date>2023-08-24T23:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Imxcompositor Gstreamer Lagging Problem on IMX8MPlus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711524#M211455</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Just for top of my head, since you have working with three videos and the pipeline is correct you might have trouble with DDR. or the connection where is video3 is lost.&lt;/P&gt;
&lt;P&gt;the imxv4l2src is exclusively for imx devices where is optimized and tested.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711524#M211455</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-08-25T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Imxcompositor Gstreamer Lagging Problem on IMX8MPlus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711568#M211459</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;The pipeline is ok syntactically and the camera is streaming normally for the first 20 minutes. Then it starts to develop a slight lag. The lag then appears to accelerate until the pipeline freezes.&lt;/P&gt;&lt;P&gt;For example, a new video is created ever 1 second:&lt;/P&gt;&lt;P&gt;157533 the test starts. The video is 2 seconds behind, which is expected.&lt;/P&gt;&lt;P&gt;158000. The video is 2 seconds behind&lt;/P&gt;&lt;P&gt;159000. The video is 3 seconds behind&lt;/P&gt;&lt;P&gt;160000. The video is 7 seconds behind&lt;/P&gt;&lt;P&gt;160500. The video is 104 second behind.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is strange about this is that the videotestsrc is ok, so that means the imx_compositor isn't the problem, otherwise the videotestsrc frames should also be freezing up since both frames are composited into a single image. The /dev/video3 is getting backed up for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing on the IMX8MPLUS EVK with the NXP&amp;nbsp;&lt;SPAN&gt;MINISASTOCSI&amp;nbsp; camera module. The frame rate of 15 fps should be manageable. But it doesn't appear to be the case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 15:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imxcompositor-Gstreamer-Lagging-Problem-on-IMX8MPlus/m-p/1711568#M211459</guid>
      <dc:creator>dwightk</dc:creator>
      <dc:date>2023-08-25T15:57:03Z</dc:date>
    </item>
  </channel>
</rss>

