Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(preprocessor): fix bug in params in ffmepg
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Aug 1, 2019
1 parent c7df090 commit e6a3711
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnes/preprocessor/helper.py
Expand Up @@ -37,6 +37,8 @@ def get_video_frames(buffer_data: bytes, image_format: str = 'cv2',
# (-vsync, vfr)
# (-vf, select=eq(pict_type\,I))
for k, v in kwargs.items():
if type(v) in [int, float]:
v = str(v)
ffmpeg_cmd.append('-' + k)
ffmpeg_cmd.append(v)

Expand Down

0 comments on commit e6a3711

Please sign in to comment.