是否可以使用ffmpeg在视频文件中添加多个暂停?例如:我想从第5秒开始暂停3秒,然后从第17秒开始暂停8秒。音频文件同步不是问题,只是暂停应该在指定的时间间隔。 谢谢。FFMPEG-在视频中添加暂停
0
A
回答
0
结合时间线编辑'enable'参数使用循环过滤器。 应允许您制作一个过滤器,该过滤器在单帧中循环3秒,但仅在输出时间戳在3秒和5秒之间时才启用。
+0
一个实际的,可用的示例命令将会使这个更好的答案非常有用。 – LordNeckbeard
0
如果我以前的答复不工作,你可能需要削减了源视频,然后在其上重合空白画布。使用-filter_complex参数传递您构造的过滤器图。
https://ffmpeg.org/ffmpeg-filters.html
the 'color' filter will give you a blank canvas with a 5 second duration
the 'trim' filter will allow you to get a stream containing only the first 3 seconds
the 'overlay' filter will allow you to overlay the first 3 seconds of footage onto the blank canvas repeating the last frame
这将会给你的第一个场景
the 'concat' filter will allow you to join the scenes together
you can also use 'select' (see ffmpeg timeline editing)
to exclude the first 3 seconds of the source video for the second scene.
(You may need to import the same source video file twice
so you can reference it as [0:v] to make the first scene
and [1:v] to make the second scene in the filtergraph if you run into problems.)
相关问题
- 1. 在AVExportSession中暂停视频
- 2. 如何在AVPlayervewcontroller中暂停视频?
- 3. 如何在Javascript中暂停Vimeo视频?
- 4. 用firstChild暂停视频?
- 5. FFMPEG添加音频到视频,但它夹到视频长度
- 6. 旋转视频添加黑条与ffmpeg
- 7. ffmpeg:添加超链接到视频?
- 8. FFmpeg截断视频也在1行中添加图像在视频
- 9. 在录制视频中增加fps ffmpeg
- 10. 在内嵌的colorbox中加载mediaelementjs,暂停视频onClose
- 11. 在iPad上暂停HTML5 YouTube视频
- 12. 播放/暂停YouTube视频中拉网
- 13. 暂停视频不会停止HTML5视频标签中的音频
- 14. FFMPEG发挥叠加视频
- 15. 添加“在悬停暂停”滑块
- 16. Slick.js和html5视频在视频上自动播放和暂停
- 17. 如何停止加载嵌入的YouTube视频后,暂停它
- 18. 在for-in循环中添加暂停
- 19. 如何在特定时间使用ffmpeg在视频中添加音频?
- 20. 使用ffmpeg添加音频频道
- 21. HTML5视频 - 暂停加载/部分加载
- 22. 播放暂停HTML5视频的JavaScript
- 23. 如何使用ASIHTTP暂停视频
- 24. 如何暂停视频播放器?
- 25. 如何暂停和播放视频?
- 26. 使用播放和暂停视频
- 27. html5视频随机暂停后25%
- 28. ios下载视频暂停/继续
- 29. youtube iframe api不暂停视频
- 30. 视频不会使用Javascript暂停
看到我的【答案】(https://superuser.com/q/1071369/114058)这里基本方法。 – Mulvya