小编Joh*_*hnJ的帖子

sox 和 ffmpeg 组合 mp3 失败“输入文件必须具有相同的采样率”

我正在尝试使用以下命令通过 sox 合并 mp3 文件:

sox in.mp3 in2.mp3 out.mp3
Run Code Online (Sandbox Code Playgroud)

我得到:

sox FAIL sox: Input files must have the same sample-rate
Run Code Online (Sandbox Code Playgroud)

尝试了该-m选项,但我想这是默认的。

我也尝试通过 ffmpeg 这样做:

printf "file '%s'\n" ./*.mp3 > mylist.txt && ffmpeg -sn -f concat -safe 0 -i mylist.txt -acodec copy output.mp3
Run Code Online (Sandbox Code Playgroud)

但输出文件output.mp3有点搞砸了,它只播放第一首歌,没有其他:(

有一个优雅的解决方案吗?

任何帮助都会很棒..

mp3 ffmpeg sox

3
推荐指数
2
解决办法
3493
查看次数

标签 统计

ffmpeg ×1

mp3 ×1

sox ×1