2017-03-09 14 views
0

ffmpegを使用してビデオファイルに複数の一時停止を追加することはできますか?例:5秒目から3秒間のポーズを追加し、17秒目から8秒間のポーズを追加したいとします。オーディオファイルの同期は問題ではなく、指定された間隔で一時停止する必要があります。おかげさまで FFMPEG-ビデオ内での追加の一時停止

+0

をあなたの最初のシーンを与える基本的な方法のためにここに私の[解答](https://superuser.com/q/1071369/114058)を参照してください。 – Mulvya

答えて

0

タイムライン編集の 'enable'パラメータとともにループフィルタを使用する。 では、1フレームを3秒間ループするフィルタを作成することができますが、出力タイムスタンプが3〜5秒の場合にのみ有効になります。

https://ffmpeg.org/ffmpeg-filters.html#loop

https://ffmpeg.org/ffmpeg-filters.html#Timeline-editing

+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.) 
関連する問題