lal icon indicating copy to clipboard operation
lal copied to clipboard

streaming ffmpeg to lal on demand ?

Open goliveok opened this issue 2 years ago • 3 comments

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.

goliveok avatar May 22 '22 18:05 goliveok

What protocol is FFmpeg pulling?

q191201771 avatar May 23 '22 01:05 q191201771

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 ?

goliveok avatar May 23 '22 18:05 goliveok

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 avatar May 24 '22 01:05 q191201771

超时移入 #37 管理。

q191201771 avatar Mar 01 '23 10:03 q191201771