Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

用 FFmpeg 提取 mp3 时的注意事项

tangshimin edited this page Jul 7, 2022 · 5 revisions

用 FFmpeg 提取音频格式时,需要注意这一条日志,这条日志表示输出的时长和输入的时长可能会不一致。
如果是从 MKV 中提出字幕和 MP3,字幕的时间轴和 MP3 的时间轴可能对不上。

Estimating duration from bitrate, this may be inaccurate

还有直接使用这一条命令提取 mp3, mp3 的时长可能和 mp4 的时长不一致。

ffmpeg -i input.mp4 output.mp3

使用格式工厂提取 mp3,提取的 mp3 时长与视频的时长相同,ffmpeg 应该也可以,但是需要查文档,测试命令。