Added deinterlacing
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user