Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
livest [2020/07/05 03:22] – [AWS] yairlivest [2020/09/05 13:49] (current) – [HLS] yair
Line 9: Line 9:
  
 ====HLS==== ====HLS====
 +
 +
 +===gstreamer/video.js===
 +the easiest stream i got was using hlssink
 +<code dot>
 +  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
 +</code>
 +
 +and video.js on the other site
 +<code javascript>
 +<video-js id=vid1 width=600 height=300 class="vjs-default-skin" controls>
 +  <source
 +     src="https://example.com/index.m3u8"
 +     type="application/x-mpegURL">
 +</video-js>
 +<script src="video.js"></script>
 +<script src="videojs-http-streaming.min.js"></script>
 +<script>
 +var player = videojs('vid1');
 +player.play();
 +</script>
 +</code>
 +
 +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
 +<code bash>
 +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
 +</code>
 +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=== ===optimizing===
   *https://www.wowza.com/blog/hls-latency-sucks-but-heres-how-to-fix-it   *https://www.wowza.com/blog/hls-latency-sucks-but-heres-how-to-fix-it
Line 28: Line 82:
 ====JSsip==== ====JSsip====
 https://tryit.jssip.net/ https://tryit.jssip.net/
- 
  
 ====SRT==== ====SRT====
  
 https://www.haivision.com/blog/all/rtmp-vs-srt/ -- > {{:haivision_white_paper_rtmp_vs_srt_comparing_latency_and_maximum_bandwidth.pdf}} 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 }} {{ youtube>SbvklCb0nNk?medium }}