mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
added ffmpeg command
This commit is contained in:
parent
84a7f7c0aa
commit
e07bad72fa
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ def Transcode_file(filePath):
|
||||||
config.read(configFilename)
|
config.read(configFilename)
|
||||||
|
|
||||||
duplicate = config.get("Transcoder", "duplicate")
|
duplicate = config.get("Transcoder", "duplicate")
|
||||||
|
ffmpeg = os.path.normpath(config.get("Transcoder", "ffmpeg"))
|
||||||
outputVideoExtension = config.get("Transcoder", "outputVideoExtension")
|
outputVideoExtension = config.get("Transcoder", "outputVideoExtension")
|
||||||
outputVideoCodec = config.get("Transcoder", "outputVideoCodec")
|
outputVideoCodec = config.get("Transcoder", "outputVideoCodec")
|
||||||
outputVideoFramrate = config.get("Transcoder", "outputVideoFramrate")
|
outputVideoFramrate = config.get("Transcoder", "outputVideoFramrate")
|
||||||
|
@ -29,8 +30,8 @@ def Transcode_file(filePath):
|
||||||
|
|
||||||
name, ext = os.path.splitext(file)
|
name, ext = os.path.splitext(file)
|
||||||
newfilePath = os.path.normpath(name + outputVideoExtension)
|
newfilePath = os.path.normpath(name + outputVideoExtension)
|
||||||
#ffmpeg = os.path.join(os.path.join(os.path.normpath(sys.argv[0]), ffmpeg), ffmpeg) #if not in path... got to figure out where this goes.
|
|
||||||
command = ['ffmpeg', '-i', filePath]
|
command = [ffmpeg, '-i', filePath]
|
||||||
if outputVideoCodec:
|
if outputVideoCodec:
|
||||||
command.append('-c:v')
|
command.append('-c:v')
|
||||||
command.append(outputVideoCodec)
|
command.append(outputVideoCodec)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue