I've been trying to pass a command that works only with literal double quotes in the commandline around the "concat:file1|file2"
argument for ffmpeg. I've been trying to pass a command , This command is only available on the command line ffmpeg Of "concat:file1|file2"
The literal double quotation marks around the parameter .
I cant however make this work from python with subprocess.Popen()
. however , I can't use the subprocess.Popen()
python Finish the work .Anyone have an idea how one passes quotes into subprocess.Popen? Anyone knows how to pass quotation marks to subprocess.Popen?
Here is the code: This is the code. :
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()
When I do this, ffmpeg won't take it any other way other than quotes around the concat segement. When I do this ,ffmpeg In addition to the concat Quote around paragraph , Not in any other way .Is there a way to successfully pass this line to subprocess.Popen command? Is there any way to successfully pass this line to subprocess.Popen command ?