mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-14 17:22:53 -07:00
Added the ability to choose an x264 preset
This commit is contained in:
parent
3403967776
commit
2248538f3c
2 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,7 @@ def Transcode_directory(dirName):
|
|||
ignoreExtensions = (config.get("Transcoder", "ignoreExtensions")).split(',')
|
||||
outputVideoExtension = config.get("Transcoder", "outputVideoExtension")
|
||||
outputVideoCodec = config.get("Transcoder", "outputVideoCodec")
|
||||
outputVideoPreset = config.get("Transcoder", "outputVideoPreset")
|
||||
outputVideoFramerate = config.get("Transcoder", "outputVideoFramerate")
|
||||
outputVideoBitrate = config.get("Transcoder", "outputVideoBitrate")
|
||||
outputAudioCodec = config.get("Transcoder", "outputAudioCodec")
|
||||
|
@ -62,6 +63,9 @@ def Transcode_directory(dirName):
|
|||
if outputVideoCodec:
|
||||
command.append('-c:v')
|
||||
command.append(outputVideoCodec)
|
||||
if outputVideoCodec == 'libx264' and outputVideoPreset:
|
||||
command.append('-preset')
|
||||
command.append(outputVideoPreset)
|
||||
if outputVideoFramerate:
|
||||
command.append('-r')
|
||||
command.append(outputVideoFramerate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue