Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant