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

streaming ffmpeg to lal on demand ? #178

Closed
goliveok opened this issue May 22, 2022 · 4 comments
Closed

streaming ffmpeg to lal on demand ? #178

goliveok opened this issue May 22, 2022 · 4 comments

Comments

@goliveok
Copy link

hi
Is it possible to add this option?

It is a permanent connection with ffmpeg. It starts on demand streaming when the first client connects and stops when the last client exits. not stop ffmpeg to rtmp lal ?

This option to reduce consumption download when multi urls stream.

Thank you for this excellent program.
You always surprise us with something new.

@q191201771
Copy link
Owner

What protocol is FFmpeg pulling?

@goliveok
Copy link
Author

example:

ffmpeg to lal rtmp:
ffmpeg -i stream-url -c copy -f flv rtmp://localhosst:1935/live/test1

after lal send to all clients.
It starts on demand streaming from ffmpeg when the first client connects and stops when the last client exits. not stop ffmpeg to rtmp lal ?

@q191201771
Copy link
Owner

Currently, you can get the first client connects event and the last client exits event by HTTP-Notify(on_sub_start, on_sub_stop).
And you can start or stop FFmpeg when these HTTP-Notify triggers.

Also, lalserver will add HTTP-API to support start and stop FFmpeg.

@q191201771 q191201771 mentioned this issue Mar 1, 2023
33 tasks
@q191201771
Copy link
Owner

超时移入 #37 管理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment