How to screencast with vlc using shell on linux kububuntu cvlc with microphone

This is an example

cvlc screen:// --screen-fps=12--input-slave=alsa://hw:0,0 --sout "#transcode{venc=x264,quality:100,scale=1,fps=30,acodec=mp4a,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp4,dst=desktop.mp4}}}"

as you can see i have used –input-slave=alsa://hw:0,0 that means for my system the default audio card … so which you should use ? well for the most of users it should be good this command line but if you have a logitech webcam with a nice mic like me … well you could just use this line

cvlc screen:// --screen-fps=30 --input-slave=alsa://hw:1,0 --sout "#transcode{venc=x264,quality:100,scale=1,fps=30,acodec=mp4a,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp4,dst=desktop.mp4}}}"

so i have used –input-slave=alsa://hw:1,0 in you system these numbers could change and to understand yours just do this :

cat /proc/asound/pcm

i get

00-00: ALC269VC Analog : ALC269VC Analog : playback 1 : capture 1
01-00: USB Audio : USB Audio : capture 1
02-03: HDMI 0 : HDMI 0 : playback 1

so i am using the usb mic 🙂

other stuff
play your mic with vlc directly

cvlc alsa://plughw:0
cvlc alsa://plughw:1

record audio only

screencast without audio

cvlc alsa://plughw:1,0 screen:// –screen-fps=30 –sout “#transcode{venc=libtheora,quality:100,scale=1,fps=30}:duplicate{dst=std{access=file,mux=ogg,dst=desktop.ogv}}}”

cvlc screen:// –screen-fps=30 –sout “#anscode{venc=x264,quality:100,scale=1,fps=30}:duplicate{dst=std{access=file,mux=mp4,dst=desktop.avi}}}”

my own string

cvlc screen:// --screen-fps=30 --input-slave=alsa://hw:1,0 --sout "#transcode{venc=x264,quality:100,scale=1,fps=30,acodec=mp4a,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp4,dst=desktop.mp4}}}"

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: