JnvSor Dec 20, 2013 @ 4:16pm
Very fast screen capture (1080p 30fps on one CPU core) on linux
Hands down the best linux tool for screen recording is avconv. Avconv scares linux beginners away.

avconv -f x11grab -r 30 -s hd1080 -i :0.0 -f pulse -name 'screencap -> system audio' -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -f pulse -name 'screencap -> headset mic' -i alsa_input.pci-0000_00_1b.0.analog-stereo -map 0 -map 1 -map 2 -codec:v libx264 -filter:v 'scale=w=-1:h=720,scale=w=trunc(in_w/2)*2:h=trunc(in_h/2)*2' -pre:v lossless_ultrafast -codec:a libmp3lame -threads 2 -y out.avi

Not surprising it scares people off!

I've used a script to record hd linux wine gameplay videos for about a year now and I've cleaned and documented it so you can use it.

https://github.com/jnvsor/screencap

That bigass line above? Generated by the command `screencap out.avi`

Much better! (Also it will work on steamOS as you can choose which Xserver to record from)
Showing 1-12 of 12 comments
< >
`][`arron: Linux Dec 20, 2013 @ 4:23pm 
I quite like gui's and kazam has met my needs so far (except for a bug... which i cant fix on anything, my mic is out of sync to the game play.. due to my lovely usb headset (logitach g930) and had to do an amazing amount of hackery to make a sound module that played my mic over my sound at the same time so i could record one stream instead of 2) i may try your big ♥♥♥ line to see if it works for me and my headset :)
JnvSor Dec 20, 2013 @ 4:26pm 
Well the big line won't - there are instructions to customize the script to your liking (Specifically the resolution and audio devices)

What resolution is your screen and what is the output of "pactl list short sources"?

I can give you a tailored one then.
`][`arron: Linux Dec 20, 2013 @ 4:30pm 
my res is 1680x1050

and


0 alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
1 alsa_input.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-mono module-alsa-card.c s16le 1ch 16000Hz RUNNING
2 alsa_output.pci-0000_00_1b.0.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
3 alsa_input.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
5 alsa_output.pci-0000_06_00.1.hdmi-stereo-extra3.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
Doc Holliday Dec 20, 2013 @ 4:36pm 
there is a website now that you put in what you're recording and it makes a commened line for you
JnvSor Dec 20, 2013 @ 4:38pm 
avconv -f x11grab -r 30 -s 1680x1050 -i :0.0 -f pulse -name 'headset speakers' -i alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo.monitor -f pulse -name 'headset mic' -i alsa_input.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-mono -map 0 -map 1 -map 2 -codec:v libx264 -pre:v lossless_ultrafast -codec:a libmp3lame -threads 2 -y out.avi

That should do it, it should record your headset speakers and mic to 2 different tracks on the avi file. But it's bound to be more... interesting than that :P
`][`arron: Linux Dec 20, 2013 @ 4:39pm 
yep lol, ill give it a try in a min if i have time :) thnx for that
`][`arron: Linux Dec 20, 2013 @ 5:03pm 
Originally posted by JnvSor:
avconv -f x11grab -r 30 -s 1680x1050 -i :0.0 -f pulse -name 'headset speakers' -i alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo.monitor -f pulse -name 'headset mic' -i alsa_input.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-mono -map 0 -map 1 -map 2 -codec:v libx264 -pre:v lossless_ultrafast -codec:a libmp3lame -threads 2 -y out.avi

That should do it, it should record your headset speakers and mic to 2 different tracks on the avi file. But it's bound to be more... interesting than that :P

the only audio that records is what ever is entered first in the terminal, mic or speakers, never both
JnvSor Dec 20, 2013 @ 5:36pm 
Wierd. Tried opening pavucontrol and checking volume levels?
`][`arron: Linux Dec 20, 2013 @ 5:44pm 
pavucontrol says it was recording the correct things, but no
`][`arron: Linux Dec 20, 2013 @ 5:44pm 
the the levels were moving when i spoke, and to music, but only one records
JnvSor Dec 20, 2013 @ 5:51pm 
Ah that's only one playing back - remember I said they would be recorded to separate audio tracks. If you're in vlc press b to cycle through audio tracks. You can then use a video/audio editor to stick them together only now you have more control over the end result.
`][`arron: Linux Dec 20, 2013 @ 5:58pm 
Originally posted by JnvSor:
Ah that's only one playing back - remember I said they would be recorded to separate audio tracks. If you're in vlc press b to cycle through audio tracks. You can then use a video/audio editor to stick them together only now you have more control over the end result.

cheers bro, your right
Showing 1-12 of 12 comments
< >
Per page: 15 30 50
Date Posted: Dec 20, 2013 @ 4:16pm
Posts: 12