Fixed bug in transcoder

This commit is contained in:
echel0n 2014-04-19 11:00:50 -07:00
parent e1a5e0b11b
commit aca17d6eb6

View file

@ -43,9 +43,9 @@ class Transcoder:
if ext in nzbtomedia.IGNOREEXTENSIONS:
logger.info("No need to transcode video type %s" % (ext))
continue
if ext == outputVideoExtension: # we need to change the name to prevent overwriting itself.
outputVideoExtension = '-transcoded' + outputVideoExtension # adds '-transcoded.ext'
newfilePath = os.path.normpath(name + outputVideoExtension)
if ext == nzbtomedia.OUTPUTVIDEOEXTENSION: # we need to change the name to prevent overwriting itself.
nzbtomedia.OUTPUTVIDEOEXTENSION = '-transcoded' + nzbtomedia.OUTPUTVIDEOEXTENSION # adds '-transcoded.ext'
newfilePath = os.path.normpath(name + nzbtomedia.OUTPUTVIDEOEXTENSION)
command = [ffmpeg, '-loglevel', 'warning', '-i', filePath, '-map', '0'] # -map 0 takes all input streams