Sign inSign up

yonle/kotak_pajangan

By yonle

•Updated over 1 year ago

a magical box that opens browser and screams its pixels at rtmp streams.

Image
0

444

yonle/kotak_pajangan repository overview

⁠kotak pajangan

behold le screenshot

a magical box that opens browser and screams its pixels at rtmp streams. perfect for when you need to violently share cat videos at 2am.

what it do:

  • yeet web content into rtmp streams (like twitch/youtube)
  • autoplay what's on the web content (with sound)
  • make your cpu cry in 4k software rendering

āš ļø warning le cpu:

  • no graphics go brr (DRI-less)
  • your processor will sound like jet engine
  • everything rendered in slow-mo software (rip frames)

⁠requirement

minimum:

  • ram: 4 GB
  • cpu: 4 cores

recommended:

  • ram: 8 GB
  • cpu: 8 cores

⁠make it go brrr

u need docker⁠ or podman⁠. choose your weapon.

⁠build it (if u fancy)
# docker style
docker build -f Containerfile -t kotak .

# podman style
podman build -f Containerfile -t kotak .
⁠or steal prebuilt (lazy gang)
docker pull docker.io/yonle/kotak_pajangan:latest
# or
podman pull docker.io/yonle/kotak_pajangan:latest
⁠make le container

replace secrets:

  • STREAM: your rtmp sink (like rtmps://live.twitch.tv/app/ur_key)
  • WEB: thing to stream (try https://pointerpointer.com for funsies)
# docker magic
docker create --name pajangan \
  --cpus=4 -m 4g \
  -e "STREAM=rtmps://live.example.com/ur_key" \
  -e "WEB=https://webglsamples.org/aquarium/aquarium.html" \
  kotak  # or docker.io/yonle/kotak_pajangan:latest if stolen

# podman wizardry
podman create --name pajangan \
  --cpus=4 -m 4g \
  -e "STREAM=rtmps://live.example.com/ur_key" \
  -e "WEB=https://webglsamples.org/aquarium/aquarium.html" \
  docker.io/yonle/kotak_pajangan:latest

or if you wanna touchy:

# docker magic
docker create --name pajangan \
  --cpus=4 -m 4g \
  -e "STREAM=rtmps://live.example.com/ur_key" \
  -e "WEB=https://webglsamples.org/aquarium/aquarium.html" \
  -e "VNC=1" \
  -p 5900:5900 \
  kotak  # or docker.io/yonle/kotak_pajangan:latest if stolen

# podman wizardry
podman create --name pajangan \
  --cpus=4 -m 4g \
  -e "STREAM=rtmps://live.example.com/ur_key" \
  -e "WEB=https://webglsamples.org/aquarium/aquarium.html" \
  -e "VNC=1" \
  -p 5900:5900 \
  docker.io/yonle/kotak_pajangan:latest
⁠FIRE IN THE HOLE
docker start pajangan  # or
podman start pajangan

note: if you enabled vnc before, you could connect now to localhost:5900 with your vnc viewer

now watch cpu temp go šŸ“ˆ while browser screams at rtmp. perfect.

pro tip: if stream no work, check if:

  • url actually load (test in real browser)
  • rtmp key not expired
  • your cpu not actually on fire šŸ”„

made when bored at 3am. may contain traces of sleep deprivation. stream responsibly (or don't, idc).

Tag summary

Content type

Image

Digest

sha256:cb564c761…

Size

346.6 MB

Last updated

over 1 year ago

docker pull yonle/kotak_pajangan