rtsp-stream icon indicating copy to clipboard operation
rtsp-stream copied to clipboard

RTSP_STREAM_AUDIO_ENABLED=true sets audio disabled

Open culyzhao opened this issue 4 years ago • 0 comments

I found something wrong with https://github.com/riltech/streamer/blob/master/process.go

if p.audio { processCommands` = append(processCommands, "-an") }

-an means disable audio, so by default, the hls video has no audio, if sets RTSP_STREAM_AUDIO_ENABLED=false, -an will not be added to ffmpeg options, the hls audio plays normally.

culyzhao avatar Feb 24 '21 10:02 culyzhao