You are not logged in.

#1 2015-04-06 13:59:54

bagol
Member
Registered: 2015-01-29
Posts: 28

Screen casting with ffmpeg can't record audio

How can I properly record audio played by my computer with ffmpeg?

I've tried this:

ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv

That doesn't work. I tried to record screen with cmus and banshee playing mp3, but when i play the video it doesn't have sound.

I've tried this too:

ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv
ffmpeg -f pulse -ac 2 -i hw:0,0 -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv

What's wrong there?

Offline

Board footer

Powered by FluxBB