202 lines = filter_lines(self.info["msg_ffmpeg"], "[Parsed_cropdetect").split("\n") |
202 lines = filter_lines(self.info["msg_ffmpeg"], "[Parsed_cropdetect").split("\n") |
203 option = None |
203 option = None |
204 failcount = 0 |
204 failcount = 0 |
205 for line in lines: |
205 for line in lines: |
206 tmp = line[line.find(" crop="):].strip() |
206 tmp = line[line.find(" crop="):].strip() |
|
207 # crop=1920:804:0:138 |
|
208 if len(tmp.split(":")) != 4: |
|
209 print "Warning, invalid cropdetect: %s" % tmp |
|
210 return None |
|
211 if tmp.split(":")[2] != "0": |
|
212 print "!!! X crop detected, disabling autocrop (%s)" % tmp |
|
213 self.info["msg_prepare"] += "WARNING: cropdetect suggested X crop, disabling autocrop\n" |
|
214 return None |
207 #print "DEBUG: " + tmp |
215 #print "DEBUG: " + tmp |
208 if not option: |
216 if not option: |
209 option = tmp |
217 option = tmp |
210 else: |
218 else: |
211 if option != tmp: |
219 if option != tmp: |