LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FFMPEG 0.8.9 audio recording causes clicking sounds (https://www.linuxquestions.org/questions/linux-software-2/ffmpeg-0-8-9-audio-recording-causes-clicking-sounds-937565/)

anon112 04-01-2012 12:41 PM

FFMPEG 0.8.9 audio recording causes clicking sounds
 
Whenever I'm recording a screencast using FFMPEG on Fedora 16 with pulseaudio I keep getting an annoying clicking n the background. The clicking does not exist in other audio recording programs, just ffmpeg. Is there any way I can eliminate this clicking?
FFMPEG command:
Code:

fmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+100,320 -sameq -f alsa -i pulse -threads 2 -vcodec libx264 -vb 1000k -acodec libvorbis -ac 2 -ar 44800 -ab 128k test.mkv
The clicking sounds a bit like static, but as I said, I've eliminated the possibility of static.

Slackyman 04-03-2012 12:45 AM

Have you tried to use another codec for your mkv audio?

jefro 04-03-2012 09:35 PM

I'd guess the system is having a hard time with the work. Run top when you do this maybe.

anon112 04-04-2012 05:03 AM

Other codecs give the same issue.

The system isn't working too hard with the encoding. CPU usage for ffmpeg is detected as 150% using top and "system monitor" detects that each CPU core is not going above 60% when I am running it. I have ffmpeg set to use 2 threads, but this also happens if I give it 4 threads (and uses the same CPU percentage).

Slackyman 04-04-2012 10:27 AM

First of all make sure that is an encoder problem and not a decoder issue: try to open the created file on another machine and check if the sound is still "clicking".
As second step try to use another format (not mkv) as mpeg or mp4 keeping the codecs so that you can say if the issue is related to the container and not to the codecs.


All times are GMT -5. The time now is 08:39 AM.