Warn if ffmpeg can't be found

This commit is contained in:
jvoisin 2020-04-10 15:36:26 +02:00 committed by Deluan Quintão
parent 09985453aa
commit b34523e196

View File

@ -16,6 +16,11 @@ type Transcoder interface {
} }
func New() Transcoder { func New() Transcoder {
path, err := exec.LookPath("ffmpeg")
if err != nil {
log.Error("Unable to find ffmpeg", err)
}
log.Debug("Found ffmpeg", "path", path)
return &ffmpeg{} return &ffmpeg{}
} }