Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Validate explicitly provided ffmpeg path. Closes #490

Gabe Kangasf4ea25048ae8
diff --git a/config/config.go b/config/config.go
index a65d157992..3229c1bb43 100644
--- a/config/config.go
+++ b/config/config.go
@@ -193,7 +193,11 @@ func (c *config) GetMaxNumberOfReferencedSegmentsInPlaylist() int {
func (c *config) GetFFMpegPath() string {
if c.FFMpegPath != "" {
- return c.FFMpegPath
+ if err := verifyFFMpegPath(c.FFMpegPath); err == nil {
+ return c.FFMpegPath
+ } else {
+ log.Errorln(c.FFMpegPath, "is an invalid path to ffmpeg. Will try to use a copy in your path, if possible.")
+ }
}
// First look to see if ffmpeg is in the current working directory