How do I stream my microphone via VLC?
Here's the settings I used in VLC's "Open Capture Device" dialog on my MacBook 2,1 running Ubuntu 11.04:
- Capture mode:
Video for Linux 2
- Video:
/dev/video0
- Audio:
plughw
If you're doing a desktop capture or something like that and would like to add microphone audio to it, you'll have to check "show more options" -> "play another media file synchronously" and enter the entire URI which is: alsa://plughw
I know this was a long time ago but I used this VLC command to stream my USB mic as RTSP.
You might need find your mics device id. Mine is 1,0. Use arecord -l to see.
From the server
vlc -vvv alsa://plughw:1,0 --sout '#transcode{vcodec=none,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{dst=192.168.1.121,port=1234,sdp=rtsp://192.168.1.121:8080/test.sdp}'
From the client
vlc rtsp://192.168.1.121:8080/test.sdp