Skip to content

Commit 013b5fc

Browse files
committed
fix ffprobe call to allow for rtmp inputs.
1 parent 171b299 commit 013b5fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ffmpeg/ffmpeg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (t *Transcoder) GetMetadata() (transcoder.Metadata, error) {
224224
input = "pipe:"
225225
}
226226

227-
args := []string{"-i", input, "-print_format", "json", "-show_format", "-show_streams", "-show_error"}
227+
args := []string{"-print_format", "json", "-show_format", "-show_streams", "-show_error", input}
228228

229229
cmd := exec.Command(t.config.FfprobeBinPath, args...)
230230
cmd.Stdout = &outb
@@ -246,7 +246,7 @@ func (t *Transcoder) GetMetadata() (transcoder.Metadata, error) {
246246
return metadata, nil
247247
}
248248

249-
return nil, errors.New("ffprobe binary not found")
249+
return nil, nil // errors.New("ffprobe binary not found")
250250
}
251251

252252
// progress sends through given channel the transcoding status

0 commit comments

Comments
 (0)