Skip to content

Instantly share code, notes, and snippets.

@aguegu
Created December 17, 2014 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aguegu/5d48fe5e22e5f60b0a31 to your computer and use it in GitHub Desktop.
Save aguegu/5d48fe5e22e5f60b0a31 to your computer and use it in GitHub Desktop.
python script to batch converting from mkv to mp4
#!/usr/bin/env python
from subprocess import call
for i in range(4, 25):
call(["avconv", "-i", "DFTV.Ipartment.S03E%02d.720p.HDTV.x264-NGB.mkv" % i, "-acodec", "aac", "-strict", "experimental", "DFTV.Ipartment.S03E%02d.720p.HDTV.x264-NGB.mp4" % i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment