The ffmpeg option for audio is as following
----------------------------------------------------------
Audio options:
-aframes number set the number of audio frames to record
-aq quality set audio quality (codec-specific)
-ar rate set audio sampling rate (in Hz)
-ac channels set number of audio channels
-an disable audio
-acodec codec force audio codec ('copy' to copy stream)
-vol volume change audio volume (256=normal)
-newaudio add a new audio stream to the current output stream
-alang code set the ISO 639 language code (3 letters) of the current audio stream
Advanced Audio options:
-atag fourcc/tag force audio tag/fourcc
-sample_fmt format set sample format, 'list' as argument shows all the sample formats supported
-absf bitstream_filter
-apre preset set the audio options to the indicated preset
----------------------------------------------------------
1. convert audio to different sample rate clips
# ffmpeg -i 44.1k_16bit_stereo.wav -ar 48k_16bit_stereo.wav (or avcon -i 44.1k_16bit_stereo.wav -ar 48k_16bit_stereo.wav)
使用ffmpeg转换音频采样率
本文介绍了如何使用ffmpeg工具来转换音频的采样率。通过`-ar`选项可以设置音频的采样率,例如将44.1kHz的立体声.wav文件转换为48kHz的立体声.wav文件。此外,还提到了其他音频相关的参数,如音频质量、通道数等。
418

被折叠的 条评论
为什么被折叠?



