Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture microphone input in VLC?

Tags:

streaming

vlc

I'm trying to capture microphone input in VLC media player via the http interface and stream this but so far I have arrived at nothing. Is this actually possible?

like image 211
Dark Star1 Avatar asked Jun 30 '11 17:06

Dark Star1


2 Answers

Which platform? I'm on Mac so i know for sure this is possible with VLC 2.0 for the other platforms this should work as well.

Haven't tested those commands though.

Mac: Use VLC 2.0.0 or later and utilize the qtsound module:

vlc -vvv qtsound:// 

Win: Use sth like:

vlc dshow:// :dshow-vdev="None" :dshow-adev="Your Audio Device" 

Linux: Use sth like:

vlc alsa://plughw:0,0
like image 123
Mike F Avatar answered Sep 23 '22 17:09

Mike F


On Linux if you need to stream also video remember to separate all the options with ":" . In this case I am streaming the usb cam with the default alsa microphone.

cvlc v4l2:///dev/video0 :v4l2-standard=ALL :input-slave=alsa://hw:0,0 :live-caching=300  ':sout=#transcode{vcodec=mp4v,vb=3500,width=1920,height=1080,acodec=mp3,ab=192,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/}'
like image 39
Alex Avatar answered Sep 23 '22 17:09

Alex