• Spin up a droplet at Digitalocean ($100 credit by using my link)
  • login as root
  • adduser --disabled-password --gecos "" livego
  • su livego
  • cd $HOME
  • wget https://github.com/gwuhaolin/livego/releases/download/0.0.15/livego_0.0.15_linux_amd64.tar.gz
  • tar zxvf livego_0.0.15_linux_amd64.tar.gz
  • exit
  • install /home/livego/livego /usr/bin/
  • git clone https://github.com/nwgat/livego-scripts.git
  • sudo cp livego-scripts/livego.service /etc/systemd/system/livego.service
  • systemctl daemon-reload
  • systemctl enable livego (enable service)
  • systemctl start livego (start service)
  • systemctl status livego (check status)

Generate room key

  • apt-get install curl jq
  • curl -s http://livegoip:8090/control/get?room=pi| jq -r '.data' (get the room key)

Setup the stream in obs studio or ffmpeg

  • RTMP: rtmp://livegoip:1935/live/room-key-hee

Test the stream

Download Zulu Java

  • wget https://cdn.azul.com/zulu-embedded/bin/zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf.tar.gz
  • mkdir -p /usr/lib/jvm/ && cd /usr/lib/jvm/
  • tar zxvf zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf.tar.gz

Configure Zlulu Java as default

  • update-alternatives --install /usr/bin/java java /usr/lib/jvm/zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf/bin/java 100
  • update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/zulu11.45.27-ca-jdk11.0.10-linux_aarch32hf/bin/javac 100
  • update-alternatives --display java && update-alternatives --display javac

Check if its installed

  • java -version && javac -version

the crontab way

as user

  • crontab -e
  • write @reboot python /path/to/your/script.py and save

as root

  • crontab -e
  • write @reboot python /path/to/your/script.py and save

the rc.local way

  • sudo su
  • nano /etc/rc.local
  • write python /path/to/your/script.py at the bottom and save

the systemd way

  • todo

  • Download Virtual Audio Cable (VAC)
  • https://vac.muzychenko.net/en/download.htm
  • Install VAC Free (works fine for one input and a few outputs)
  • Copy and paste mmsys.cpl into windows start menu and press enter
  • Under Playback, Right Click on Line 1 and select set as default device
  • Run Audio Repeater (MME)
  • in Wave in you choose Line 1 (Virtual Audio Cable)
  • in Wave out you chose the output device you want the sound to output too
  • Run another Audio Repeater (MME)
  • in Wave in you choose Line 1 (Virtual Audio Cable)
  • in Wave out you chose the output device you want the sound to output too
  • You can repeat the Audio Repeater (MME) part according to amount of output you want

Altenative you can use VB-Audio VoiceMeeter https://vb-audio.com/Voicemeeter/banana.htm

its not really a video in that sense but a sequence of images

Parts

  • Lolin D32 (or another board
  • a 128x64 OLED Display (SSD1306)

Windows

  • Install Shortcut
  • Install ImageMagic
  • install mpfshell
  • Open Shotcut > Video Mode (Click on Automatic)
  • Write OLED 128x64 in Name
  • Set Resolution to 128x64, Aspect to 2:1 and Frame rate to 10
  • now drop a video or gif into shotcut, you can now edit it
  • when your finished your edit, open export (ctrl+9) then Stock > Stills > PNG and save your file into a folder
  • now we run magick (imagemagic) in that folder you saved a sequence of png files
  • magick *.png -depth 16 seq%05d.pbm
  • mpfshell COM4 -n -c mput .*pbm (upload to ESP8266)

more info
https://www.twobitarcade.net/article/oled-displays-i2c-micropython/
https://www.twobitarcade.net/article/displaying-images-oled-displays/
https://randomnerdtutorials.com/micropython-oled-display-esp32-esp8266/

Receive $10 in credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence