FFmpeg not recording audio during screen capture

Posted by King on Ask Ubuntu See other posts from Ask Ubuntu or by King
Published on 2011-02-03T17:27:09Z Indexed on 2011/02/06 15:34 UTC
Read the original article Hit count: 384

Filed under:
|
|

I'm using the script below to run FFmpeg on Ubuntu 10.10. I followed these instructions to install FFmpeg & x264.

While ffmpeg does capture the screen it does not capture the mic audio. I've checked that the mic works via "System Preferences". Anyone have any ideas on what the problem(s) could be and suggestions on how to resolve this issue? Thanks.

ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 30 -s $(xwininfo -root |  grep 'geometry' | awk '{print $2;}') -i :0.0 -acodec pcm_s16le -vcodec  libx264 -vpre lossless_ultrafast -threads 0 -y screen-capture.mkv

© Ask Ubuntu or respective owner

Related posts about audio

Related posts about microphone