<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 5 déc. 2018 00 h 26, harikrishnan <<a href="mailto:hari.vinu.4@gmail.com">hari.vinu.4@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am using gstreamer version 1.8.3 on ubunutu 16.04 LTS.<br>
I am trying to run a pipeline using gst-launch-1.0 with the following<br>
command on terminal.(which streams webcam video in my laptop)<br>
Command:<br>
gst-launch-1.0 -v v4l2src io-mode=4 ! video/x-raw,format=BGR ! videoconvert<br>
! autovideosink --gst-debug=2<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Packed BGR 24bit is a libv4l2 emulated format. It is rarely supported by HW. DmABuf can only be used with HW supported formats.</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">
<br>
And i am getting the debug messages<br>
"<br>
0:00:00.682056977  4806      0x1c624a0 ERROR               fdmemory<br>
gstfdmemory.c:114:gst_fd_mem_map: 0x1c5d5f0: fd 20: mmap failed: Invalid<br>
argument<br>
0:00:00.682092724  4806      0x1c624a0 ERROR             GST_MEMORY<br>
gstmemory.c:324:gst_memory_map: mem 0x1c5d5f0: subclass map failed<br>
0:00:00.682124299  4806      0x1c624a0 ERROR               fdmemory<br>
gstfdmemory.c:114:gst_fd_mem_map: 0x1c5d5f0: fd 20: mmap failed: Invalid<br>
argument<br>
0:00:00.682138286  4806      0x1c624a0 ERROR             GST_MEMORY<br>
gstmemory.c:324:gst_memory_map: mem 0x1c5d5f0: subclass map failed<br>
0:00:00.682152551  4806      0x1c624a0 ERROR                default<br>
video-frame.c:161:gst_video_frame_map_id: failed to map video frame plane 0<br>
0:00:00.682171269  4806      0x1c624a0 WARN             videofilter<br>
gstvideofilter.c:292:gst_video_filter_transform:<videoconvert0> warning:<br>
invalid video buffer received<br>
WARNING: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert0:<br>
Internal GStreamer error: code not implemented.  Please file a bug at<br>
<a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" rel="noreferrer noreferrer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>
Additional debug info:<br>
gstvideofilter.c(292): gst_video_filter_transform ():<br>
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0:<br>
invalid video buffer received<br>
"<br>
<br>
But the same pipeline works if I change the format=YUY2.<br>
Working Command:<br>
gst-launch-1.0 -v v4l2src io-mode=4 ! video/x-raw,format=YUY2 ! videoconvert<br>
! autovideosink --gst-debug=2<br>
<br>
>From the debug messages I found that mmap fails when using BGR format and<br>
dmabuf.<br>
<br>
I suspected the size of data to mmap. In case of BGR it was 2.7 MB to mmap<br>
and in case of YUY2 it was 1.8 MB for one frame buffer.<br>
So I hardcorded the BGR size to 1.8 MB just before doing mmap. Then mmap did<br>
not throw any errors but obviously pipeline broke at some other point since<br>
it will make data invalid.<br>
<br>
Can someone help me on this issue? I want to build a pipeline with BGR<br>
format as output from v4l2src and it should use dmabuf as io-mode.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>