Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

RTSP_STREAM_AUDIO_ENABLED=true sets audio disabled #62

Open
culyzhao opened this issue Feb 24, 2021 · 0 comments
Open

RTSP_STREAM_AUDIO_ENABLED=true sets audio disabled #62

culyzhao opened this issue Feb 24, 2021 · 0 comments

Comments

@culyzhao
Copy link

culyzhao commented Feb 24, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant