Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = "ffmpeg -i "concat:1.ts|2.ts" -vcodec copy -acodec copy temp.mp4"
- output,error = subprocess.Popen(command, universal_newlines=True,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE).communicate()
- command = ["ffmpeg", "-i", "concat:1.ts|2.ts", "-vcodec", "copy",
- "-acodec", "copy", "temp.mp4"]
- output,error = subprocess.Popen(
- command, universal_newlines=True,
- stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
- command = 'ffmpeg -i "concat:1.ts|2.ts" -vcodec copy -acodec copy temp.mp4'
- output,error = subprocess.Popen(
- command, universal_newlines=True, shell=True,
- stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
- #!/usr/bin/python
- import subprocess
- command = 'php -r "echo gethostname();"'
- p = subprocess.Popen(command, universal_newlines=True, shell=True,
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- text = p.stdout.read()
- retcode = p.wait()
- print text
- python test.py
- apollo
- ffmpeg -i "concat:1.ts|2.ts" -vcodec copy -acodec copy temp.mp4
- import subprocess; subprocess.call(`./script.sh`; shell=True)
Add Comment
Please, Sign In to add comment