【问题标题】:Cutting movie with ffmpeg result in audio/video desync使用 ffmpeg 剪切电影导致音频/视频不同步
【发布时间】:2019-09-29 01:11:41
【问题描述】:

我已经连接了很久以前在某个讲座中拍摄的一组电影。现在我想为每个问题/答案剪掉它们。

我就是这样做的。

ffmpeg -ss 00:00:34.7 -t 00:10:44.6 -y -i input_movie.mp4 -vcodec copy -acodec copy output_1.mp4

ffmpeg -ss 00:11:22.2 -y -i input_movie.mp4 -vcodec copy -acodec copy output_2.mp4

然而,对于第二部分,我无法设置正确的起点,以便音频和视频同步。
通常我可以在缩短开始时间(如 0.1、0.2 等)中用小 tweek 修复它。对于这种情况,这不起作用。
当我在 mplayer 视频中播放第二次剪辑时,音频落后于音频几秒钟(音频被正确剪切)。当我前后跳跃时 - 一切都再次同步。

问题出在哪里?如何解决?

【问题讨论】:

    标签: ffmpeg video-editing


    【解决方案1】:

    当我使用 RE-ENCODING 进行剪辑时 - 问题消失了。

    ffmpeg -ss 00:00:34.7 -t 00:10:44.6 -y -i input_movie.mp4 -c:v libx264 -c:a aac -strict experimental -b:a 128koutput_1.mp4

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-16
      • 1970-01-01
      • 2016-05-26
      • 2016-05-25
      • 1970-01-01
      • 2012-10-02
      • 1970-01-01
      • 2023-03-05
      相关资源
      最近更新 更多