in reply to Video streaming module
Most cameras provide an RTSP stream. You can convert that to HLS using ffmpeg: https://girishjoshi.io/post/ffmpeg-rtsp-to-hls/
Then just point the browser to that directory. I have not played with that for quite some time, but you can look at my old code for how i played around with that: https://cavac.at/public/mercurial/pagecamel_framework/file/tip/lib/PageCamel/Web/Livestream
The nice thing about HLS is that the video is already split in many small files on the disk. So if you want a feature to make a short clip from the stream, basically all you need to do is copy the relevant video files and the corresponding part of the m3u8 text file into a new directory and you're done.
There is also https://github.com/video-dev/hls.js/#player-integration for a list of players with added features.
|
|---|