Skip to content

Commit

Permalink
Merge pull request ORB-HD#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
Original file line number Diff line number Diff line change
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'])
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.