简体   繁体   English

我需要将音频从 .mp3 转换为 .gsm

[英]I need to convert an audio from .mp3 to .gsm

I need to convert from.mp3 to.gsm (preferably with ffmpeg).我需要将 from.mp3 转换为.gsm(最好使用 ffmpeg)。 I used it for several different formats but with this isn't as simple as it was with the others.我将它用于几种不同的格式,但这并不像其他格式那么简单。 I don't know what parameters I'm missing.我不知道我缺少什么参数。

I tried using ffmpeg with the following comand:我尝试将 ffmpeg 与以下命令一起使用:

ffmpeg -i ".\example.mp3" ".\example.gsm"

But it shows me the following error:但它向我显示以下错误:

Sample rate 8000Hz required for GSM, got 44100Hz Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed!

ffmpeg -ar 8000 -ac 1 -i ".\example.mp3" ".\example.gsm"

-ar sample rate -ac audio channel -ar 采样率 -ac 音频通道

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM