<div dir="ltr"><div dir="ltr">Hi all,<br></div><div dir="ltr"><br></div><div>Further to suggestions by Nicolas and Mariaana, we enabled the additional logs with:
echo 0xff > /sys/class/video4linux/video1/dev_debug
</div><div><br></div><div>Based on that I am reattaching the dmesg output for a working and not working sequence.</div><div><br></div><div>This includes the initial bootup sequence which loads the drivers etc. and the gstreamer invocation which occurs a few seconds later. You can tell the boundary by the time difference.</div><div><br></div><div>We are investigating further. If anything does pop out in the logs, please let me know.</div><div><br></div><div>We are seeing some differences in the timing and the sequences of the boot and load order. In particular, the reset and power_on of the jx355 driver we are looking into. Maybe the OS is loading something while the sensor is in reset state for example.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 18, 2023 at 3:22 AM Marianna Smidth Buschle via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You should simplify your pipeline to narrow the source of the problem.<br>
<br>
gst-launch-1.0 v4l2src device=/dev/video2 ! fakesink<br>
<br>
And build from there, try fx adding identify and dump the data to see if <br>
it is coming through.<br>
<br>
<br>
Also, from the later discussions I agree with Nicolas that it seems more <br>
like a driver or HW issue.<br>
<br>
So try using the standard v4l2 tools for debugging: v4l2-ctl, yavta, <br>
qv4l2...<br>
<br>
See if the streaming works consistently there.<br>
<br>
<br>
Best Regards<br>
<br>
Marianna<br>
<br>
On 15/09/2023 19.26, <a href="mailto:gstreamer-devel-request@lists.freedesktop.org" target="_blank">gstreamer-devel-request@lists.freedesktop.org</a> wrote:<br>
> Message: 3<br>
> Date: Fri, 15 Sep 2023 13:26:43 -0400<br>
> From: Dwight Kulkarni<<a href="mailto:dwight@realtime-7.com" target="_blank">dwight@realtime-7.com</a>><br>
> To: Discussion of the development of and with GStreamer<br>
> <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
> Subject: v4l2src launches inconsistently with camera<br>
> Message-ID:<br>
> <<a href="mailto:CAKW2B8h%2BJ_Sh0Gcy8qBDcPgmLmGK%2BgGP5OQBermOpf0a9-4qng@mail.gmail.com" target="_blank">CAKW2B8h+J_Sh0Gcy8qBDcPgmLmGK+gGP5OQBermOpf0a9-4qng@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi all,<br>
><br>
> We have a camera board and are trying to use Gstreamer with it.<br>
><br>
> Two different units of the exact same camera board are giving different<br>
> behaviour when launching with gstreamer.<br>
><br>
> One of the boards is always launching. Other boards are launching with some<br>
> frequency like 8/10 or 9/10 times. And one of the boards is never launching.<br>
><br>
> When we measure the MIPI output on the camera board, we can measure data<br>
> there when pipeline launches. This means the board is sending data.<br>
><br>
> However, for whatever reason Gstreamer some of the time doesn't start up.<br>
><br>
> We think it might be some sort of timing issue, but it is very<br>
> inconsistent. I am attaching a sample log which includes dmesg output for<br>
> the two cases. In one case, gstreamer was successful and other case not, in<br>
> starting up.<br>
><br>
> In both instances, we don't see any error message but no stream appears. It<br>
> even says v4l2src was set to PLAYING successfully in both cases.<br>
><br>
> If anyone has any insight into this, would really appreciate it. We have<br>
> tried everything even remaking the board twice, but it seems to be some<br>
> timing or initialization or sequencing issue.<br>
><br>
> -- Sincerely, Dwight Kulkarni -------------- next part -------------- <br>
> An HTML attachment was scrubbed... URL: <br>
> <<a href="https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230915/58f435ad/attachment.htm" rel="noreferrer" target="_blank">https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230915/58f435ad/attachment.htm</a>> <br>
> -------------- next part -------------- root@viperimx8mp:~# <br>
> GST_DEBUG=4 gst-launch-1.0 v4l2src device=/dev/video2 ! <br>
> imxvideoconvert_g2d ! "video/x-raw, width=1920, height=1080, <br>
> framerate=15/1" ! vpuenc_h264 bitrate=4096 ! h264parse ! rtph264pay ! <br>
> udpsink host=10.0.0.79 port=5000 sync=false<br>
<br>
-- <br>
Best regards / Med venlig hilsen<br>
“Marianna Smidth Buschle”<br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Sincerely,</span><div><br></div><div>Dwight Kulkarni </div><div><br></div></div></div></div></div></div></div></div>