Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 339

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 392

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 394
ffmpeg设置输出的采样率和声道数参数 - Joyber 的博客

原始音频信息,采样率44100 Hz,双声道stereo

  Duration: 00:11:23.60, start: 0.025057, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s

转码命令

ffmpeg -i C:\Users\Administrator\Desktop\materials\蕊希.mp3 -ac 1 -ar 48000 -y test.mp3

其中:

-ac 1 设置声道数为1
-ar 48000 设置采样率为48000Hz

转码后的音频,采样率48000 Hz,单声道mono

  Duration: 00:11:23.59, start: 0.023021, bitrate: 64 kb/s
    Stream #0:0: Audio: mp3, 48000 Hz, mono, fltp, 64 kb/s

标签: none

添加新评论