Check error when reading ffmpeg version string

This commit is contained in:
Gabe Kangas 2021-01-16 17:26:35 -08:00
parent eacd0bcbd4
commit 2049d33e0c

View File

@ -36,6 +36,9 @@ func verifyFFMpegPath(path string) error {
cmd := exec.Command(path)
out, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("unable to determine the version of your ffmpeg installation at %s. you may experience issues with video.", path)
}
response := string(out)
if response == "" {