record video and audio with avconv

OSS specific Linux discussion (x86/amd64)

Moderators: dev, hannu, cesium

pezmarino
New Member
Posts: 7
Joined: Fri Sep 27, 2013 1:23 pm

record video and audio with avconv

Postby pezmarino » Mon Nov 04, 2013 9:52 am

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.
:?

cesium
Developer
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: record video and audio with avconv

Postby cesium » Mon Nov 04, 2013 5:01 pm

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.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 3 guests