Set the ffmpeg loglevel to warning so that it doesn't spam SABnzbd postprocessing logs

This commit is contained in:
Michael Johnson 2013-05-26 05:43:30 -03:00
parent 27b568b6ad
commit 512eb2e6a9

View file

@ -65,7 +65,7 @@ def Transcode_directory(dirName):
outputVideoExtension = '-transcoded' + outputVideoExtension # adds '-transcoded.ext'
newfilePath = os.path.normpath(name + outputVideoExtension)
command = [ffmpeg, '-i', filePath, '-map', '0']
command = [ffmpeg, '-loglevel', 'warning', '-i', filePath, '-map', '0']
if len(outputVideoCodec) > 0:
command.append('-c:v')
command.append(outputVideoCodec)