Roverr / rtsp-stream

Out of box solution for RTSP - HLS live stream transcoding. Makes RTSP easy to play in browsers.
MIT License
712 stars 167 forks source link

RTSP_STREAM_AUDIO_ENABLED=true sets audio disabled #62

Open culyzhao opened 3 years ago

culyzhao commented 3 years ago

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.