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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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<[hidden email]> 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 > [hidden email] > 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 <[hidden email]> I've done capture with GStreamer using v4l2src, but if you're on XP ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> 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 <[hidden email]> I've done capture with GStreamer using v4l2src, but if you're on XP ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 <[hidden email]>
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
(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 <[hidden email]>
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi, when using this command line, I just end up with a 'ERROR:..\..\sys\winks\ksvideohelpers.c:487:???: assertion failed: (vih->bmiHeader.biWidth == width)', and a crash. 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. 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... Regards, Al De : Julien Isorce <[hidden email]> À : Gstreamer <[hidden email]> 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 <[hidden email]>
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/7/16 Albert Costa <[hidden email]>
So it's not a GStreamer problem.
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")
Julien
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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. 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 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... Regards, Al De : Julien Isorce <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> 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 <[hidden email]>
So it's not a GStreamer problem.
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")
Julien
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/7/17 Albert Costa <[hidden email]>
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.
I think this is the same error as you got in graphedit ("device not connected")
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.
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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. 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. 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'). Regards, Al De : Julien Isorce <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> 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 <[hidden email]>
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.
I think this is the same error as you got in graphedit ("device not connected")
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.
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/7/17 Albert Costa <[hidden email]>
ok cool
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 ?
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
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Julien Isorce
Hi, I think I get the final word. The graph, as I saw it from the vdub process, contains 2 elements for the capture (don't know why the hw provider did so, by that's the fact). And checking the source code of the dshowvideosrc element, I see that it only adds a capture element (+ a fake sink). So it will never work with my hardware, unless I make changes in the source code myself to handle this specific case. Thanks a lot for your help anyway, now I understand how the full thing works (or not...). Regards, Al De : Julien Isorce <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> 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 <[hidden email]>
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.
I think this is the same error as you got in graphedit ("device not connected")
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.
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Julien Isorce
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 <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> 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 <[hidden email]>
ok cool
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 ?
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
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel grabbergraph.jpg (98K) Download Attachment |
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 <[hidden email]>
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 <[hidden email]> Hi, ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi Julien, unfortunately, that doesn't work. As soon as I remove the link from the x-bar to the analog capture element, trying to play fails with 'no connected device' message. Regards, Al De : Julien Isorce <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> Envoyé le : Lundi, 20 Juillet 2009, 11h39mn 11s Objet : Re: [gst-devel] Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer 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 <[hidden email]> Hi, ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/7/20 Albert Costa <[hidden email]>
Ok. The crossbar filter is added automatically when clicking on "render pin" on the capture filter 's ouput pin in graphedit ? According to : http://msdn.microsoft.com/en-us/library/dd390991(VS.85).aspx the crossbar is automatically added by the CaptureGraphBuilder2 But dshowvideosrc does not uses CaptureGraphBuilder2. If you are directshow friendly and if you are able to compile dshowvideosrc, then you could try to create the capturegraphbuilder2 then use SetFilterGraph on it to set the FilterGraph instance. Then it should work. It's just a matter of few code lines. You are just entering in the directshow hell Julien
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi, nope, the xbar is not added automatically when rendering the pin. It only creates the videorenderer, but not the crossbar (and there no 'render pin' option for the analog input pin). I've downloaded the whole winbuilds source&project files, and I'm able to recompile the complete gstreamer. So in theory I can modify the dshow plugin (I started by ading some log lines, it works...). But I'm not an expert (not yet dx friendly as you say :-) ), so I'm sure I want to step ahead in that hell... Regards, Al De : Julien Isorce <[hidden email]> À : Discussion of the development of GStreamer <[hidden email]> Envoyé le : Lundi, 20 Juillet 2009, 15h30mn 32s Objet : Re: [gst-devel] Re : Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer 2009/7/20 Albert Costa <[hidden email]>
Ok. The crossbar filter is added automatically when clicking on "render pin" on the capture filter 's ouput pin in graphedit ? According to : http://msdn.microsoft.com/en-us/library/dd390991(VS.85).aspx the crossbar is automatically added by the CaptureGraphBuilder2 But dshowvideosrc does not uses CaptureGraphBuilder2. If you are directshow friendly and if you are able to compile dshowvideosrc, then you could try to create the capturegraphbuilder2 then use SetFilterGraph on it to set the FilterGraph instance. Then it should work. It's just a matter of few code lines. You are just entering in the directshow hell Julien
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
ok you can try two things in dshowvideosrc.c,:
just replace IID_IFilterGraph by IID_IGraphBuilder (IGraphBuilder inherit from IFilterGraph) I think it will not resolve the problem so you also can try: in dshowvideosrc.c before "hres = CoCreateInstance (&CLSID_FilterGraph, ..." create first a capture graph builder 2:
2009/7/20 Albert Costa <[hidden email]>
------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |