ksvideosrc: Failed to start capture

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ksvideosrc: Failed to start capture

Michael MacIntosh

Hi,

I am on windows 10 using gstreamer 1.12 and I am trying to capture video from an Osprey 460e analog capture card, and I was running into any difficulties using the ksvideosrc element.

It appears to be finding the device but is running into some errors.

My test pipeline:

gst-launch-1.0.exe ksvideosrc device-index=0 ! autovideosink

After executing that, I get an error that it cant create or open ksclock.

It doesn't recognize the GUID for rgb8.

And then it says it can't start capture because of reason 0x048f (ERROR_DEVICE_NOT_CONNECTED), even though the device is connected and I can capture it through VLC, directshow, and the Osprey capture card driver software.  My best guess (looking over the source code near https://github.com/GStreamer/gst-plugins-bad/blob/master/sys/winks/gstksvideosrc.c#L961 ), it appears to be getting the error from a call to GetOverlappedResult.

I have tested with a USB webcam to verify that the ksvideosrc does at least work for something and it does work with a USB web camera. 

Also all devices on this card appear to have the same issue.  I also get this same behavior from autovideosrc as well.

Let me know if I can provide anymore information, or if anyone has any suggestions on things to try.

Here is my GST_DEBUG=ks*:4 output:


gst-launch-1.0.exe ksvideosrc device-index=0 ! autovideosink
Setting pipeline to PAUSED ...
0:00:00.273953842  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideosrc.c:430:gst_ks_video_src_open_device:<ksvideosrc0> device 0: name='Osprey-460e Capture Device' path='\\?\pci#ven_14f1&dev_8880&subsys_04601576&rev_04#6&2e7f5205&0&003800e4#{6994ad05-93ef-11d0-a3cc-00a0c9223196}\{9c888e93-8c05-4d7c-ad74-70d8f8412f34}'
0:00:00.277595790  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideosrc.c:430:gst_ks_video_src_open_device:<ksvideosrc0> device 1: name='Osprey-460e Capture Device' path='\\?\pci#ven_14f1&dev_8880&subsys_04601576&rev_04#6&1b8b28ab&0&004800e4#{6994ad05-93ef-11d0-a3cc-00a0c9223196}\{9c888e93-8c05-4d7c-ad74-70d8f8412f34}'
0:00:00.280777702  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideosrc.c:430:gst_ks_video_src_open_device:<ksvideosrc0> device 2: name='Osprey-460e Capture Device' path='\\?\pci#ven_14f1&dev_8880&subsys_04601576&rev_04#6&10409f3d&0&002800e4#{6994ad05-93ef-11d0-a3cc-00a0c9223196}\{9c888e93-8c05-4d7c-ad74-70d8f8412f34}'
0:00:00.283861509  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideosrc.c:430:gst_ks_video_src_open_device:<ksvideosrc0> device 3: name='Osprey-460e Capture Device' path='\\?\pci#ven_14f1&dev_8880&subsys_04601576&rev_04#6&4f615cf&0&000800e4#{6994ad05-93ef-11d0-a3cc-00a0c9223196}\{9c888e93-8c05-4d7c-ad74-70d8f8412f34}'
0:00:00.287552358  1512 00000000030BF140 WARN              ksvideosrc gstksvideosrc.c:458:gst_ks_video_src_open_device:<ksvideosrc0> failed to create/open KsClock
0:00:00.291151441  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:344:gst_ks_video_device_dump_supported_property_sets: filter supports 19 property sets
0:00:00.292888951  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [0] KSPROPSETID_VIDCAP_DROPPEDFRAMES
0:00:00.294631290  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [1] {C207C6D2-F573-47C9-9787-1F5461E62118}
0:00:00.296450603  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [2] {551C07EF-E0DA-411D-B712-BFCBE3DE9C64}
0:00:00.298495105  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [3] {C8001E49-697A-4123-9E67-CEFACA031BDD}
0:00:00.300337058  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [4] {2D20465A-357A-451E-BA73-5659AF865E71}
0:00:00.302141882  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [5] {C30BF251-3B00-45F9-A35A-E4969E3EB685}
0:00:00.307066435  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [6] {8C0F52A2-B65F-4864-897E-6A6748C270E9}
0:00:00.308985966  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [7] {5065DF3D-D225-4FCB-8810-C93E13C896D6}
0:00:00.310866557  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [8] {1257A72D-34A9-4041-88A3-7F55F83AA70F}
0:00:00.312694927  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [9] KSPROPSETID_VIDCAP_VIDEODECODER
0:00:00.314476508  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [10] KSPROPSETID_VIDCAP_VIDEOPROCAMP
0:00:00.316257183  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [11] {9C317B97-3F9B-470A-BD6C-AAE08B93B279}
0:00:00.318077402  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [12] KSPROPSETID_VIDCAP_CROSSBAR
0:00:00.322413025  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [13] {0DCC1043-2415-4BCE-8366-DA63531773A7}
0:00:00.324924203  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [14] KSPROPSETID_General
0:00:00.326679522  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [15] {CA60BACA-0B32-4D2A-B5BD-025EC4F9974D}
0:00:00.328903631  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [16] KSPROPSETID_Pin
0:00:00.330520094  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [17] KSPROPSETID_Topology
0:00:00.332731222  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [18] {A60D8368-5324-4893-B020-C431A50BCBE3}
0:00:00.337335803  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:429:ks_video_probe_filter_for_caps: pin_count = 5
0:00:00.338808883  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:448:ks_video_probe_filter_for_caps: pin[0]: pin_comm=3, pin_flow=2
0:00:00.340617329  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.343414671  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.346176997  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.348944756  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.360789462  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.363634800  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.366759660  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.369561228  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.372437657  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.375074107  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.377974987  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.380602985  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:199:ks_video_format_to_structure: Unknown DirectShow Video GUID e436eb7a-524f-11ce-9f53-0020af0ba770

** (gst-launch-1.0:1512): WARNING **: ks_video_format_to_structure returned NULL
0:00:00.387843110  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:448:ks_video_probe_filter_for_caps: pin[1]: pin_comm=3, pin_flow=2
0:00:00.389449612  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:448:ks_video_probe_filter_for_caps: pin[2]: pin_comm=3, pin_flow=2
0:00:00.391035285  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:448:ks_video_probe_filter_for_caps: pin[3]: pin_comm=3, pin_flow=2
0:00:00.392561190  1512 00000000030BF140 DEBUG             ksvideosrc ksvideohelpers.c:448:ks_video_probe_filter_for_caps: pin[4]: pin_comm=3, pin_flow=1
0:00:00.394309567  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)YUY2, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:00.399963113  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)UYVY, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:00.402758945  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)I420, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:00.405735290  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)YVU9, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:00.408576100  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)BGRx, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:00.411391251  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)BGR, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:00.417483099  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:415:gst_ks_video_device_open: pin[0]: found media type: video/x-raw, format=(string)RGB15, width=(int)[ 48, 640 ], height=(int)[ 36, 480 ], framerate=(fraction)[ 0/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1
Pipeline is live and does not need PREROLL ...
0:00:00.421376195 Setting pipeline to PLAYING ...
 1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:519:gst_ks_video_device_create_pin: calling KsCreatePin with pin_id = 0
0:00:00.422401615  1512 0000000003C245A0 DEBUG             ksvideosrc gstksvideosrc.c:797:gst_ks_video_src_unlock_stop:<ksvideosrc0> gst_ks_video_src_unlock_stop
0:00:00.424195572 New clock: GstSy 1stemC512lock
 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:534:gst_ks_video_device_create_pin: KsCreatePin succeeded, pin 0000000000000338 created
0:00:00.430326662  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:344:gst_ks_video_device_dump_supported_property_sets: pin supports 5 property sets
0:00:00.432120015  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [0] KSPROPSETID_Connection
0:00:00.433812849  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [1] KSPROPSETID_Stream
0:00:00.435520474  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [2] KSPROPSETID_StreamInterface
0:00:00.437293301  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [3] KSPROPSETID_MemoryTransport
0:00:00.439242113  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:348:gst_ks_video_device_dump_supported_property_sets: [4] {BD718A7B-97FC-40C7-88CE-D3FF06F55B16}
0:00:00.441045730  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:594:gst_ks_video_device_create_pin: num_outstanding: 100 alignment: 0x00000000
0:00:00.442715019  1512 00000000030BF380 DEBUG             ksvideosrc gstksvideosrc.c:720:gst_ks_video_src_set_caps: Result is 1
0:00:00.462092353  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:839:gst_ks_video_device_set_state: Initiating pin state change from KSSTATE_STOP to KSSTATE_RUN
0:00:00.463920722  1512 00000000030BF140 DEBUG             ksvideosrc gstksvideodevice.c:849:gst_ks_video_device_set_state: Changing pin state from KSSTATE_STOP to KSSTATE_ACQUIRE
0:00:00.465894588  1512 00000000030BF140 WARN              ksvideosrc gstksvideodevice.c:863:gst_ks_video_device_set_state: Failed to change pin state to KSSTATE_ACQUIRE
0:00:00.468009725  1512 00000000030BF380 WARN              ksvideosrc gstksvideosrc.c:963:gst_ks_video_src_create:<ksvideosrc0> error: failed to start capture (0x0000048f)
0:00:00.470171952  1512 00000000030BF380 WARN              ksvideosrc gstksvideosrc.c:963:gst_ks_video_src_create:<ksvideosrc0> error: failed to change pin state to KSSTATE_RUN
ERROR: from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: failed to start capture (0x0000048f)
Additional debug info:
gstksvideosrc.c(963): gst_ks_video_src_create (): /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
failed to change pin state to KSSTATE_RUN
Execution ended after 0:00:00.049061999
Setting pipeline to PAUSED ...
0:00:00.478750225  1512 0000000003C245A0 DEBUG             ksvideosrc gstksvideosrc.c:785:gst_ks_video_src_unlock:<ksvideosrc0> gst_ks_video_src_unlock
Setting pipeline to READY ...
0:00:00.481030782  1512 0000000003C245A0 DEBUG             ksvideosrc gstksvideosrc.c:785:gst_ks_video_src_unlock:<ksvideosrc0> gst_ks_video_src_unlock
0:00:00.482705806  1512 0000000003C245A0 DEBUG             ksvideosrc gstksvideosrc.c:797:gst_ks_video_src_unlock_stop:<ksvideosrc0> gst_ks_video_src_unlock_stop
Setting pipeline to NULL ...
Freeing pipeline ...

Cheers,
Michael.


--
This message has been scanned for viruses and dangerous content by
E.F.A. Project, and is believed to be clean.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc: Failed to start capture

Nicolas Dufresne-5
Le mardi 09 mai 2017 à 17:01 -0700, Michael MacIntosh a écrit :
> Also all devices on this card appear to have the same issue.  I also
> get this same behavior from autovideosrc as well.
> Let me know if I can provide anymore information, or if anyone has
> any suggestions on things to try.

I think you should file a bug report about this. See bugs.gnome.org,
product GStreamer componenent gst-plugins-bad.

regards,
Nicolas


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc: Failed to start capture

Michael MacIntosh

Thank you for your response, I opened up a ticket on the issue here:

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

Cheers,

Michael.


On 5/10/2017 7:54 AM, Nicolas Dufresne wrote:
Le mardi 09 mai 2017 à 17:01 -0700, Michael MacIntosh a écrit :
Also all devices on this card appear to have the same issue.  I also
get this same behavior from autovideosrc as well.
Let me know if I can provide anymore information, or if anyone has
any suggestions on things to try.
I think you should file a bug report about this. See bugs.gnome.org,
product GStreamer componenent gst-plugins-bad.

regards,
Nicolas



_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc: Failed to start capture

Michael MacIntosh

Apparently the issue is the capture card I am recording from requires a crossbar, which apparently isn't getting added to the graph.

I found someone had a similar issue with dshowvideosrc with gstreamer version 0.10.4

http://gstreamer-devel.966125.n4.nabble.com/Grabbing-analog-video-source-with-gstreamer-tp973110.html

I also observe the same, "not connected", behavior in graphedit if I try to render the preview or capture pins of the source without the crossbar attached to the video source (crossbar -> videosrc -> video renderer).

I am just wondering if this issue has a workaround.

Cheers,

Michael.


On 5/10/2017 10:21 AM, Michael MacIntosh wrote:

Thank you for your response, I opened up a ticket on the issue here:

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

Cheers,

Michael.


On 5/10/2017 7:54 AM, Nicolas Dufresne wrote:
Le mardi 09 mai 2017 à 17:01 -0700, Michael MacIntosh a écrit :
Also all devices on this card appear to have the same issue.  I also
get this same behavior from autovideosrc as well.
Let me know if I can provide anymore information, or if anyone has
any suggestions on things to try.
I think you should file a bug report about this. See bugs.gnome.org,
product GStreamer componenent gst-plugins-bad.

regards,
Nicolas



_______________________________________________
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