major refactoring + docker progress

This commit is contained in:
Micha Albert 2024-09-09 16:37:02 -04:00
parent ecb8a80f8b
commit e75f8c944a
No known key found for this signature in database
GPG key ID: 33149159A417BBCE
35 changed files with 227 additions and 104 deletions

7
live-stream/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM alpine:3.20
RUN apk add --no-cache gstreamer gst-plugins-bad
RUN apk add --no-cache ffmpeg
ENTRYPOINT [""]

6
live-stream/run.sh Normal file
View file

@ -0,0 +1,6 @@
gst-launch-1.0 -e wpesrc location="https://en.wikipedia.org/wiki/Main_Page" \
! videoconvert ! videoscale ! videorate \
! "video/x-raw, format=BGRA, width=854, height=480, framerate=30/1" \
! videoconvert \
! x264enc speed-preset=1 \
! filesink location=/dev/stdout | ffmpeg -re -y -i - -listen 1 -i rtmp://127.0.0.1:1936/active-input -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 -t 10 -f flv rtmp://x.rtmp.youtube.com/live2/no-way-am-i-doing-that-again