Skip to content

Commit

Permalink
Merge pull request #28 from mysablehats/master
Browse files Browse the repository at this point in the history
Fixes inconsistent fps issues (fps reading vs fps writing)
  • Loading branch information
mdraw committed Jan 10, 2023
2 parents 852286e + d013a08 commit 0d2eba8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deface/deface.py
Expand Up @@ -114,7 +114,11 @@ def video_detect(
replaceimg = None
):
try:
reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath)
if 'fps' in ffmpeg_config:
reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath, fps=ffmpeg_config['fps'])

This comment has been minimized.

Copy link
@zalayeta88

zalayeta88 Feb 11, 2023

deface

else:
reader: imageio.plugins.ffmpeg.FfmpegFormat.Reader = imageio.get_reader(ipath)

meta = reader.get_meta_data()
_ = meta['size']
except:
Expand Down

0 comments on commit 0d2eba8

Please sign in to comment.