Guest User

Untitled

a guest
Jul 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding:utf-8 -*-
  3.  
  4. import commands
  5.  
  6. files = commands.getoutput('ls -1 *.mp4').splitlines()
  7. for afile in files:
  8. print afile
  9. chapter = afile.replace('.mp4','') + '_chapters.xml'
  10. print chapter
  11. commands.getoutput('MP4Box afile %s -chap %s' % (afile, chapter))
Add Comment
Please, Sign In to add comment