diff --git a/ffmpeg/ffmpeg.go b/ffmpeg/ffmpeg.go index 201f6aa161..3593661539 100755 --- a/ffmpeg/ffmpeg.go +++ b/ffmpeg/ffmpeg.go @@ -862,6 +862,19 @@ func hasVideoMetadata(fname string) bool { return !fileInfo.IsDir() } +func hasVideoMetadata(fname string) bool { + if strings.HasPrefix(strings.ToLower(fname), "pipe:") { + return false + } + + fileInfo, err := os.Stat(fname) + if err != nil { + return false + } + + return !fileInfo.IsDir() +} + func (t *Transcoder) Transcode(input *TranscodeOptionsIn, ps []TranscodeOptions) (*TranscodeResults, error) { t.mu.Lock() defer t.mu.Unlock()