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.
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.