ksvideosrc with video capture card

Nicolas Dufresne nicolas at ndufresne.ca
Mon Sep 30 19:56:47 UTC 2019


Le lundi 30 septembre 2019 à 15:59 +0200, Lóránt Labádi a écrit :
> Hi guys,
> 
> I'm trying to capture video from a frame grabber card but I got an issue:
> 
> gst_device_monitor's output:
> 
> Device found:
> 
>          name  : D4-PREV8 PCIe Video Capture
>          class : Video/Source
>          caps  : video/x-raw, format=(string)BGRx, width=(int)[ 64, 3840 
> ], height=(int)[ 1, 2160 ], framerate=(fraction)[ 0/1, 60/1 ], 
> pixel-aspect-ratio=(fraction)1/1;
>          gst-launch-1.0 ksvideosrc 
> device-path="\\\\\?\\pci\#ven_1c04\&dev_0010\&subsys_00111c04\&rev_01\#8\&2d8ac41c\&0\&002800480008\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{46d01bbe-d9d5-4027-a95f-c01ae2ade565\}" 
> ! ...
> 
> 
> I tried:
> 
> gst-launch-1.0 ksvideosrc 
> device-path="\\\\\?\\pci\#ven_1c04\&dev_0010\&subsys_00111c04\&rev_01\#8\&2d8ac41c\&0\&002800480008\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{46d01bbe-d9d5-4027-a95f-c01ae2ade565\}" 
> ! autovideosink
> 
> The log output:
> 
> Setting pipeline to PAUSED ...
> 0:00:00.103031700  2920   02475E20 WARN            d3dvideosink 
> d3dhelpers.c:1146:d3d_set_window_handle:<autovideosink0-actual-sink-d3dvideo> 
> Window HWND already set to: 0
> 0:00:00.143475100  2920   0247A500 WARN              ksvideosrc 
> gstksvideosrc.c:460:gst_ks_video_src_open_device:<ksvideosrc0> failed to 
> create/open KsClock
> 0:00:00.155500600  2920   0247A550 FIXME                default 
> gstutils.c:3981:gst_pad_create_stream_id_internal:<ksvideosrc0:src> 
> CreatingPipeline is live and does not need PRE random stream-id, 
> consider implementing a deterministic way of creating a stream-id
> ROLL ...
> 0:00:00.167675900 Setting pipeline to PLAYING ...
>   2920New clock: GstSystemClock
>     0247A550 WARN                 basesrc 
> gstbasesrc.c:3072:gst_base_src_loop:<ksvideosrc0> error: Internal data 
> stream error.
> 0:00:00.174636900  2920   0247A550 WARN                 basesrc 
> gstbasesrc.c:3072:gst_base_src_loop:<ksvideosrc0> error: streaming 
> stopped, reason not-negotiated (-4)

It's likely the pixel format from the capture which is not compatible
with d3dvideosink, try adding videoconvert in between.

> ERROR: from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: 
> Internal data stream error.
> Additional debug info:
> ../libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): 
> /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
> streaming stopped, reason not-negotiated (-4)
> Execution ended after 0:00:00.025105200
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> 0:00:00.207579700  2920   02475E20 WARN            d3dvideosink 
> d3dhelpers.c:1146:d3d_set_window_handle:<autovideosink0-actual-sink-d3dvideo> 
> Window HWND already set to: 0
> Freeing pipeline ...
> 
> 
> Can you guys help me with this, please?
> 
> Thanks,
> Lorant
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190930/4d8fb6c6/attachment.sig>


More information about the gstreamer-devel mailing list