I can't find audio device name in my OS! Help!

This forum is about all development around libVLC.
onpduo
New Cone
New Cone
Posts: 2
Joined: 13 Aug 2010 11:43

I can't find audio device name in my OS! Help!

Postby onpduo » 16 Aug 2010 04:56

My OS is Linux Mint 9 based on ubuntu 10.04, I want to do a development about streaming my voice via my built-in mic, I've tried several name but can't find the correct one. I know the video device is /dev/video0. Can anyone help me?

this is audio info:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

By the way, I can use gnome-sound-recorder to record my voice, so the built-in mic is really working. In the sound preference, Hardware tab, I choose analog stereo duplex, input is microphone2(the built-in one).


thx in advance!!!

Rémi Denis-Courmont
Developer
Developer
Posts: 15065
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: I can't find audio device name in my OS! Help!

Postby Rémi Denis-Courmont » 16 Aug 2010 16:58

My best guess is "alsa://plughw:0,0". In VLC 1.1.x, you can get the list of capture devices from the playlist -> Devices -> Audio capture. Unfortunately, ALSA provides quite obfuscated device names; we have improved the names a bit in VLC 1.2.0, but it's as far as we can go.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

onpduo
New Cone
New Cone
Posts: 2
Joined: 13 Aug 2010 11:43

Re: I can't find audio device name in my OS! Help!

Postby onpduo » 17 Aug 2010 12:45

My best guess is "alsa://plughw:0,0". In VLC 1.1.x, you can get the list of capture devices from the playlist -> Devices -> Audio capture. Unfortunately, ALSA provides quite obfuscated device names; we have improved the names a bit in VLC 1.2.0, but it's as far as we can go.
Thanks,actually I've tried many ways before this post, including plughw:0,0, plughw:0,2, hw:0,0, hw:0,2, /dev/dsp, /dev/audio, /dev/mixer and so on. None is right. Yesterday, I suddenly came out an idea and type "default" in the line, and it was really working. However, "default" means the default mic in my audio settings(I have two,one is the plug one, and another is the buit-in one). So I still don't know the exact names for each mic. Anyway, the player is very good. Hope it better in the next release.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 2 guests