Skip to content

Commit

Permalink
Merge pull request #6 from poptix/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Roverr authored Jan 11, 2022
2 parents 8c5f01f + 2213c30 commit 007ca6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func (p Process) Spawn(path, URI string) *exec.Cmd {
"tcp",
"-i",
URI,
"-f",
"lavfi",
"-i",
"anullsrc=channel_layout=stereo:sample_rate=44100",
"-vsync",
"0",
"-copyts",
Expand All @@ -65,7 +69,7 @@ func (p Process) Spawn(path, URI string) *exec.Cmd {
"-movflags",
"frag_keyframe+empty_moov",
}
if p.audio {
if (!p.audio) {
processCommands = append(processCommands, "-an")
}
processCommands = append(processCommands,
Expand Down

0 comments on commit 007ca6c

Please sign in to comment.