Its way simpler than i thought and even works in chrome, firefox, opera, mpv, mpc-be and vlc, the only ones out are edge/ie and safari still no webm?!

icecast2

  • apt-get install icecast2
  • follow the instructions to set password

ffmpeg

  • wget http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
  • unxz ffmpeg-git-64bit-static.tar.xz && tar xvf ffmpeg*.tar
  • cd ffmpeg*

ffmpeg WebM (VP8/Opus) still some funky things with vp9 :/

  • wget http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4
  • wget https://raw.githubusercontent.com/nwgat/scripts/master/icewebm.sh
  • nano icewebm.sh (change input file and icecast password/server:port)
  • chmod +x icewebm.sh
  • ./icewebm.sh

check the stream

  • open http://ninja.domain:8000/live.webm in your browser or mpv http://ninja.domain:8000/live.webm

should probably look something like this
Metadata: title : Big Buck Bunny, Sunflower version encoder : Lavf57.25.100 icy-pub : 0 icy-metadata : 1 Duration: N/A, start: 247.914000, bitrate: N/A Stream #0:0: Video: vp8, yuv420p, 1280x720, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default)

test stream (captured from live with wget)

(c) copyright 2008, Blender Foundation / www.bigbuckbunny.org

more info can be found at xiph