是否可以使用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