def ffmpeg_resize(video, output, size):
 cmd = [get_setting('FFMPEG_BINARY'), '-i', video, '-vf', ('scale=%d:%d' % (res[0], res[1])), output]
 subprocess_call(cmd)

def ffmpeg_resize ( video , output , size ) : cmd = [ get_setting ( 'FFMPEG_BINARY' ) , '-i' , video , '-vf' , ( 'scale=%d:%d' % ( res [ 0 ] , res [ 1 ] ) ) , output ] subprocess_call ( cmd )
resizes video to new size size and write the result in file output .