process = ( ffmpeg .input() .setpts('0.5*PTS') # double the speed .output(r=str(fps*2)) # fps: original video fps )