Skip to content

Commit

Permalink
VLive: Decrease the latency for virtual live. v5.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 21, 2023
1 parent 0240c91 commit 5113161
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/virtual-live-stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ func (v *VLiveTask) doVLive(ctx context.Context, input *VLiveSourceFile) error {
if input.Type != SrsVLiveSourceTypeStream {
args = append(args, "-stream_loop", "-1")
}
args = append(args, "-re")
args = append(args, "-re",
"-fflags", "nobuffer", // Reduce the latency introduced by optional buffering.
)
// For RTSP stream source, always use TCP transport.
if strings.HasPrefix(input.Target, "rtsp://") {
args = append(args, "-rtsp_transport", "tcp")
Expand Down

0 comments on commit 5113161

Please sign in to comment.