<div dir="auto"><div>Try using autovideoconvert instead, and then try increasing debug levels to see what caps negotiation is looking like.</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Oct 1, 2019, 4:01 AM Lóránt Labádi <<a href="mailto:lorant.labadi@dexonsystems.com">lorant.labadi@dexonsystems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Thanks your answer I tried it, but I got very similar error:</p>
<p><br>
</p>
<p>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<br>
Setting pipeline to PAUSED ...<br>
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<br>
0:00:00.150439800 624 02597820 WARN ksvideosrc
gstksvideosrc.c:460:gst_ks_video_src_open_device:<ksvideosrc0>
failed to create/open KsClock<br>
0:00:00.164841600 624 02597780 FIXME default
gstutils.c:3981:gst_pad_create_stream_id_interPipeline is live and
does not need PREROLL ...<br>
nal:<ksvideosrc0:src>Setting pipeline to PLAYING ...<br>
Creating random stream-id, consider implementing a deterministic
way of creating a stream-id<br>
New clock: GstSystemClo0:00:00.177084100 ck<br>
02597780 WARN basesrc
gstbasesrc.c:3072:gst_base_src_loop:<ksvideosrc0> error:
Internal data stream error.<br>
0:00:00.181807300 624 02597780 WARN basesrc
gstbasesrc.c:3072:gst_base_src_loop:<ksvideosrc0> error:
streaming stopped, reason not-negotiated (-4)<br>
ERROR: from element
/GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: Internal data
stream error.<br>
Additional debug info:<br>
../libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop ():
/GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:<br>
streaming stopped, reason not-negotiated (-4)<br>
Execution ended after 0:00:00.027380300<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
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<br>
Freeing pipeline ...</p>
<p><br>
</p>
<p><br>
</p>
<div>2019. 09. 30. 21:56 keltezéssel,
Nicolas Dufresne írta:<br>
</div>
<blockquote type="cite">
<pre>Le lundi 30 septembre 2019 à 15:59 +0200, Lóránt Labádi a écrit :
</pre>
<blockquote type="cite">
<pre>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)
</pre>
</blockquote>
<pre>It's likely the pixel format from the capture which is not compatible
with d3dvideosink, try adding videoconvert in between.
</pre>
<blockquote type="cite">
<pre>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
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank" rel="noreferrer">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank" rel="noreferrer">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></pre>
</blockquote>
</blockquote>
<div>-- <br>
<br>
</div>
</div>
_______________________________________________<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></blockquote></div></div></div>