使用ffmpeg录制音频时发出嘶哑的声音 [英] Crackling sound when recording audio with ffmpeg

查看:132
本文介绍了使用ffmpeg录制音频时发出嘶哑的声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令在 MacOS 上通过麦克风和网络摄像头进行录制:

I'm trying to record from a microphone and webcam on MacOS with the following command:

ffmpeg -f avfoundation -framerate 30 -i"0:0&";〜/recorded.mp4

我的结果在音频中嘎吱作响.

My result has crackling in the audio.

当您使用 DAW 时,我对这个问题很熟悉:您可以通过以下方法解决此问题:增加样品缓冲液.这个想法是,来自您的接口/麦克风的音频样本不能以一致或足够快的速率进入,因此丢失的样本填充有零会导致发出嘶哑的声音.为了避免丢失样本,您希​​望记录软件在处理样本之前,等待更长的时间来等待样本在缓冲区中积累.

I'm familiar with this problem when you use a DAW: you solve it by increasing the sample buffer. The idea is that audio samples coming from your interface/mic are not coming in a consistent or fast enough rate, so the missing samples being filled with zeroes causes the crackling sound. To avoid missing samples you want the recording software to wait longer for samples accumulating in a buffer before they're processed.

如何为 ffmpeg 配置此类缓冲区?

How can you configure such buffer for ffmpeg?

推荐答案

版本4.3似乎存在此问题.尝试使用4.2.

Version 4.3 seems to have this issue. Try with 4.2.

这篇关于使用ffmpeg录制音频时发出嘶哑的声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆