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
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
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
