Problem with KSVideo and viewing a Capture Device

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

Problem with KSVideo and viewing a Capture Device

BraydenJames
I'm trying to build a pipeline with gst-launch in Windows 7 that will view a stream from a VC500 Video Capture device (Captures composite video and inputs to computer via USB). I think my biggest issue here is the fact that it MUST be done in Windows. I'm finding a lot of the plugins for gstreamer-java are supported in Linux instead of Windows. So I'm having issues finding the element and syntax to get this working. Any help would be greatly appreciated. Another thing is I don't have to use the gstreamer framework for this, it just seems to be the easiest. If anyone knows another good media framework with good Java bindings that might be better let me know? Haha. (Tried DirectShow, VLCJ, neither are very stable for Java.) Thanks a lot. Brayden

EDIT: From more reading I'm pretty sure the element I need here is ksvideosrc.

So I've been trying: 'gst-launch -v ksvideosrc ! autovideosink'

But I get:

'ERROR: from element /GSTPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: could not start capture Additional debug info: ..........\Source\gst-plugins-bad\sys\winks\gstvideosrc.c(970): gst_ks_video_src_create (): /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:failed to change pin state to KSSTATE_RUN Execution ended after 1000000 ns.'
Reply | Threaded
Open this post in threaded view
|

Re: Problem with KSVideo and viewing a Capture Device

Wes Miller
Administrator
Not that it helps much, but you might consider camerabin from gstreamer-plugins-bad (no idea why it's 'bad").  

I did manage to get a camera to work using:

     gst-launch-0.10 ksvideosrc device-index=0  ! ffmpegcolorspace ! dshowvideosink

where:

    device-index - can be >= 0.

My laptop also has a built-in camera so the plugged in usb camera wasn't always device 0.  

Also, I noticed that plugging the camer in while VMWare (Linux) was active made Windows behave differently and not see the camera.  Same behavior when done in reverse. if Window sees the camera, Linux doesn't.

Wes
Reply | Threaded
Open this post in threaded view
|

Re: Problem with KSVideo and viewing a Capture Device

BraydenJames
Using that line still gives me the same exact error. The "Could not start capture" and "Failed to change pin state to KSSTATE_RUN". :/. I know it sees the device because I can even specify the device name and it gives me this error (where as using a random name says not found, as does using a device index of anything > 0). So it knows the capture device is there. And tries to start playing, then hits the error. :/
Thanks though.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with KSVideo and viewing a Capture Device

Farkas Levente
In reply to this post by BraydenJames
On 06/22/2010 07:46 PM, BraydenJames wrote:
>
> I'm trying to build a pipeline with gst-launch in Windows 7 that will view a
> stream from a VC500 Video Capture device (Captures composite video and
> inputs to computer via USB). I think my biggest issue here is the fact that
> it MUST be done in Windows. I'm finding a lot of the plugins for
> gstreamer-java are supported in Linux instead of Windows. So I'm having

just a side note. gstreamer-java are supported where gstreamer. so it's
supported on windows too.

--
  Levente                               "Si vis pacem para bellum!"

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with KSVideo and viewing a Capture Device

Andoni Morales
In reply to this post by BraydenJames
2010/6/22 BraydenJames <[hidden email]>:

>
> I'm trying to build a pipeline with gst-launch in Windows 7 that will view a
> stream from a VC500 Video Capture device (Captures composite video and
> inputs to computer via USB). I think my biggest issue here is the fact that
> it MUST be done in Windows. I'm finding a lot of the plugins for
> gstreamer-java are supported in Linux instead of Windows. So I'm having
> issues finding the element and syntax to get this working. Any help would be
> greatly appreciated. Another thing is I don't have to use the gstreamer
> framework for this, it just seems to be the easiest. If anyone knows another
> good media framework with good Java bindings that might be better let me
> know? Haha. (Tried DirectShow, VLCJ, neither are very stable for Java.)
> Thanks a lot. Brayden
>
> EDIT: From more reading I'm pretty sure the element I need here is
> ksvideosrc.

You can also use on windows dshowvideosrc. I use it in longomatch[1]
in combination with camerabin (as the source element), and it works
pretty well in all WinNT platforms.

Andoni

[1]http://git.gnome.org/browse/longomatch/tree/libcesarplayer/src/gst-camera-capturer.c

>
> So I've been trying: 'gst-launch -v ksvideosrc ! autovideosink'
>
> But I get:
>
> 'ERROR: from element /GSTPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: could
> not start capture Additional debug info:
> ..........\Source\gst-plugins-bad\sys\winks\gstvideosrc.c(970):
> gst_ks_video_src_create ():
> /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:failed to change pin state
> to KSSTATE_RUN Execution ended after 1000000 ns.'
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problem-with-KSVideo-and-viewing-a-Capture-Device-tp2264506p2264506.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel