mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-14 17:22:53 -07:00
add new ffmpeg options. fix #213
This commit is contained in:
parent
c3d5066157
commit
80038d4a84
2 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,8 @@ def Transcode_directory(dirName):
|
|||
outputAudioCodec = config.get("Transcoder", "outputAudioCodec").strip()
|
||||
outputAudioBitrate = config.get("Transcoder", "outputAudioBitrate").strip()
|
||||
outputSubtitleCodec = config.get("Transcoder", "outputSubtitleCodec").strip()
|
||||
outputFastStart = int(config.get("Transcoder", "outputFastStart"))
|
||||
outputQualityPercent = int(config.get("Transcoder", "outputQualityPercent"))
|
||||
if useNiceness:
|
||||
niceness = int(config.get("Transcoder", "niceness"))
|
||||
|
||||
|
@ -104,6 +106,12 @@ def Transcode_directory(dirName):
|
|||
if len(outputSubtitleCodec) > 0:
|
||||
command.append('-c:s')
|
||||
command.append(outputSubtitleCodec)
|
||||
if outputFastStart > 0:
|
||||
command.append('-movflags')
|
||||
command.append('+faststart')
|
||||
if outputQualityPercent > 0:
|
||||
command.append('-q:a')
|
||||
command.append(outputQualityPercent)
|
||||
else:
|
||||
command.append('-sn') # Don't copy the subtitles over
|
||||
command.append(newfilePath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue