Page 1 of 1

record video and audio with avconv

Posted: Mon Nov 04, 2013 9:52 am
by pezmarino
I would like record video and audio of my desktop. I try:

Code: Select all

avconv -f oss -i  /dev/oss/oss_hdaudio0/pcmin0 -f x11grab -r 30 -s 1920*1080 -i :0.0 -vcodec libx264 -preset ultrafast -ab 320k -threads 8 screen.mkv

Code: Select all

avconv -f pulse -i  default  -f x11grab -r 30 -s 1920*1080 -i :0.0 -vcodec libx264 -preset ultrafast -ab 320k -threads 8 screen.mkv

But I can't record audio. With the first command I get an error. With the second command I don't record audio.
I think Avconv doesn't support OSS4, but someone do before than me and he has a solution.
:?

Re: record video and audio with avconv

Posted: Mon Nov 04, 2013 5:01 pm
by cesium
If you wish to record your desktop, the input device is probably not the right place (unless you have the output linked directly to the input. Which is ill-advised, esp. if one didn't make sure the input isn't audible via the output...). See here how to set up a vmix loopback device and try using that.