【问题标题】:Merge video and audio with ffmpeg. Loop the video and the audio [closed]使用 ffmpeg 合并视频和音频。循环播放视频和音频[关闭]
【发布时间】:2021-04-21 16:54:41
【问题描述】:

参考这个:Merge video and audio with ffmpeg. Loop the video while audio is not over

一个很好的答案是: ffmpeg -stream_loop -1 -i input.mp4 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4

事情是在音乐结束时一切都停止了。有什么想法也可以循环播放音乐吗? 就像音乐上的无限视频循环一样,带有无限的音乐循环。

【问题讨论】:

    标签: loops audio video ffmpeg


    【解决方案1】:

    添加另一个-stream_loop -1

    ffmpeg -stream_loop -1 -i input.mp4 -stream_loop -1 -i input.mp3 -map 0:v:0 -map 1:a:0 out.mp4
    

    【讨论】:

    • 简单。有效的 !谢谢
    猜你喜欢
    • 2011-06-28
    • 1970-01-01
    • 2020-12-21
    • 2012-11-19
    • 2019-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多