mostly working but goofy color stuff broken

This commit is contained in:
Micha Albert 2024-09-10 16:39:28 -04:00
parent 35c2a98835
commit c7746071fc
No known key found for this signature in database
GPG key ID: 33149159A417BBCE
2 changed files with 3 additions and 9 deletions

View file

@ -2,7 +2,7 @@ import subprocess
import time import time
import requests import requests
time.sleep(10) time.sleep(8)
active_stream = requests.get("http://backend:8000/api/v1/active_stream").text.replace('"', '') active_stream = requests.get("http://backend:8000/api/v1/active_stream").text.replace('"', '')
print(active_stream) print(active_stream)

View file

@ -3,12 +3,6 @@
sleep 1 sleep 1
LIBGL_ALWAYS_SOFTWARE=true gst-launch-1.0 -e wpesrc location="http://web-frontend:4173/" \ LIBGL_ALWAYS_SOFTWARE=true gst-launch-1.0 -e wpesrc location="http://web-frontend:4173/" \
! queue \
! videoconvert ! videoscale ! videorate \ ! videoconvert ! videoscale ! videorate \
! "video/x-raw, format=BGRA, width=1920, height=1080, framerate=30/1" \ ! "video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1" \
! videoconvert \ ! filesink location=/dev/stdout | ffmpeg -re -y -f rawvideo -pixel_format nv12 -video_size 1920x1080 -framerate 30 -i - -listen 1 -i rtmp://0.0.0.0:1936/active-input -filter_complex "[0:v][0:v]overlay=-50:0[bg]; [bg][0:v]overlay=-50-W,format=nv12[out]" -map "[out]" -c:v libx264 -x264-params keyint=60 -preset ultrafast -b:v 6800k -c:a copy -map 1:a:0 -movflags faststart -f flv -pix_fmt nv12 rtmp://x.rtmp.youtube.com/live2/$YT_STREAM_KEY
! x264enc speed-preset=1 \
! filesink location=/dev/stdout | ffmpeg -re -y -i - -listen 1 -i rtmp://0.0.0.0:1936/active-input -c:v copy -c:a libmp3lame -map 0:v:0 -map 1:a:0 -g 90 -framerate 30 -movflags faststart -bufsize 14000k -f flv rtmp://x.rtmp.youtube.com/live2/$YT_STREAM_KEY