Hello,
I'm trying to use dshowaudiosrc on Windows but I have some problems. For example, I try : gst-launch-0.10.exe dshowaudiosrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=foo.ogg And hen I talk in my micro the file foo.ogg is empty. I already verified if my micro functions correctly. It does. If I try : gst-launch-0.10.exe audiotestsrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=foo.ogg it works ! Where is the problem ? ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
2 solutions. ****The first one (user) is to click on volume icone from task bar then Options->properties then select "Enregistrement" ("Recording") then select microphone then OK then unmute microphone. ****The second solution (using code), is to recompile dshowaudiosrc using this patch: http://bugzilla.gnome.org/show_bug.cgi?id=517203 (just see the last post) Then the following code could be used to list, select and configure the input channel of your choise (S/PDIF, lineIn, Mic etc..) ----------------------------- list audio input ------------------------ vector<string> listAudioInputs(const string audioDeviceName) GstElement* audiodevicesrc = create_element("dshowaudiosrc", "audiodevicesrc"); g_object_set(G_OBJECT(audiodevicesrc), "device-name", audioDeviceName.c_str(), NULL); GstPad* pad = gst_element_get_static_pad (audiodevicesrc, "src"); gst_pad_get_caps (pad); if (pad) gst_object_unref(pad); vector<string> l_inputs; GstMixer *mixer = GST_MIXER (audiodevicesrc); const GList* list = gst_mixer_list_tracks (mixer); for (const GList* item = list; item != NULL; item = item->next) { GstMixerTrack *track = (GstMixerTrack*)item->data; l_inputs.push_back(string(track->label)); } if (audiodevicesrc) { gst_element_set_state (audiodevicesrc, GST_STATE_NULL); gst_object_unref(GST_OBJECT (audiodevicesrc)); } return l_inputs; } ------------------------------------------------------------------------------------------------------ ---------------------------- select record input and set volume ------------------------------------- void setAudioInput(const string audioInput, int volumePercentOfMax) { GstMixer *mixer = GST_MIXER (audiodevicesrc); GstMixerTrack *track = NULL; const GList* list = gst_mixer_list_tracks (mixer); for (const GList* item = list; item != NULL; item = item->next) { GstMixerTrack *track_next = (GstMixerTrack*)item->data; if (audioInput == std::string(track_next->label)) track = track_next; else //mute other audio inputs gst_mixer_set_mute(mixer, track_next, TRUE); } if (track) { vector<gint> volumes(m_audioNbChannels, (gint)(volumePercentOfMax * track->max_volume / 100.0)); gst_mixer_set_record (mixer, track, TRUE); gst_mixer_set_volume (mixer, track, &volumes[0]); } } ------------------------------------------------------------------------------------------------------ They are some bad things in this code but the idea is there. You can also use property probe on dshowaudiosrc to list all the audio device names installed on your system. J. 2009/3/18 <[hidden email]> Hello, ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
I would prefer to not recompile dshowaudiosrc if it's possible.
My microphone is not muted. So I don't understand why it didn't work. With the windows magnetophone I can register my voice. Very strange... I don't find any information about property probe.. so I don't know how to use it. > Hi, > > 2 solutions. > > ****The first one (user) is to click on volume icone from task bar then > Options->properties then select "Enregistrement" ("Recording") then select > microphone then OK then unmute microphone. > > ****The second solution (using code), is to recompile dshowaudiosrc using > this patch: > http://bugzilla.gnome.org/show_bug.cgi?id=517203 (just see the last post) > > Then the following code could be used to list, select and configure the > input channel of your choise (S/PDIF, lineIn, Mic etc..) > > ----------------------------- list audio input ------------------------ > vector<string> listAudioInputs(const string audioDeviceName) > GstElement* audiodevicesrc = create_element("dshowaudiosrc", > "audiodevicesrc"); > g_object_set(G_OBJECT(audiodevicesrc), "device-name", > audioDeviceName.c_str(), NULL); > > GstPad* pad = gst_element_get_static_pad (audiodevicesrc, "src"); > gst_pad_get_caps (pad); > if (pad) > gst_object_unref(pad); > > vector<string> l_inputs; > GstMixer *mixer = GST_MIXER (audiodevicesrc); > const GList* list = gst_mixer_list_tracks (mixer); > > for (const GList* item = list; item != NULL; item = item->next) > { > GstMixerTrack *track = (GstMixerTrack*)item->data; > l_inputs.push_back(string(track->label)); > } > > if (audiodevicesrc) > { > gst_element_set_state (audiodevicesrc, GST_STATE_NULL); > gst_object_unref(GST_OBJECT (audiodevicesrc)); > } > > return l_inputs; > } > ------------------------------------------------------------------------------------------------------ > > ---------------------------- select record input and set volume > ------------------------------------- > void setAudioInput(const string audioInput, int volumePercentOfMax) > { > GstMixer *mixer = GST_MIXER (audiodevicesrc); > GstMixerTrack *track = NULL; > const GList* list = gst_mixer_list_tracks (mixer); > for (const GList* item = list; item != NULL; item = item->next) > { > GstMixerTrack *track_next = (GstMixerTrack*)item->data; > if (audioInput == std::string(track_next->label)) > track = track_next; > else > //mute other audio inputs > gst_mixer_set_mute(mixer, track_next, TRUE); > } > if (track) > { > vector<gint> volumes(m_audioNbChannels, (gint)(volumePercentOfMax * > track->max_volume / 100.0)); > gst_mixer_set_record (mixer, track, TRUE); > gst_mixer_set_volume (mixer, track, &volumes[0]); > > } > } > > ------------------------------------------------------------------------------------------------------ > > They are some bad things in this code but the idea is there. > > You can also use property probe on dshowaudiosrc to list all the audio > device names installed on your system. > > J. > > > 2009/3/18 <[hidden email]> > >> Hello, >> >> I'm trying to use dshowaudiosrc on Windows but I have some problems. >> >> For example, I try : >> >> gst-launch-0.10.exe dshowaudiosrc ! audioconvert ! vorbisenc ! oggmux ! >> filesink location=foo.ogg >> >> And hen I talk in my micro the file foo.ogg is empty. >> I already verified if my micro functions correctly. It does. >> >> If I try : >> gst-launch-0.10.exe audiotestsrc ! audioconvert ! vorbisenc ! oggmux ! >> filesink location=foo.ogg it works ! >> >> >> Where is the problem ? >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based >> development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >> > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. > http://p.sf.net/sfu/www-adobe-com_______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/3/18 <[hidden email]> I would prefer to not recompile dshowaudiosrc if it's possible. Maybe how are not using the device you are excepting to use. In panel
configuration, sound, you can see if you have several audio devices. If
yes, you have to set device name on dshowaudiosrc. (check the volume too)
gst doc.
------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In the sound properties on WIndows, my device to capture the sound is
named : "Realtek HD Audio Input" So I try : gst-launch-0.10.exe dshowaudiosrc device-name="Realtek HD Audio Input" ! audioconvert ! vorbisenc ! oggmux ! filesink location=bar.ogg But I have an error which is : ** (gst-launch-0.10:77172): WARNING **: ..\..\sys\dshowsrcwrapper\gstdshowaudios rc.c:378: invalid property id 2 for "device-name" of type `GParamString' in `Gst DshowAudioSrc' > 2009/3/18 <[hidden email]> > >> I would prefer to not recompile dshowaudiosrc if it's possible. >> My microphone is not muted. So I don't understand why it didn't work. >> With >> the windows magnetophone I can register my voice. Very strange... > > > Maybe how are not using the device you are excepting to use. In panel > configuration, sound, you can see if you have several audio devices. If > yes, > you have to set device name on dshowaudiosrc. (check the volume too) > > >> I don't find any information about property probe.. so I don't know how >> to >> use it. > > > gst doc. > > >> >> > Hi, >> > >> > 2 solutions. >> > >> > ****The first one (user) is to click on volume icone from task bar >> then >> > Options->properties then select "Enregistrement" ("Recording") then >> select >> > microphone then OK then unmute microphone. >> > >> > ****The second solution (using code), is to recompile dshowaudiosrc >> using >> > this patch: >> > http://bugzilla.gnome.org/show_bug.cgi?id=517203 (just see the last >> post) >> > >> > Then the following code could be used to list, select and configure >> the >> > input channel of your choise (S/PDIF, lineIn, Mic etc..) >> > >> > ----------------------------- list audio input >> ------------------------ >> > vector<string> listAudioInputs(const string audioDeviceName) >> > GstElement* audiodevicesrc = create_element("dshowaudiosrc", >> > "audiodevicesrc"); >> > g_object_set(G_OBJECT(audiodevicesrc), "device-name", >> > audioDeviceName.c_str(), NULL); >> > >> > GstPad* pad = gst_element_get_static_pad (audiodevicesrc, "src"); >> > gst_pad_get_caps (pad); >> > if (pad) >> > gst_object_unref(pad); >> > >> > vector<string> l_inputs; >> > GstMixer *mixer = GST_MIXER (audiodevicesrc); >> > const GList* list = gst_mixer_list_tracks (mixer); >> > >> > for (const GList* item = list; item != NULL; item = item->next) >> > { >> > GstMixerTrack *track = (GstMixerTrack*)item->data; >> > l_inputs.push_back(string(track->label)); >> > } >> > >> > if (audiodevicesrc) >> > { >> > gst_element_set_state (audiodevicesrc, GST_STATE_NULL); >> > gst_object_unref(GST_OBJECT (audiodevicesrc)); >> > } >> > >> > return l_inputs; >> > } >> > >> ------------------------------------------------------------------------------------------------------ >> > >> > ---------------------------- select record input and set volume >> > ------------------------------------- >> > void setAudioInput(const string audioInput, int volumePercentOfMax) >> > { >> > GstMixer *mixer = GST_MIXER (audiodevicesrc); >> > GstMixerTrack *track = NULL; >> > const GList* list = gst_mixer_list_tracks (mixer); >> > for (const GList* item = list; item != NULL; item = item->next) >> > { >> > GstMixerTrack *track_next = (GstMixerTrack*)item->data; >> > if (audioInput == std::string(track_next->label)) >> > track = track_next; >> > else >> > //mute other audio inputs >> > gst_mixer_set_mute(mixer, track_next, TRUE); >> > } >> > if (track) >> > { >> > vector<gint> volumes(m_audioNbChannels, (gint)(volumePercentOfMax >> * >> > track->max_volume / 100.0)); >> > gst_mixer_set_record (mixer, track, TRUE); >> > gst_mixer_set_volume (mixer, track, &volumes[0]); >> > >> > } >> > } >> > >> > >> ------------------------------------------------------------------------------------------------------ >> > >> > They are some bad things in this code but the idea is there. >> > >> > You can also use property probe on dshowaudiosrc to list all the audio >> > device names installed on your system. >> > >> > J. >> > >> > >> > 2009/3/18 <[hidden email]> >> > >> >> Hello, >> >> >> >> I'm trying to use dshowaudiosrc on Windows but I have some problems. >> >> >> >> For example, I try : >> >> >> >> gst-launch-0.10.exe dshowaudiosrc ! audioconvert ! vorbisenc ! oggmux >> ! >> >> filesink location=foo.ogg >> >> >> >> And hen I talk in my micro the file foo.ogg is empty. >> >> I already verified if my micro functions correctly. It does. >> >> >> >> If I try : >> >> gst-launch-0.10.exe audiotestsrc ! audioconvert ! vorbisenc ! oggmux >> ! >> >> filesink location=foo.ogg it works ! >> >> >> >> >> >> Where is the problem ? >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) >> are >> >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly >> and >> >> easily build your RIAs with Flex Builder, the Eclipse(TM)based >> >> development >> >> software that enables intelligent coding and step-through debugging. >> >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> >> _______________________________________________ >> >> gstreamer-devel mailing list >> >> [hidden email] >> >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >> >> >> > >> ------------------------------------------------------------------------------ >> > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) >> are >> > powering Web 2.0 with engaging, cross-platform capabilities. Quickly >> and >> > easily build your RIAs with Flex Builder, the Eclipse(TM)based >> development >> > software that enables intelligent coding and step-through debugging. >> > Download the free 60 day trial. >> > >> http://p.sf.net/sfu/www-adobe-com_______________________________________________ >> > gstreamer-devel mailing list >> > [hidden email] >> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >> > >> >> >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based >> development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >> > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. > http://p.sf.net/sfu/www-adobe-com_______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
it's a bug in the original dshowaudiosrc,
as you can see in around line 360 of http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/sys/dshowsrcwrapper/gstdshowaudiosrc.c there is no PROP_DEVICE_NAME case in the switch. The fix is in the patch.2009/3/18 <[hidden email]> In the sound properties on WIndows, my device to capture the sound is ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
Try with the files in attachment. I will investigate if you get the same error. J. Le 19 mars 2009 12:08, <[hidden email]> a écrit : Hello, 2009/3/18 Julien Isorce <[hidden email]> it's a bug in the original dshowaudiosrc, ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel dshowsrcwrapper.zip (64K) Download Attachment |
Free forum by Nabble | Edit this page |