Added extra debug code to try to discover why, sometimes, it assign incorrect stream ids

This commit is contained in:
Sergio Costas 2015-11-07 19:40:23 +01:00
parent 9af06bab98
commit 7299168b15
6 changed files with 35 additions and 9 deletions

View file

@ -70,7 +70,7 @@ class avprobe(devedeng.avbase.avbase):
stdout2 = stdout.decode("utf-8")
except:
stdout2 = stdout.decode("latin1")
self.config.append_log("AVProbe JSON data: "+str(stdout2))
self.config.append_static_log("AVProbe JSON data: "+str(stdout2))
return self.process_json(stdout2, file_name)
@ -143,7 +143,7 @@ class avprobe(devedeng.avbase.avbase):
stdout2 = stdout.decode("utf-8") + "\n" + stderr.decode("utf-8")
except:
stdout2 = stdout.decode("latin1") + "\n" + stderr.decode("latin1")
self.config.append_log("Using avprobe human readable format: "+str(stdout2))
self.config.append_static_log("Using avprobe human readable format: "+str(stdout2))
for line in stdout2.split("\n"):
line = line.strip()
if line.startswith("Duration: "):