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

Delaying the stream utilizing on_publish hook #349

Open
yildizsc opened this issue May 22, 2022 · 1 comment
Open

Delaying the stream utilizing on_publish hook #349

yildizsc opened this issue May 22, 2022 · 1 comment

Comments

@yildizsc
Copy link

yildizsc commented May 22, 2022

Hi @sergey-dryabzhinsky,

Thanks for your effort in this RTMP module. I have a special case. I want to delay the stream using on_publish hook due to the fact that I want to extract the audio and send it to the transcription service for subtitles. That is, the stream needs to be delayed so that transcriptions and the video would meet at the same time. Right now I can do it with ffmpeg but this is not ideal solution because there are multiple roundtrips between ffmpeg and RTMP server to accomplish the delay. I am using on_publish and put there sleep for a couple of seconds and make it wait.

If this is not possible, is there a way to increase the timeout of on_publish call. AFAIK, there is 10 secs. It would be good if it would be parametric so that I can customize it. If I need 30 secs for delay, I need to create 3 delayer applications on RTMP side.

I wish I helped with this issue but unfortunately, I do not know C lang. I search for some specific keywords such as timeout, on_publish, etc but due to the fact that the codebase is very sophisticated to me, there is no way for me.

Thanks in advance.

@yildizsc
Copy link
Author

updating netcall_timeout directive seems working thanks to @fatihorhan

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