catalina

computer bimbo


suspected assocations
mastodon@catalina@selfy.army
streamhttps://trash.cloud
podcasthttps://anime.gripe
catgirl mahjong112024037


0x0ade
@0x0ade

sorry to my friends for cutting ahead in the queue but i have important news to share while i am still awake: the first ever cohost live stream!

stream over. thanks for watching! i cant wait to waste my spare time on improving this setup

live stream using mjpg

status updates:

  • im in bed and letting this run on auto pilot for a bit longer. my pc is at 100°C, my room is at 30°C, the current setup is a janky mess (see comments).
  • apparently 5 seconds per frame isnt slow enough anymore. my pc is still "alive" but even task manager has stopped responding.
  • stream shut down 15 minutes past midnight local (central european summer) time

catalina
@catalina

trying to replicate this and i feel like i've gotten 95% of the way there, but something's still missing:

FROM jrottenberg/ffmpeg:4.2-alpine

RUN apk --no-cache add \
    curl \
    tar \
    tini

RUN mkdir /mjpeg
WORKDIR /mjpeg

ARG MJPEG_VERSION=v1.3.0
RUN curl -OL https://github.com/blueimp/mjpeg-server/releases/download/${MJPEG_VERSION}/mjpeg-server-linux-amd64.tar.gz

RUN tar xvf mjpeg-server-linux-amd64.tar.gz

ENTRYPOINT ["tini", "--", "/mjpeg/mjpeg-server"]
CMD ["--help"]

EXPOSE 9000

you can then run something like

docker run -p 9000:9000 mjpg -- ffmpeg -re -i '/path/to/file/or/stream.poggers' -f mpjpeg -r 5 -vf scale=800:-1 -

and that serves out a multipart/x-mixed-replace at localhost:9000, but when i embed it into an <img> tag it doesn't render, even though the browser is continually loading data and if you save a section of it to disk you'll see a snapshot of the stream

let's make cohost.tv a reality šŸ™

EDIT: fixed it >:3 (basically -f mjpeg should be -f mpjpeg in the above)

time to sin


You must log in to comment.

in reply to @0x0ade's post:

i wish it was 😭 yes this is mjpg, not via ffmpeg but rather via a weird little mjpg streaming utility i found online - hence the weird aspect ratio and jank reverse proxy, as a proof of concept. my plan going forward (if i find the time for it) is to have my PC stream to my server, which then sends the same mjpg data to everyone at once, which should be better than this šŸ˜