mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 04:53:40 -05:00
mostly working but goofy color stuff broken
This commit is contained in:
parent
35c2a98835
commit
c7746071fc
2 changed files with 3 additions and 9 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue