Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding:utf-8 -*-
- import commands
- files = commands.getoutput('ls -1 *.mp4').splitlines()
- for afile in files:
- print afile
- chapter = afile.replace('.mp4','') + '_chapters.xml'
- print chapter
- commands.getoutput('MP4Box afile %s -chap %s' % (afile, chapter))
Add Comment
Please, Sign In to add comment