diff --git a/routes.go b/routes.go index 581868a..225d87a 100644 --- a/routes.go +++ b/routes.go @@ -192,8 +192,7 @@ func stream(lineup *lineup) gin.HandlerFunc { } log.Infoln("Remuxing stream with ffmpeg") - - run := exec.Command("ffmpeg", "-i", channelURI.String(), "-codec", "copy", "-f", "mpegts", "pipe:1") + run := exec.Command("ffmpeg", "-i", "pipe:0", "-c:v", "copy", "-f", "mpegts", "pipe:1") log.Debugf("Executing ffmpeg as \"%s\"", strings.Join(run.Args, " ")) ffmpegout, err := run.StdoutPipe() if err != nil {