=====live====
SRT Hub Cloud Based Media Routing | Haivision
[[https://en.wikipedia.org/wiki/List_of_streaming_media_systems#Servers|List_of_streaming_media_systems]] {{:pasted:20200628-205004.png?750}} ====HLS==== ===gstreamer/video.js=== the easiest stream i got was using hlssink
gst-launch-1.0 videotestsrc is-live=true ! x264enc ! mpegtsmux \
! hlssink playlist-root=https://your-site.org \
location=/srv/hls/hlssink.%05d.ts \
playlist-location=/srv/hls/playlist.m3u8
and video.js on the other site
pipe video from rtsp ueye
gst-launch-1.0.exe rtspsrc location=rtsp://169.254.37.87:8554/mystream ! fakesink ! fpsdisplaysink
===Javelin===
[[https://gitlab.com/valeth/javelin|gitlab javelin]]
install rust on server
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
you'll probably need a few deps, like
sudo apt install libssl-dev
cargo install javelin
# add an user with an associated stream key to the database
javelin --permit-stream-key="idiotstream:cc144117a8fe59af0f7f34ce9eca8f05" --rtmp-bind 46.101.213.56 --http-bind 46.101.213.56
# start the server if not running
javelin run
couldn't get server/client to access 8080 to see the stream . trying the docker-compose way
===streamline===
https://github.com/streamlinevideo/streamline
===opencv>ffmpeg>hls===
[[https://www.nobile-engineering.com/wordpress/index.php/2018/10/30/video-streaming-hls-apache-nginx/|video-streaming-hls-apache-nginx]]\\
[[https://github.com/andreanobile/opencv_ffmpeg_streaming|opencv_ffmpeg_streaming]]
===optimizing===
*https://www.wowza.com/blog/hls-latency-sucks-but-heres-how-to-fix-it
*https://streaminglearningcenter.com/blogs/choosing-the-optimal-segment-duration.html
*https://github.com/ant-media/Ant-Media-Server/wiki/How-to-Reduce-Latency-in-RTMP-to-HLS%3F
===Shaka===
{{youtube>DyIlc2ghluM?medium}}
https://github.com/google/shaka-streamer\\
https://github.com/google/shaka-packager\\
https://google.github.io/shaka-packager/html/index.html
====jsmpeg====
https://github.com/phoboslab/jsmpeg\\
https://github.com/mbrumlow/webbot
====JSsip====
https://tryit.jssip.net/
====SRT====
https://www.haivision.com/blog/all/rtmp-vs-srt/ -- > {{:haivision_white_paper_rtmp_vs_srt_comparing_latency_and_maximum_bandwidth.pdf}}
[[https://www.collabora.com/news-and-blog/news-and-events/low-latency-streaming-of-security-feeds-with-srt-and-gstreamer.html| gst and srt]]
{{ youtube>SbvklCb0nNk?medium }}
https://github.com/Haivision/srt/blob/master/docs/why-srt-was-created.md
UDP based transport. not used to broadcast to many.
low latency and packet recovery between two points.
[[https://github.com/Edward-Wu/srt-live-server|server]]
start the [[https://github.com/Haivision/srt|srt + server]]
https://github.com/Haivision/srt
cd srt && ./configure && make
./srt-live-transmit udp://:1234 srt://:4201 -v
start a producer using ffmpeg [[https://www.bogotobogo.com/FFMpeg/ffmpeg_video_test_patterns_src.php|lavfi]] fakesource
ffmpeg -f lavfi -re -i testsrc=duration=300:size=1280x720:rate=30 \
-pix_fmt yuv420p -c:v libx264 -b:v 1000k -g 30 -keyint_min 120 -profile:v baseline -preset veryfast \
--f mpegts "udp://127.0.0.1:1234?pkt_size=1316"
watch on vlc
srt://127.0.0.1:4201
http://en.kiloview.com/product/E2-H.264-HDMI-to-IP-Wired-Video-Encoder-59.html
{{:pasted:20200627-210235.png?300}}
=====servrs providers=====
====AZURE====
does support SRT, unlike aws. with thier end of life RTMP coming iin 2021
{{:pasted:20200705-002205.png}}
https://azure.microsoft.com/en-us/blog/what-s-new-in-azure-media-services-video-processing/
====AWS====
===Kinesis===
**Q: What’s the difference between Kinesis Video Streams and AWS Elemental MediaLive?**\\
AWS Elemental MediaLive is a broadcast-grade live video encoding service. It lets you create high-quality video streams for delivery \\
to broadcast televisions and internet-connected multiscreen devices, like connected TVs, tablets, smart phones, and set-top boxes. \\
The service functions independently or as part of AWS Media Services.
Amazon Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for real-time and batch-driven machine learning (ML), \\
video playback, analytics, and other processing. It enables customers to build machine-vision based applications that power smart homes, \\
smart cities, industrial automation, security monitoring, and more.
[[https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/hls-playback.html|hls-playback]]\\
[[https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/how-it-works.html|kinesis how-it-works]]\\
[[https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/examples-gstreamer-plugin.html|examples-gstreamer-plugin]]\\
===elemental===
https://aws.amazon.com/elemental-conductor/
===medialive===
https://docs.aws.amazon.com/medialive/latest/apireference
**pricing** is based on input/ouput encoding setiings > https://aws.amazon.com/medialive/pricing/
====ANTMEDIA===
[[https://github.com/ant-media/Ant-Media-Server/wiki|wiki]]
*pull RTSP streams from IP Cameras easily and it can be configured on the management panel. [[https://github.com/ant-media/Ant-Media-Server/wiki/IP-Camera|wiki]]\\
*pull live streams from external sources [[https://github.com/ant-media/Ant-Media-Server/wiki/External-Stream-Sources|wiki]]
[[https://github.com/ant-media/Ant-Media-Server/wiki/Publishing-Live-Streams|HLS Publishing]] >> [[https://github.com/ant-media/Ant-Media-Server/wiki/HLS-Playing|HLS Playing]]
[[https://github.com/ant-media/Ant-Media-Server/wiki/Open-Broadcaster-Software-Publishing|OBS RTMP to AntM]]
[[https://marketplace.digitalocean.com/apps/ant-media-server-community-edition#getting-started|digitalOcean droplet]]
**pricing** > https://antmedia.io/#selfhosted {{:pasted:20200620-174823.png?200&linkonly|png}}
=====Hardware=====
===teradek===
[[https://teradek.com/collections/vidiu-family|Teradek Vidiu Pro]]
{{:pasted:20200620-182251.png}}
[[https://github.com/ant-media/Ant-Media-Server/wiki/Teradek-Publishing|Teradek RTMP to antmedia]]
===axis===
[[https://www.axis.com/products/axis-p7216|analog/16ch/h264]] > {{:ds_p7216_t10103331_en_1907.pdf|p7216}}
{{:pasted:20200620-182340.png}}
analog/4ch/300$ [[https://www.axis.com/products/axis-m7104|m7104]]
{{:pasted:20200620-182558.png}}
===china===
[[https://www.aliexpress.com/wholesale?catId=0&SearchText=h264+encoder|ALIexpress]]
====questions====
where are most clients?
====OBS====
https://obsproject.com/forum/resources/how-to-do-hls-streaming-in-obs-open-broadcast-studio.945/
====NEws====
* https://securitytoday.com/directory/list/ip-video.aspx
* [[https://securitytoday.com/articles/2019/10/14/onvif-suspends-dahua-and-hikvision.aspx|onvif-suspends-dahua]]
==== scenario ====
{{drawio>liveset}}
====test====
*https://thelive.cam
*http://thelive.cam:5080/#/applications/LiveApp
{{:pasted:20200624-200719.png}}
{{:pasted:20200624-200727.png}}
{{:pasted:20200624-200737.png}}
{{:pasted:20200624-200749.png}}
{{:pasted:20200624-200755.png}}