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) 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 [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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) 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 > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (201 bytes) Download Attachment |
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
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 [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel --
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Try using autovideoconvert instead, and then try increasing debug levels to see what caps negotiation is looking like. On Tue, Oct 1, 2019, 4:01 AM Lóránt Labádi <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks again, here is the log:
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\}\\\{9624a342-fbea-4bed-9765-273e5d690387\}"
! autovideoconvert ! autovideosink
2019. 10. 02. 13:40 keltezéssel, Josh D
írta:
--
Best regards, Lorant Labadi
The information contained in this communication from the
sender is confidential. It is intended solely for use by the
recipient and others authorized to receive it.
|
Free forum by Nabble | Edit this page |