ksvideosrc with video capture card
Lóránt Labádi
lorant.labadi at dexonsystems.com
Tue Oct 1 08:01:36 UTC 2019
Thanks your answer I tried it, but I got very similar error:
C:\gstreamer\1.0\x86\bin>gst-launch-1.0 ksvideosrc
device-path="\\\\\?\\pci\#ven_1c04\&dev_0010\&subsys_00111c04\&rev_01\#8\&248d93ad\&0\&003000480008\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{9624a342-fbea-4bed-9765-273e5d690387\}"
! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
0:00:00.112066500 624 0259B200 WARN d3dvideosink
d3dhelpers.c:1146:d3d_set_window_handle:<autovideosink0-actual-sink-d3dvideo>
Window HWND already set to: 0
0:00:00.150439800 624 02597820 WARN ksvideosrc
gstksvideosrc.c:460:gst_ks_video_src_open_device:<ksvideosrc0> failed to
create/open KsClock
0:00:00.164841600 624 02597780 FIXME default
gstutils.c:3981:gst_pad_create_stream_id_interPipeline is live and does
not need PREROLL ...
nal:<ksvideosrc0:src>Setting pipeline to PLAYING ...
Creating random stream-id, consider implementing a deterministic way
of creating a stream-id
New clock: GstSystemClo0:00:00.177084100 ck
02597780 WARN basesrc
gstbasesrc.c:3072:gst_base_src_loop:<ksvideosrc0> error: Internal data
stream error.
0:00:00.181807300 624 02597780 WARN basesrc
gstbasesrc.c:3072:gst_base_src_loop:<ksvideosrc0> error: streaming
stopped, reason not-negotiated (-4)
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.027380300
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
0:00:00.211291000 624 0259B200 WARN d3dvideosink
d3dhelpers.c:1146:d3d_set_window_handle:<autovideosink0-actual-sink-d3dvideo>
Window HWND already set to: 0
Freeing pipeline ...
2019. 09. 30. 21:56 keltezéssel, Nicolas Dufresne írta:
> 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
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
dexon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191001/5fdb3020/attachment-0001.html>
More information about the gstreamer-devel
mailing list