Home > computers > linux > LinuxScreenCapture | About

HQ captures with avconv (ffmpeg isn't shipped in Mint anymore)

avconv -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264  -threads 0 video.mkv

If you want audio

add -f alsa -i SOMETHING

To get SOMETHING, which is the audio card hardware interface number, you need to run arecord -l like so

ychaouche@ychaouche-PC 17:21:00 ~/VIDEOS/SCREENCASTS $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC662 rev1 Alt Analog [ALC662 rev1 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
ychaouche@ychaouche-PC 17:25:35 ~/VIDEOS/SCREENCASTS $ 

In my case I have only one card which is numbered 0, so let's try with -f alsa -i hw:0

avconv -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264  -threads 0 -f alsa -i hw:0 video.mkv

It worked !


contact : @ychaouche yacinechaouche at yahoocom


QR Code
QR Code If you want audio (generated for current page)