
However, based on the “command not found” error you got, it does not look like ffmpeg is registered in $PATH in whatever environment you are in. this was what I meant: let output = try ( $ ffmpeg -nostdin -i '.' -c:v copy -c:a copy '.' mp4 extension instead) and run in Terminal using swift ~/path/to/FfmpegCommand.swift.Īssuming the command you would use in terminal is. 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. Here is a simplified version of my script that still encounters the issue: Here is the video I'm testing the script with: Dropbox - File Deleted Any insight on this would be much appreciated.įfmpeg is installed on my system through Homebrew: brew tap slhck/ffmpegīrew install slhck/ffmpeg/ffmpeg -with-aom -with-fdk-aac I'm not entirely sure how to fix this, to get the full command to run and then exit once finished. 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. They have been ignored, or old ones used instead.Īn alternative idea I tried was to use the ubuntu 18.04 image.I'm having some issues with a script I'm trying to write to automate some of my ffmpeg video commands. N: See apt-secure(8) manpage for repository creation and user configuration details.Į: Some index files failed to download. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. W: The repository ' jessie-backports Release' does not have a Release file. Sudo apt-get update & sudo apt-get upgrade -y Sudo sh -c 'echo "deb jessie-backports main" > /etc/apt/sources.list' Both give me the same error: #!/bin/bash -eo pipefail I read somewhere to use “docker run” to install ffmpeg directly onto the image but I’m not experienced in docker either. W: Failed to fetch Unable to find expected entry ‘main/binary-amd64/Packages’ in Release file (Wrong sources.list entry or malformed file)

Sudo add-apt-repository -y ppa:jonathonf/ffmpeg-4 Sudo apt-get install software-properties-common I tried the following as a test: version: 2 I can’t use a docker image for ffmpeg because that’s not how our system runs. Previous dev set up environment and I need to add ffmpeg to our image since we run a system call for ffmpeg.
