Check error when reading ffmpeg version string
This commit is contained in:
parent
eacd0bcbd4
commit
2049d33e0c
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user