Skip to content

Commit

Permalink
Change ffmpeg command
Browse files Browse the repository at this point in the history
  • Loading branch information
chazlarson authored Nov 30, 2023
1 parent a6a5040 commit 4eb58f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4eb58f8

Please sign in to comment.