[Bug 792034] implement dmabuf-import negotiation with upstream

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 29 08:46:14 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=792034

--- Comment #38 from deshui <deshui.guo at intel.com> ---
(In reply to Víctor Manuel Jáquez Leal from comment #37)
> (In reply to deshui from comment #35)
> > after apply the patches from bug #793271 and bug #793274 on master branch
> > other format works well except format NV12 WITH command
> > gst-launch-1.0  v4l2src  io-mode=5 num-buffers=100 !
> > video/x-raw,format=NV12,width=1280,height=720 ! vaapipostproc ! filesink
> > location=1.raw 
> > so, gstreamer-vappi seems not support NV12 now?
> 
> That's because my (and I assume yours) v4l2src device doesn't handle NV12
> 
> 0:00:00.207682288  5580      0x1e652d0 DEBUG                v4l2src
> gstv4l2src.c:504:gst_v4l2src_negotiate:<v4l2src0> caps of src: video/x-raw,
> format=(string)YUY2, width=(int)1280, height=(int)720,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1; video/x-raw,
> format=(string)YUY2, width=(int)960, height=(int)540,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1; video/x-raw,
> format=(string)YUY2, width=(int)848, height=(int)480,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)20/1; video/x-raw,
> format=(string)YUY2, width=(int)640, height=(int)480,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> video/x-raw, format=(string)YUY2, width=(int)640, height=(int)360,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> video/x-raw, format=(string)YUY2, width=(int)424, height=(int)240,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> video/x-raw, format=(string)YUY2, width=(int)352, height=(int)288,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> video/x-raw, format=(string)YUY2, width=(int)320, height=(int)180,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)1280, height=(int)720,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)960, height=(int)540,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)848, height=(int)480,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)640, height=(int)480,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)640, height=(int)360,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)424, height=(int)240,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)352, height=(int)288,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)320, height=(int)240,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
> image/jpeg, width=(int)320, height=(int)180,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 }
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> 0:00:00.211450330  5580      0x1e652d0 DEBUG                v4l2src
> gstv4l2src.c:512:gst_v4l2src_negotiate:<v4l2src0> caps of peer: video/x-raw,
> format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)[
> 0/1, 2147483647/1 ], interlace-mode=(string){ progressive, interleaved,
> mixed }
> 0:00:00.211518706  5580      0x1e652d0 DEBUG                v4l2src
> gstv4l2src.c:518:gst_v4l2src_negotiate:<v4l2src0> intersect: EMPTY
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
> data stream error.
> 
> > by the way, vappisink works well but filesink failed
> 
> fails how?

I use vivid, which should support NV12
I can find "video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720"
in v4l2src gstv4l2src.c:504:gst_v4l2src_negotiate:

and the error log is:

(gst-launch-1.0:745): GStreamer-CRITICAL **: gst_memory_unmap: assertion 'mem
!= NULL' failed
0:00:00.445999797   745 0x564d5250b540 DEBUG                v4l2src
gstv4l2src.c:913:gst_v4l2src_create:<v4l2src0> ts: 0:01:08.072851000 now
0:01:08.073164703 delay 0:00:00.000313703
0:00:00.446087104   745 0x564d5250b540 INFO                 v4l2src
gstv4l2src.c:949:gst_v4l2src_create:<v4l2src0> sync to 0:00:00.133333332 out ts
0:00:00.090602346
0:00:00.446215700   745 0x564d5250b540 ERROR       vaapivideomemory
gstvaapivideomemory.c:278:map_vaapi_memory: failed to make image current

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list