mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Added mpdecimate option for ffmpeg. Drop duplicate frames when a video file is processed
For more info: https://ffmpeg.org/ffmpeg-filters.html#mpdecimate
This commit is contained in:
parent
48181832a7
commit
290d470a37
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ def extract_video(input_file, output_dir, output_ext=None, fps=None):
|
|||
|
||||
if output_ext == 'jpg':
|
||||
kwargs.update ({'q:v':'2'}) #highest quality for jpg
|
||||
|
||||
|
||||
kwargs.update ({'vf':'mpdecimate'}) #drop duplicate frames
|
||||
|
||||
job = job.output( str (output_path / ('%5d.'+output_ext)), **kwargs )
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue