
The reason for wanting to increase the resolution is so that it can be combined later with higher resolution videos.

There are also some print commands only in place for troubleshooting. The value for args is: ['-i', '/var/such that the resultant command being passed to subprocess.Popen is: ['ffmpeg', '-y', '-loglevel', 'verbose', '-i', '/var/The value of loglevel is verbose only for troubleshooting but is intended to run as fatal. The function I use to execute the FFMPEG command is def ffmpeg(args):įfmpeg = subprocess.Popen(command, stderr=subprocess.PIPE ,stdout=subprocess.PIPE, universal_newlines=True) the FFMPEG command runs fine from the command line but fails within the python script. Somehow, I need to run the executable, wait until it asks for user input and then supply that input.I'm trying to run a FFMPEG script from within python 3.5.2. When I call the Fortran executable, it asks for user input as follows: fortranExecutableĮnter name of input file: 'this is where I want to put argument 1'Įnter name of output file: 'this is where I want to put argument 2' However, when I try to run this, I get the following error: File "gridGen.py", line 216, in įile "/opt/apps/python/epd/7.2.2/lib/python2.7/subprocess.py", line 737, in communicateĪny suggestions or pointers are greatly appreciated. Ps = subprocess.Popen('fortranExecutable',shell=True,stdin=subprocess.PIPE)

Here is a minimal example to show what I tried last #!/usr/bin/python I've spent a few hours reading through similar questions and trying different things, but haven't had any luck. I'm trying to use Python to automate a process that involves calling a Fortran executable and submitting some user inputs.
