diff --git a/ffmpeg-files.py b/ffmpeg-files.py index d04c0f2..ab55cf3 100644 --- a/ffmpeg-files.py +++ b/ffmpeg-files.py @@ -7,7 +7,8 @@ def clearScreen(): def convertFilesInImport(): for filename in os.listdir('input'): #os.path.splitext(filename)[0] gets ride of file extension - ffmpegcmd = getFfmpegPath() + " -i " + getInputPath() + filename + " -b " + getBitrateSetting() + " -minrate " + getBitrateSetting() + " -maxrate " + getBitrateSetting() + " -bufsize " + getBitrateSetting() + " -vcodec libx264" + getAudioSetting() + " -y " + getOutputPath() + os.path.splitext(filename)[0] + ".mp4" + #yadiff is for deinterlace + ffmpegcmd = getFfmpegPath() + " -i " + getInputPath() + filename + " -vf yadif -b " + getBitrateSetting() + " -minrate " + getBitrateSetting() + " -maxrate " + getBitrateSetting() + " -bufsize " + getBitrateSetting() + " -vcodec libx264" + getAudioSetting() + " -y " + getOutputPath() + os.path.splitext(filename)[0] + ".mp4" os.system(ffmpegcmd) def getFfmpegPath():