this text discribes how to show your live video stream on your homepage

known issues:
access and conservation to an ipv6 address assigned WAN is difficult, when your cam runs in a ip4 area. talk to your provider to get an ipv4. (mapping) What you need (difficulty level: moderate)
IP Cam with rtsp support or usb cam and rtsp server
Router with ddns and port forwarding
server and ffmpeg software (linux)
howto: usb cam to rtsp stream
There are several cams that supporting rtsp. First connect IP cam to your network, if this done, setup ddns with provider of your choice. Then in router forward rtsp port (mostly 554) to your cams IP.
Login to your server and write a shell script and execute to generate live stream from feed source:
ffmpeg -nostdin -fflags nobuffer -rtsp_transport tcp -i rtsp://user:pass@domain.ddns.net:88/videoMain
-reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 1024
-c:v libx264 -flags +cgop -g 30 -hls_flags delete_segments livefeed.m3u8
Note that a URL prefix may be used for channels
Next step is to setup video source to your livefeed.m3u8 playlist in your player.
This players support HLS:
video.js
flowplayer
That is it!
No Internet available?
You can setup a mobile 4G/LTE router to accces your stream. Like TP Link TL-MR6400 and reolink RLC-410W works together fine.
transport from windows usb video device to (LAN IPV4)remote client:
get devices with:ffmpeg -list_devices true -f dshow -i dummy
Example stream (with your hosts lan ip running ffmpeg):
ffmpeg -re -fflags nobuffer -f dshow -framerate 30 -i video="Live! Cam Socialize HD 1080 (VF0680)"
-s hd720 -preset ultrafast -vcodec libx264 -pix_fmt yuv420p -b:v 900k -tune zerolatency -b 900k -r 30 -f mpegts
udp://192.168.178.36:1234?pkt_size=1316&ttl=20
use vlc open stream: udp://@192.168.178.36:1234?pkt_size=1316&buffer_size=65535&ttl=20
or ffmpeg to further transcode
rtsp example (windows):
Download rtsp server: rtsp-simple-server
Forward port 8554
1st start rtsp-simple-server(.exe)
than push ffmpeg stream, replace content after video=" with your src cam string:ffmpeg -rtbufsize 148M -f dshow -i video="Live! Cam Socialize HD 1080 (VF0680)" -s hd720 -preset fast -c:v libx264
-r 30 -threads 2 -vcodec libx264 -pix_fmt yuv420p -threads 2 -pix_fmt yuv420p -tune zerolatency -b:v 512k
-maxrate 900k -bufsize 3M -f rtsp rtsp://localhost:8554/mystream
restrictions:
it is prohibited to stream copyrighted material, if you are not licensed to do it.
you may need to increase buffer and play around with values for best result, watch rtsp://yourddns.host.uvw:8554/mystream or transcode with any client or player. you can integrate many vf filters in your video such as image overlay, text layer and more ... even dynamic text refreshing ... consult the ffmpeg docs for further information.