[gst-devel] Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer

Julien Isorce julien.isorce at gmail.com
Mon Jul 20 11:39:11 CEST 2009


hmm, could you try to create again the same graph than the one in the
screenshot.
But, just before to click on play, try to disconnect the crossbar from the
capture filtre.
Then click play and tell me if that works.

if yes, try to do the same steps, except you just remove the crossbar before
to play.

If that works, it means that there is no default "route" and so a physical
input has to be set before to play the graph.

Julien

2009/7/20 Julien Isorce <julien.isorce at gmail.com>

> Hi,
>
> First, the" missing" element you was talking about is a classic "crossbar"
> directshow filter.
> Drivers of capture devices that contain a tuner, usually implement the
> crossbar interface.
> So it's not something weird.
>
> Second, the not normal thing is that the capture filter needs to be
> connected to the crossbar in order to start.
> (and that's why you got "not connected device")
>
> I have no tuner capture device here so I cannot send you a screenshot.
>
> Well, it should have a way to avoid the use of the crossbar filter.
>
> Julien
>
>
> 2009/7/17 Albert Costa <costa_albert at yahoo.fr>
>
>> Hi,
>> I send the screenshot of the working graph. As you can see (and as I
>> explained in my last post), it needs 2 elements to capture the source, which
>> is why the dshowvideosrc element cannot work with this device (because it
>> only expects/adds one element).
>> Regards,
>> Al
>>
>>
>>
>> ------------------------------
>> *De :* Julien Isorce <julien.isorce at gmail.com>
>> *À :* Discussion of the development of GStreamer <
>> gstreamer-devel at lists.sourceforge.net>
>> *Envoyé le :* Vendredi, 17 Juillet 2009, 17h18mn 27s
>> *Objet :* Re: [gst-devel] Re : Re : Re : Re : Re : Grabbing analog video
>> source with gstreamer
>>
>>
>>
>> 2009/7/17 Albert Costa <costa_albert at yahoo.fr>
>>
>>> Hi Julien,
>>> thanks for your patient help! I've followed your advice. I have connected
>>> the graphedit to the running thread of virtualdub acquisition, so I have
>>> seen the full graph running.
>>>
>>
>> ok cool
>>
>>
>>> There was a missing element when I tried previously to build the chain
>>> myself. So now I'm also able to grab from graphedit, using the correct
>>> elements.
>>>
>>
>> What was exactly the missing element ? could you send us a screenshot ?
>> right click on the output pin, then "render pin" does not insert this
>> element ?
>>
>>
>>>  Now, from the gstreamer point of view, how can I know which elements the
>>> plugin really tries to put in the graph? (and yes, the reported error means
>>> 'no connected device').
>>>
>>
>> dshowvideosrc just builds a directshow graph that contains a "video
>> capture source filter" and
>> a "custom directshow fakesink filter" (this fakesink has nothing to deal
>> with the gstreamer one, and you cannot instanciate it in graphedit)
>>
>> But this "custom directshow fakesink filter" accepts any pin caps.
>>
>> So the following should works:
>>
>> gst-launch-0.10 dshowvideosrc device-name="your device name that you see
>> in graphedit in video capture source category" ! fakesink
>>
>> Any infos on the missing element that resolved the "no connected device"
>> may help.
>>
>> Have you also tried to update the driver of you device ?
>>
>> Julien
>>
>>
>>> Regards,
>>> Al
>>>
>>> ------------------------------
>>> *De :* Julien Isorce <julien.isorce at gmail.com>
>>> *À :* Discussion of the development of GStreamer <
>>> gstreamer-devel at lists.sourceforge.net>
>>>  *Envoyé le :* Vendredi, 17 Juillet 2009, 15h42mn 42s
>>> *Objet :* Re: [gst-devel] Re : Re : Re : Re : Grabbing analog video
>>> source with gstreamer
>>>
>>>
>>>
>>> 2009/7/17 Albert Costa <costa_albert at yahoo.fr>
>>>
>>>> Hi again,
>>>> I've moved a bit forward, but not enought yet to achieve grabbing with
>>>> gstreamer. First thing I did was to check I could acquire from
>>>> WinMovieMaker, and that worked. I even successed with virtualdub.
>>>>
>>>
>>> ok but still does not work with graphedit ? if yes this is really
>>> strange. You have to figure out what is going on because dshowvideosrc
>>> builds a directshow graph as graphedit does.
>>>
>>>
>>>> Then I noticed was that my grabber source was emiting in YUY2 format.
>>>> When I gst-inspected my dshowvideosrc I realized it was not a supported
>>>> format (was version 0.10.10), which explained the 'could not link elements'
>>>> message I had with a simple dshowvideosrc ! fakesink pipeline.
>>>> I have installed latest winbuilds version (now 0.10.4-prerelease). This
>>>> one handles YUY2. But now I get a new error
>>>> "gstdshowvideosrc.c:653:gst_dshowvideosrc_change_state: Can't RUN the
>>>> directshow capture graph (error=-2147023729)"
>>>>
>>>
>>> I think this is the same error as you got in graphedit ("device not
>>> connected")
>>>
>>>
>>>> I have tried to check on the web possible problems, but found nothing
>>>> relevant. Only thing was to check directx version, and I have 9.0c.
>>>> It feels frustrating to see all components but gstreamer able to acquire
>>>> my video...
>>>>
>>>
>>> You could report the graphedit problem to the device company. They often
>>> uses it.
>>> If you resolve the graphedit pb then dshowvideosrc will work. That's all
>>> I can do without having the device in my hands.
>>>
>>>
>>>> Regards,
>>>> Al
>>>>
>>>> ------------------------------
>>>> *De :* Julien Isorce <julien.isorce at gmail.com>
>>>> *À :* Discussion of the development of GStreamer <
>>>> gstreamer-devel at lists.sourceforge.net>
>>>> *Envoyé le :* Jeudi, 16 Juillet 2009, 15h32mn 55s
>>>> *Objet :* Re: [gst-devel] Re : Re : Re : Grabbing analog video source
>>>> with gstreamer
>>>>
>>>>
>>>>
>>>> 2009/7/16 Albert Costa <costa_albert at yahoo.fr>
>>>>
>>>>>
>>>>> In graphedit, the property page for the element shows video decoder
>>>>> options (mainly PAL and SECAM formats). The output pin also reports the
>>>>> decoder options, plus the image format.
>>>>>
>>>>
>>>>
>>>>> And if I connect a video renderer and try to play, it says no
>>>>> peripheral is connected.
>>>>>
>>>>
>>>>  So it's not a GStreamer problem.
>>>>
>>>> There is a software provided with the hardware, I tested it at home it
>>>>> did allow the grabbing. But I don't know if there's a way to use the hw
>>>>> without the sw...
>>>>>
>>>>
>>>> From my experience, if you can see the hw in graphedit then you can use
>>>> it without the sw. If not, you can't.
>>>>
>>>> Try to grab using  "Window Movie Maker" that is installed by default on
>>>> winxp
>>>> (select "capture from video device")
>>>>
>>>>
>>>>> Regards,
>>>>> Al
>>>>>
>>>>
>>>> Julien
>>>>
>>>>
>>>>>
>>>>> ------------------------------
>>>>> *De :* Julien Isorce <julien.isorce at gmail.com>
>>>>>  *À :* Gstreamer <gstreamer-devel at lists.sourceforge.net>
>>>>> *Envoyé le :* Jeudi, 9 Juillet 2009, 17h12mn 45s
>>>>> *Objet :* Re: [gst-devel] Re : Re : Grabbing analog video source with
>>>>> gstreamer
>>>>>
>>>>> (reply to the gst list)
>>>>>
>>>>> Note that you should have the same error doing:
>>>>>
>>>>> set GST_DEBUG=1
>>>>> gst-launch dshowvideosrc ! fakesink
>>>>>
>>>>> About the reason of the error, you should have this error only if you
>>>>> disconnect the usb link.
>>>>>
>>>>> -->Anything with right bouton on the capture filter in graphedit, to
>>>>> open the property page ?
>>>>> -->property page on the ouput pin ?
>>>>> -->Is there a software joined to the device ? does it work ?
>>>>>
>>>>> Julien
>>>>>
>>>>> 2009/7/9 Albert Costa <costa_albert at yahoo.fr>
>>>>>
>>>>>> Hi,
>>>>>> ok it does appear in the list. I wanted to add a renderer and see if
>>>>>> it plays, but...
>>>>>> Problem is then that it does not see that I have a source physically
>>>>>> connected to it. I guess that's also why gstreamer plugin does not recognize
>>>>>> it.
>>>>>> See attached pict.
>>>>>> Al
>>>>>>
>>>>>> ------------------------------
>>>>>> *De :* Julien Isorce <julien.isorce at gmail.com>
>>>>>> *À :* Discussion of the development of GStreamer <
>>>>>> gstreamer-devel at lists.sourceforge.net>
>>>>>> *Envoyé le :* Jeudi, 9 Juillet 2009, 14h51mn 42s
>>>>>> *Objet :* Re: [gst-devel] Re : Grabbing analog video source with
>>>>>> gstreamer
>>>>>>
>>>>>> dshowvideosrc handles a capture device only if the device driver
>>>>>> implements the directshow capture interfaces.
>>>>>> To check if you driver associated with your "SvideoToUsb device",
>>>>>> implements those interfaces or not,
>>>>>> you can use "graphedit" (you can find it on the web).
>>>>>> Then if you see your device in "Video Capture Device" category, then
>>>>>> it should be ok.
>>>>>>
>>>>>> Julien
>>>>>>
>>>>>> 2009/7/9 Albert Costa <costa_albert at yahoo.fr>
>>>>>>
>>>>>>> Hi,
>>>>>>> thanks for the tips. I actually already use the winbuilds binaries,
>>>>>>> so I got this one (though I'm on winbuild version 0.10.2, not 0.10.3).
>>>>>>> However, I cannot see my grabber input with it. It works fine with a
>>>>>>> simple usb webcam, but looks like the Svideo to USB grabber is not handled
>>>>>>> the same way, pitty...
>>>>>>> Regards,
>>>>>>> Al
>>>>>>>
>>>>>>> ------------------------------
>>>>>>> *De :* Julien Isorce <julien.isorce at gmail.com>
>>>>>>> *À :* Discussion of the development of GStreamer <
>>>>>>> gstreamer-devel at lists.sourceforge.net>
>>>>>>> *Envoyé le :* Jeudi, 9 Juillet 2009, 11h53mn 54s
>>>>>>> *Objet :* Re: [gst-devel] Grabbing analog video source with
>>>>>>> gstreamer
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> You can try dshowvideosrc from there:
>>>>>>>
>>>>>>> http://www.gstreamer-winbuild.ylatuya.es/doku.php?id=download
>>>>>>>
>>>>>>> which is different from the one who is in gst-plugins-bad
>>>>>>>
>>>>>>> see http://bugzilla.gnome.org/show_bug.cgi?id=517203 for more
>>>>>>> informations.
>>>>>>>
>>>>>>> Julien
>>>>>>>
>>>>>>> 2009/7/8 Philip Jägenstedt <philip at foolip.org>
>>>>>>>
>>>>>>>> I've done capture with GStreamer using v4l2src, but if you're on XP
>>>>>>>> have a look at
>>>>>>>> http://asabil.wordpress.com/2007/05/20/directshowvideosrc-for-gstreamer/
>>>>>>>> Apparently it's dshowsrcwrapper in gst-plugins-bad.
>>>>>>>>
>>>>>>>> Philip
>>>>>>>>
>>>>>>>> On Wed, Jul 8, 2009 at 14:41, Albert Costa<costa_albert at yahoo.fr>
>>>>>>>> wrote:
>>>>>>>> > Hi,
>>>>>>>> > I would like to know if anyone has already used GStreamer to get
>>>>>>>> video from
>>>>>>>> > an analog source? For some reasons, I may have to use a S-Video
>>>>>>>> camera for a
>>>>>>>> > project. So I'll need to get the video from it. Has anyone
>>>>>>>> experienced using
>>>>>>>> > gst with a frame grabber ? (btw, I'm under winXP)
>>>>>>>> > I've tried a S-Video to USB converter, but I cannot see which
>>>>>>>> plugin I could
>>>>>>>> > use : ksvideosrc does not see it.
>>>>>>>> > Any help or advice would be welcomed,
>>>>>>>> > Regards,
>>>>>>>> > Al
>>>>>>>> >
>>>>>>>> >
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> > Enter the BlackBerry Developer Challenge
>>>>>>>> > This is your chance to win up to $100,000 in prizes! For a limited
>>>>>>>> time,
>>>>>>>> > vendors submitting new applications to BlackBerry App World(TM)
>>>>>>>> will have
>>>>>>>> > the opportunity to enter the BlackBerry Developer Challenge. See
>>>>>>>> full prize
>>>>>>>> > details at: http://p.sf.net/sfu/Challenge
>>>>>>>> > _______________________________________________
>>>>>>>> > gstreamer-devel mailing list
>>>>>>>> > gstreamer-devel at lists.sourceforge.net
>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>> >
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Philip Jägenstedt
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Enter the BlackBerry Developer Challenge
>>>>>>>> This is your chance to win up to $100,000 in prizes! For a limited
>>>>>>>> time,
>>>>>>>> vendors submitting new applications to BlackBerry App World(TM) will
>>>>>>>> have
>>>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See
>>>>>>>> full prize
>>>>>>>> details at: http://p.sf.net/sfu/Challenge
>>>>>>>> _______________________________________________
>>>>>>>> gstreamer-devel mailing list
>>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Enter the BlackBerry Developer Challenge
>>>>>>> This is your chance to win up to $100,000 in prizes! For a limited
>>>>>>> time,
>>>>>>> vendors submitting new applications to BlackBerry App World(TM) will
>>>>>>> have
>>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>>>>>> prize
>>>>>>> details at: http://p.sf.net/sfu/Challenge
>>>>>>> _______________________________________________
>>>>>>> gstreamer-devel mailing list
>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Enter the BlackBerry Developer Challenge
>>>>> This is your chance to win up to $100,000 in prizes! For a limited
>>>>> time,
>>>>> vendors submitting new applications to BlackBerry App World(TM) will
>>>>> have
>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>>>> prize
>>>>> details at: http://p.sf.net/sfu/Challenge
>>>>> _______________________________________________
>>>>> gstreamer-devel mailing list
>>>>> gstreamer-devel at lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Enter the BlackBerry Developer Challenge
>>>> This is your chance to win up to $100,000 in prizes! For a limited time,
>>>> vendors submitting new applications to BlackBerry App World(TM) will
>>>> have
>>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>>> prize
>>>> details at: http://p.sf.net/sfu/Challenge
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> gstreamer-devel at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>
>>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes! For a limited time,
>>> vendors submitting new applications to BlackBerry App World(TM) will have
>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>> prize
>>> details at: http://p.sf.net/sfu/Challenge
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090720/18e655f1/attachment.htm>


More information about the gstreamer-devel mailing list