<div dir="auto"><div>Hi,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 8 oct. 2023, 10 h 00, Regine Issan via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><div><p>Hello Dear community,<br>I will appreciate your opinion regarding the question below.<br>THanks in advance.<br><br>
I need an app that uses v4l2 to capture frames from webcam.<br>
the app needs to process (un compressed !!!) 4k frames with 30fps.</p>
<p>according to v4l2-ctl, to get 4k frames with 30 fps, camera requires MJPEG files (compressed).</p>
<p>That means MJPEG files has to be converted to raw files (eg, RGB).</p>
<p>question is:</p>
<ol><li>is there any way to configure v4l2 do the conversion for me<br>
or do i have to write special code to do the conversion ?</li></ol></div></div></div></blockquote></div></div><div dir="auto">As you are asking on GStreamer mailing list, I will assume you intend to use GStreamer. A simple pipeline like this (you can test with gst-launch-1.0) can do:</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">v4l2src ! queue ! jpegdec ! ...</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Depending on your platform, a hardware accelerated jpeg decoder might be available.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><ol><li>if i have to write special code to do the conversion,<br>
is there any recommandation how to do it efficently ?(i an working with Orin)<br></li></ol></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Orin like in Jetson Orin? If yes, some Nvidia specific elements might be needed to move the memory into memory usable by the GPU, refer to Nvidia forum for more details.</div><div dir="auto"><br></div><div dir="auto">Nicolas</div><div dir="auto"><br></div><div dir="auto">p.s. GStreamer also have a forum now at <a href="http://discourse.gstreamer.org">discourse.gstreamer.org</a></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>