V0.10.7 Windows dshowaudiosrc does not work

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

V0.10.7 Windows dshowaudiosrc does not work

tanmay.ambre
I am trying to capture audio using dshowaudiosrc plugin.
I set the device-name property as suggested in posts. But no audio seems to be captured

gst-launch -v dshowaudiosrc device-name="Logitech Microphone (QuickCam)" ! queue ! directsoundsink sync=false
This does not work(No errors it also generates final caps I am using Windows XP  service pack 3 and Gstreamer 0.10.7 win builds)

But this works
gst-launch -v directsoundsrc ! queue ! directsoundsink sync=false

The second way does not allow to choose your own device,Is there any other plugin which will allow me to select the device and capture audio.

What am I doing wrong with dshowaudiosrc.?

Tanmay
Reply | Threaded
Open this post in threaded view
|

AW: V0.10.7 Windows dshowaudiosrc does not work

Matthias Dodt
Hi Tanmay!

I faced the same problem yesterday- it seems the dshowaudiosrc is broken. I compiled it with a newer version and now it works fine. I used the vsprojects from the ossbuild repository with VS2008 Express and just replaced the code plus added some missing classes. Make sure if you use windows SDK includes that also your DirectX headers will be taken from windows SDK (Not the one from OSSBuild/shared folder). Otherwise you will get weired unresolved external symbol errors.

Regards,

mat

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+mdodt=[hidden email] [mailto:gstreamer-devel-bounces+mdodt=[hidden email]] Im Auftrag von tanmay.ambre
Gesendet: 22 November 2011 11:56
An: [hidden email]
Betreff: V0.10.7 Windows dshowaudiosrc does not work

I am trying to capture audio using dshowaudiosrc plugin.
I set the device-name property as suggested in posts. But no audio seems to be captured

gst-launch -v dshowaudiosrc device-name="Logitech Microphone (QuickCam)" !
queue ! directsoundsink sync=false
This does not work(No errors it also generates final caps I am using Windows XP  service pack 3 and Gstreamer 0.10.7 win builds)

But this works
gst-launch -v directsoundsrc ! queue ! directsoundsink sync=false

The second way does not allow to choose your own device,Is there any other plugin which will allow me to select the device and capture audio.

What am I doing wrong with dshowaudiosrc.?

Tanmay

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/V0-10-7-Windows-dshowaudiosrc-does-not-work-tp4095177p4095177.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: V0.10.7 Windows dshowaudiosrc does not work

tanmay.ambre
Where do I get the newer version from?

The file svn/  trunk/ Main/ GStreamer/ Source/ gst-plugins-bad/ sys/ dshowsrcwrapper/ gstdshowaudiosrc.cpp
was last modified on 6th July 2010. What files are changed as the code seems up to date and compiles without any errors as well.

Reply | Threaded
Open this post in threaded view
|

AW: AW: V0.10.7 Windows dshowaudiosrc does not work

Matthias Dodt
Hi!

There was a patch a while ago - just download the attachment of the mail:
http://lists.freedesktop.org/archives/gstreamer-devel/2009-March/021506.html

I don't understand why it hasn't been applied- so just recompile with these sources. Also be aware that the device-name="..." only works if you use the first 31 characters of the device name!

Cheers

mat

 

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+mdodt=[hidden email] [mailto:gstreamer-devel-bounces+mdodt=[hidden email]] Im Auftrag von tanmay.ambre
Gesendet: 23 November 2011 12:26
An: [hidden email]
Betreff: Re: AW: V0.10.7 Windows dshowaudiosrc does not work

Where do I get the newer version from?

The file svn/  trunk/ Main/ GStreamer/ Source/ gst-plugins-bad/ sys/
dshowsrcwrapper/ gstdshowaudiosrc.cpp
was last modified on 6th July 2010. What files are changed as the code seems up to date and compiles without any errors as well.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/V0-10-7-Windows-dshowaudiosrc-does-not-work-tp4095177p4099261.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: AW: V0.10.7 Windows dshowaudiosrc does not work

FastRidingZebra
I have the same problem with dshowaudiosrc and are now trying to build libgstdshow and libdshowsrcwrapper.
It seems to be quite hard to do this.
I get two Errors now:
One when compiling libgstdshow :

1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>     Creating library .\Release/libgstdshow-0.10.lib and object .\Release/libgstdshow-0.10.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Release/libgstdshow-0.10.dll : fatal error LNK1169: one or more multiply defined symbols found

-------------------------------------------------------------------

And one when compiling libdshowsrcwrapper:

1>LINK : fatal error LNK1104: cannot open file 'libgstreamer-0.10.lib'

(where do I get the 'libgstreamer-0.10.lib' ... do I also have to compile it?)

-------------------------------------------------------------------

THX!
Reply | Threaded
Open this post in threaded view
|

RE: AW: AW: V0.10.7 Windows dshowaudiosrc does not work

dhoyt
> I have the same problem with dshowaudiosrc and are now trying to build
> libgstdshow and libdshowsrcwrapper.

What are you compiling it with? VS 2008 should work alright. VS 2010 is unsupported.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: AW: AW: V0.10.7 Windows dshowaudiosrc does not work

FastRidingZebra
OK.. tried it with VS 2008 now and I still get the same Linker Error:

1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>     Creating library .\Release/libgstdshow-0.10.lib and object .\Release/libgstdshow-0.10.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Release/libgstdshow-0.10.dll : fatal error LNK1169: one or more multiply defined symbols found

I think it has something to do with my Windows SDK. I tried using the Win 7 SDK as well as the 2008 Server SDK (Am I right, that I have to take streams.h and strmbasd.lib from one of the SDKs?).

It could also be that I´m compiling the directshow libs in the SDK wrong...

Reply | Threaded
Open this post in threaded view
|

RE: AW: AW: V0.10.7 Windows dshowaudiosrc does not work

dhoyt
> OK.. tried it with VS 2008 now and I still get the same Linker Error:
> ...

Are you compiling this using OSSBuild or something else? Did you checkout the code from GStreamer git or from the OSSBuild repo.? If you're using the OSSBuild solution + projects, then you shouldn't need to do anything special, just build and go. Getting the C runtime right is very tricky -- and that was a big motivator for OSSBuild.

Contact me directly and I'll help walk you through it.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: AW: AW: V0.10.7 Windows dshowaudiosrc does not work

tanmay.ambre
I have used Directsound plugin instead and added the property for device selection.
I did have a problem when USB capture devices were unplugged suddenly but raising an error during capture solved the problem.