我正在尝试使用以下命令通过 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有点搞砸了,它只播放第一首歌,没有其他:(
有一个优雅的解决方案吗?
任何帮助都会很棒..