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

Commit

Permalink
Merge pull request #191 from gnes-ai/fix_ffmpeg
Browse files Browse the repository at this point in the history
fix(ffmpeg): fix error for parsing media info when vcodec is none
  • Loading branch information
mergify[bot] authored Sep 3, 2019
2 parents aefb06c + c8710c5 commit 926250d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/preprocessor/io_utils/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

VIDEO_DUR_PATTERN = re.compile(r".*Duration: (\d+):(\d+):(\d+)", re.DOTALL)
VIDEO_INFO_PATTERN = re.compile(
r'.*Stream #0:(\d+)(?:\(\w+\))?: Video: (\w+).*, (yuv\w+)[(,].* (\d+)x(\d+).* (\d+)(\.\d.)? fps',
r'.*Stream #0:(\d+)(?:\(\w+\))?: Video: (\w+).*, (\w+)[(,].* (\d+)x(\d+).* (\d+)(\.\d.)? fps',
re.DOTALL)
AUDIO_INFO_PATTERN = re.compile(
r'^\s+Stream #0:(?P<stream>\d+)(\((?P<lang>\w+)\))?: Audio: (?P<format>\w+).*?(?P<default>\(default\))?$',
Expand Down

0 comments on commit 926250d

Please sign in to comment.