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
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ type Transcoder interface {
}
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{}
}