Your shell uses the PATH environment variable to find the binary. exec.Command does not, IIRC.
-j
Your shell uses the PATH environment variable to find the binary. exec.Command does not, IIRC.
I'm trying to call ffmpeg from inside a Go application.I am able to execute the following command from the command prompt (inside of ~/vidconv):ffmpeg -i sample.mov sample.mp4However, when trying to accomplish the same task using the exec package, I'm hitting a roadblock.cmd := exec.Command("ffmpeg", "-i", job.Src, job.Dest)err := cmd.Start()
2013/11/19 01:23:48 Unable to execute ffmpeg command: exec: "ffmpeg": executable file not found in $PATH
But I did get the error code 1 when I put a non-existant input file.
Some suggestions: