ffmpeg can't record desktop + sound
Sound in linux is obscure to me. I try to record my desktop + sound from applications running. So far I found I should use something like this
Code:
ffmpeg -f x11grab -s "1920x1080" -r "24" -i :0.0+0,0 -f alsa -ac 2 -i hw:0 -acodec libmp3lame -ab 64 -threads 8 -qscale 5 -b 1024 -ar 44100 -f flv test.out Code:
ffmpeg version 0.8.3-6:0.8.3-1, Copyright (c) 2000-2012 the Libav developers Any hint'd be appreciated |
Code:
-f alsa -ac 2 -i hw:0 Have you checked to see if your sound card has capturing output disabled in the hardware? Some sound devices like Intels and Nvidias have that disabled. You can get around it by jumping a cable from output to line in. Code:
-ab 64 Code:
-qscale 5 -b 1024 Code:
Stream #0.0: Video: flv, yuv420p, 1920x1080, q=2-31, 1 kb/s, 1k tbn, 24 tbc |
Quote:
Code:
$ cat /proc/asound/cards Although sound is present, it is low quality (bassless) and very silent. It look like I didn't hear the sound yesterday cause I worked with my headphones. To record I use now Code:
$ ffmpeg -f x11grab -s 1920x1080 -r 24 -i :0.0+0,0 -f alsa -ac 2 -i hw:0 -acodec libmp3lame -ab 192k -threads 8 -b 4096k -ar 44100 -f flv test.out |
I would record in an uncompressed format first, then reencode compressing video+audio.
You can try ffv1 as uncompressed video codec and pcm_s16le as uncompressed audio codec using avi as container. After the recording finishes, you can recompress everything using your favorite formats. |
FUCK!!! I realized why now there is any sound at all and yesterday there wasn't. My microphone within headphones recorded the audio!!!
In fact recording audio from my desktop doesn't work. The problem remains. What shell I do? |
All times are GMT -5. The time now is 02:26 AM. |