<div dir="ltr"><div><div><div><div><div>Hi,<br></div>Are you sure that the patch is the right one? It is for GREY not NV12 or I420.<br><br></div>Anyway, I faced a similar issue. I used a rawvideoparse to force the stride to the right value.<br><br></div>So your command should be something like:<br><br><span class="gmail-im">gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=3840,height<wbr>=2160,format=I420 ! rawvideoparse format=2 width=3840 height=2160 ! fakesink<br><br><br></span></div><span class="gmail-im">Best<br></span></div><span class="gmail-im">Matteo Valdina<br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 5:25 PM, Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 1 févr. 2018 11:11, "pavelm" <<a href="mailto:pavel.mikhadzionak@gmail.com" target="_blank">pavel.mikhadzionak@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="m_8845399030500949761quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried to capture 4k video from Inogeni via gstreamer and it's not working:<br>
<br>
gst-launch-1.0 v4l2src device=/dev/video0 !<br>
"video/x-raw,width=3840,height<wbr>=2160,format=I420" ! fakesink<br></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">Do you have the UVC kernel fix for the stride in NV12 and I420 ?</div><div dir="auto"><br></div><div dir="auto"><a href="https://patchwork.linuxtv.org/patch/45357/" target="_blank">https://patchwork.linuxtv.org/<wbr>patch/45357/</a><br></div><div><div class="h5"><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_8845399030500949761quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
With GST_DEBUG="*:3" I see errors:<br>
<br>
ubuntu@tegra-ubuntu:~$ gst-launch-1.0 v4l2src device=/dev/video0 !<br>
"video/x-raw,width=3840,height<wbr>=2160,format=I420" ! fakesink<br>
Setting pipeline to PAUSED ...<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
0:00:00.276135808 18119 0x60f320 WARN v4l2bufferpool<br>
gstv4l2bufferpool.c:1196:gst_v<wbr>4l2_buffer_pool_dqbuf:<v4l2src<wbr>0:pool:src><br>
Driver should never set v4l2_buffer.field to ANY<br>
0:00:00.276210433 18119 0x60f320 WARN v4l2bufferpool<br>
gstv4l2bufferpool.c:1958:gst_v<wbr>4l2_buffer_pool_process:<v4l2s<wbr>rc0:pool:src><br>
Dropping corrupted buffer without payload<br>
0:00:00.276253730 18119 0x60f320 WARN v4l2bufferpool<br>
gstv4l2bufferpool.c:1958:gst_v<wbr>4l2_buffer_pool_process:<v4l2s<wbr>rc0:pool:src><br>
Dropping corrupted buffer without payload<br>
0:00:00.328871196 18119 0x60f320 ERROR default<br>
video-frame.c:161:gst_video_fr<wbr>ame_map_id: failed to map video frame plane 1<br>
0:00:00.328947998 18119 0x60f320 ERROR v4l2bufferpool<br>
gstv4l2bufferpool.c:161:gst_v4<wbr>l2_buffer_pool_copy_buffer:<v4<wbr>l2src0:pool:src><br>
could not map buffer<br>
0:00:00.328976798 18119 0x60f320 ERROR v4l2bufferpool<br>
gstv4l2bufferpool.c:1953:gst_v<wbr>4l2_buffer_pool_process:<v4l2s<wbr>rc0:pool:src><br>
failed to copy buffer<br>
0:00:00.329004031 18119 0x60f320 WARN basesrc<br>
gstbasesrc.c:2939:gst_base_src<wbr>_loop:<v4l2src0> error: Internal data stream<br>
error.<br>
0:00:00.329015263 18119 0x60f320 WARN basesrc<br>
gstbasesrc.c:2939:gst_base_src<wbr>_loop:<v4l2src0> error: streaming stopped,<br>
reason error (-5)<br>
ERROR: from element /GstPipeline:pipeline0/GstV4l2<wbr>Src:v4l2src0: Internal<br>
data stream error.<br>
Additional debug info:<br>
gstbasesrc.c(2939): gst_base_src_loop ():<br>
/GstPipeline:pipeline0/GstV4l2<wbr>Src:v4l2src0:<br>
streaming stopped, reason error (-5)<br>
Execution ended after 0:00:00.186888513<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
</blockquote></div><br></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”<br>- Tony Hoare</div>
</div>