0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ffmpeg 切割音频文件

Last updated at Posted at 2021-06-01
sox file.mp3 out.mp3 trim 0 900 : newfile : restart

# 会在当前目录下生成名称前缀为 out 格式为 .mp3 时长为900 秒的若干个音频片段

ffprobe file.aac -hide_banner -show_format

https://imtx.me/archives/2718.html
https://www.jianshu.com/p/7647a55daa18

ffmpeg -ss 00:00:00 -t 00:05:00 -i file.m4a -c copy cut.m4a

ffmpeg -i file.m4a -f segment -segment_time 900 -write_xing 0 -c copy out%03d.m4a

screenflow导出音频


音频的详细信息

ffprobe file.aac -hide_banner -show_format


音频aac转为mp3格式

ffmpeg -i file.m4a -acodec libmp3lame audio.mp3

https://zhuanlan.zhihu.com/p/28008666
https://zhuanlan.zhihu.com/p/27366331


参考:

-write_xing 0
Mac上有ffmpeg切割文件导致Duration的start_time不正确的解决方法

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?