Using Linux Mint 18.1 32bit, Logitech pro 9000, vlc 2.2.2
I have searched many sites for tips and have found many to record the video, but none that come close to streaming or recording both the video and the audio.
The closest was from Trouble getting VLC to record from the webcam via command line. This streams the video but does not play the audio.
cvlc v4l2:// :input-slave=alsa:// :v4l-vdev="/dev/video0" :v4l-norm=3 \
:v4l-frequency=-1 :v4l-caching=300 :v4l-chroma="" :v4l-fps=-1.000000 \
:v4l-samplerate=44100 :v4l-channel=0 :v4l-tuner=-1 :v4l-audio=-1 :v4l-stereo \
:v4l-width=480 :v4l-height=360 :v4l-brightness=-1 :v4l-colour=-1 :v4l-hue=-1 \
:v4l-contrast=-1 :no-v4l-mjpeg :v4l-decimation=1 :v4l-quality=100 \
--sout="#transcode{vcodec=theo,vb=2000,fps=12,scale=0.67,acodec=vorb,ab=90,channels=1,samplerate=44100}:standard{access=file,mux=ogg,dst=output.ogg}"
How would the command be modified to play video and audio?
Edit
Pulseaudio is running:
$ ps axu | grep pulse
bill 1553 0.0 0.5 176268 10456 ? S<l 15:15 0:02 /usr/bin/pulseaudio --start --log-target=syslog
List of audio devices:
$ arecord -l **** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC9200 Analog [STAC9200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Q9000 [QuickCam Pro 9000], device 0:
USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
ps axu | grep pulse
, look if there's apulseaudio
process running, and edit the question. You can usearecord
to test recording with ALSA, andarecord -l
to list your devices.