Skip to content

Commit

Permalink
ffmpeg parser: if line contains 'invalid' it is a warning, not an error.
Browse files Browse the repository at this point in the history
Error strings should be more precision.
There are situations when codec prints some 'invalid', but this is not an error, just a warning.
  • Loading branch information
timurhai committed Jul 27, 2021
1 parent c24b76e commit 248cc41
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions afanasy/python/parsers/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ class ffmpeg(parser.parser):

def __init__(self):
parser.parser.__init__(self)
self.str_badresult = ['Output file is empty']
self.str_error = ['Invalid', 'Impossible to open', 'No such file or directory']
self.duration = 0.1
self.frame = 0
self.frames = 0
self.str_badresult = ['output file is empty']
self.str_error = ['impossible to open', 'no such file or directory']
self.str_warning = ['invalid']
self.duration = 0.1
self.frame = 0
self.frames = 0

def parseTime(self, time):
res = re_time.match(time)
Expand Down

0 comments on commit 248cc41

Please sign in to comment.