Skip to content

Instantly share code, notes, and snippets.

@omeroot
Created October 24, 2015 12:43
Show Gist options
  • Save omeroot/0c42d3484ad67cdf151f to your computer and use it in GitHub Desktop.
Save omeroot/0c42d3484ad67cdf151f to your computer and use it in GitHub Desktop.
one line images to video
import subprocess
def sb_proc(input, output):
subprocess.call(['avconv -r 20 -i ' + input + ' -b:v 1000k ' + output ,''],shell=True)
sb_proc('input/new_%d.jpg','output/tt1.mp4');#new_%d.jpg ==> new_0.jpg,new_1.jpg,....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment