Fix transcoding runtime errors.

This commit is contained in:
Roderick van Domburg 2014-07-30 19:06:46 +02:00
commit bec783fecf
2 changed files with 4 additions and 3 deletions

View file

@ -438,7 +438,7 @@ def initialize(section=None):
'VRESOLUTION':None,'VCODEC_ALLOW':['libx264', 'h264', 'h.264', 'AVC', 'avc', 'mpeg4', 'msmpeg4', 'MPEG-4'], 'VRESOLUTION':None,'VCODEC_ALLOW':['libx264', 'h264', 'h.264', 'AVC', 'avc', 'mpeg4', 'msmpeg4', 'MPEG-4'],
'ACODEC':'aac','ACODEC_ALLOW':['libfaac'],'ABITRATE':None, 'ACHANNELS':2, 'ACODEC':'aac','ACODEC_ALLOW':['libfaac'],'ABITRATE':None, 'ACHANNELS':2,
'ACODEC2':'ac3','ACODEC2_ALLOW':['ac3'],'ABITRATE2':None, 'ACHANNELS2':6, 'ACODEC2':'ac3','ACODEC2_ALLOW':['ac3'],'ABITRATE2':None, 'ACHANNELS2':6,
'ACODEC3':None,'ACODEC3_ALLOW':[],'ABITRATE3':None, 'ACHANNELS':None, 'ACODEC3':None,'ACODEC3_ALLOW':[],'ABITRATE3':None, 'ACHANNELS3':None,
'SCODEC':'mov_text' 'SCODEC':'mov_text'
}, },
'iPad-1080p':{ 'iPad-1080p':{

View file

@ -304,6 +304,7 @@ def buildCommands(file, newDir):
s_mapped = [] s_mapped = []
subs1 = [] subs1 = []
burnt = 0 burnt = 0
n = 0
for lan in nzbtomedia.SLANGUAGES: for lan in nzbtomedia.SLANGUAGES:
try: try:
subs1 = [ item for item in subStreams if item["tags"]["language"] == lan ] subs1 = [ item for item in subStreams if item["tags"]["language"] == lan ]
@ -399,7 +400,7 @@ def extract_subs(file, newfilePath, bitbucket):
logger.info("Extracting %s Subtitle from: %s" % (lan, file)) logger.info("Extracting %s Subtitle from: %s" % (lan, file))
cmd = "" cmd = ""
for item in command: for item in command:
cmd = cmd + " " + item cmd = cmd + " " + str(item)
logger.debug("calling command:%s" % (cmd)) logger.debug("calling command:%s" % (cmd))
result = 1 # set result to failed in case call fails. result = 1 # set result to failed in case call fails.
try: try:
@ -445,7 +446,7 @@ def Transcode_directory(dirName):
logger.info("Transcoding video: %s" % (file)) logger.info("Transcoding video: %s" % (file))
cmd = "" cmd = ""
for item in command: for item in command:
cmd = cmd + " " + item cmd = cmd + " " + str(item)
logger.debug("calling command:%s" % (cmd)) logger.debug("calling command:%s" % (cmd))
result = 1 # set result to failed in case call fails. result = 1 # set result to failed in case call fails.
try: try: