作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在给定元数据预定义时间的情况下将有声书文件分成 10 章更易于收听
0.000000, 3472.683000 秒这个 ch0
3472.683000, 7642.058000 ch1
ETC..
每章的开头和结尾2列,
我是假人,但尝试使用 awk 左右添加列以获取命令行但失败了
ffmpeg -i output.mp3 -acodec copy -ss begin -to end ch'number'.mp3.
最佳答案
每个预定义章节的“开始”和“结束”时间,目的:10 ffmpeg 命令行将它们拆分
ffmpeg -i audiofile.mp3 -acodec copy -ss begin to end ch'number'.mp3
sed -e '1,$s/^/ -i audiofile.mp3 -acodec copy -ss' file1 > file2 #file1 :contains 2 columns of begin and end time
-i audiofile.mp3 -acodec copy -ss begin, end
sed s'/, / -to /g' file2 > file3
-i audiofile.mp3 -acodec copy -ss begin -to end
awk '{$(NF+1) = "ch"(NR-1)".mp3"} 1' file3 > file4
-i audiofile.mp3 -acodec copy -ss begin -to end ch'number'.mp3
ffmpeg $(cat file4)
关于awk - 如何以预定义的时间将音频文件拆分为多个章节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55426252/
我是一名优秀的程序员,十分优秀!