Skip to content

Instantly share code, notes, and snippets.

@aguegu
Created December 17, 2014 03:00
Show Gist options
  • 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