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'],
'ACODEC':'aac','ACODEC_ALLOW':['libfaac'],'ABITRATE':None, 'ACHANNELS':2,
'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'
},
'iPad-1080p':{

View file

@ -304,6 +304,7 @@ def buildCommands(file, newDir):
s_mapped = []
subs1 = []
burnt = 0
n = 0
for lan in nzbtomedia.SLANGUAGES:
try:
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))
cmd = ""
for item in command:
cmd = cmd + " " + item
cmd = cmd + " " + str(item)
logger.debug("calling command:%s" % (cmd))
result = 1 # set result to failed in case call fails.
try:
@ -445,7 +446,7 @@ def Transcode_directory(dirName):
logger.info("Transcoding video: %s" % (file))
cmd = ""
for item in command:
cmd = cmd + " " + item
cmd = cmd + " " + str(item)
logger.debug("calling command:%s" % (cmd))
result = 1 # set result to failed in case call fails.
try: