mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-29 19:18:28 -07:00
Fixed bug in transcoder
This commit is contained in:
parent
e1a5e0b11b
commit
aca17d6eb6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue