Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import commands
- for i in range(216):
- arg = []
- num = commands.getoutput("ls "+"{0:03d}".format(i+1)+"-*|wc -l")
- if (num[0]=='l'): continue
- for j in range(int(num)):
- arg.append("{0:03d}".format(i+1)+"-"+str((j+1))+".ts")
- args = "concat:"+"|".join(arg)
- print "ffmpeg -i \"" +args + "\" -c copy -y \"" + "{0:03d}".format(i+1) + ".ts\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement