I'm having some issues with a script I'm trying to write to automate some of my ffmpeg video commands. I need to run ffmpeg via Process and in doing so, I've noticed that once it starts running it never does anything (as it never even creates the output file) and never stops running. I'm not entirely sure how to fix this, to get the full command to run and then exit once finished. Any insight on this would be much appreciated.
ffmpeg is installed on my system through Homebrew:
brew tap slhck/ffmpeg brew install slhck/ffmpeg/ffmpeg --with-aom --with-fdk-aac
Here is the video I'm testing the script with: https://www.dropbox.com/s/vyo5oxm82hy7xqd/Big%20Buck%20Bunny.mkv?dl=0
Here is a simplified version of my script that still encounters the issue:
To test, replace the placeholders in the script with the path to the video and the path to it's output (usually, I just specify the same path as the input, but with an
.mp4 extension instead) and run in Terminal using