mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Merge pull request #138 from nightexcessive/patch-1
Set the ffmpeg loglevel to warning so that it doesn't spam SABnzbd postp...
This commit is contained in:
commit
421a7fed62
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ def Transcode_directory(dirName):
|
||||||
outputVideoExtension = '-transcoded' + outputVideoExtension # adds '-transcoded.ext'
|
outputVideoExtension = '-transcoded' + outputVideoExtension # adds '-transcoded.ext'
|
||||||
newfilePath = os.path.normpath(name + outputVideoExtension)
|
newfilePath = os.path.normpath(name + outputVideoExtension)
|
||||||
|
|
||||||
command = [ffmpeg, '-i', filePath, '-map', '0']
|
command = [ffmpeg, '-loglevel', 'warning', '-i', filePath, '-map', '0']
|
||||||
if len(outputVideoCodec) > 0:
|
if len(outputVideoCodec) > 0:
|
||||||
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