mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Check error when reading ffmpeg version string
This commit is contained in:
parent
eacd0bcbd4
commit
2049d33e0c
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue