如何使用ffmpeg将音频文件分为两个?
ffmpeg
使用|
来指定时间段以拆分文件。此命令返回错误?我在滥用吗?
命令:
ffmpeg -i input.wav -f segment=timestamps="60|150" -c copy output%03d.wav
>>> Requested output format 'segment=timestamps=60|150' is not a suitable output format
./tmp/test_split%03d.wav: Invalid argument
ffmpeg -i input.wav -f segment timestamps="60|150" -c copy output%03d.wav
>>> Output file #0 does not contain any stream
使用|
的正确方法是什么?
The ffmpeg
docs mentions that you can use the |
to specify the timesteps to split the file. This command returns an error? Am I misusing it?
Command:
ffmpeg -i input.wav -f segment=timestamps="60|150" -c copy output%03d.wav
>>> Requested output format 'segment=timestamps=60|150' is not a suitable output format
./tmp/test_split%03d.wav: Invalid argument
ffmpeg -i input.wav -f segment timestamps="60|150" -c copy output%03d.wav
>>> Output file #0 does not contain any stream
What is the correct way to use the |
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 不使用使用
|
分隔符用于您要做的事情。我相信您正在寻找此选项:因此,您的命令应读取,
请注意,如果要准确拆分,则不建议使用
-c复制
。According to the docs,
segment
demuxer does not use|
separator for what you want to do. I believe you are looking for this option:So, your command should read
Note that
-c copy
is not recommended if you want accurate split.