mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 03:23:40 -05:00
IT WORKS!!!111!!!1!!1
This commit is contained in:
parent
1c91c56d30
commit
5774a351e1
4 changed files with 48 additions and 23 deletions
|
|
@ -1,20 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
export CHROMIUM_FLAGS="--disable-software-rasterizer --disable-dev-shm-usage"
|
||||
dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address
|
||||
export LIBGL_ALWAYS_INDIRECT=1
|
||||
dbus-daemon --config-file=/usr/share/dbus-1/system.conf &
|
||||
|
||||
bash -c "sleep 5 && DISPLAY=:99 ffmpeg -f x11grab -r 30 -s 1920x1080 -draw_mouse 0 -i :99.0 -f alsa -ac 2 -i hw:0 -vcodec libx264 -preset medium -b:v 7000k -framerate 30 -g 2 -pix_fmt yuv420p -acodec aac -f flv rtmp://x.rtmp.youtube.com/live2/$YT_STREAM_KEY" &
|
||||
echo $YT_STREAM_KEY >/home/stream/key.txt
|
||||
|
||||
DISPLAY=:99 xvfb-run \
|
||||
--server-num 99 \
|
||||
-s "-nocursor -ac -screen 0 1920x1080x24" \
|
||||
dbus-launch chromium \
|
||||
--temp-profile \
|
||||
--window-size=1920,1080 \
|
||||
--disable-gpu \
|
||||
--window-position=0,0 \
|
||||
--no-sandbox \
|
||||
--hide-scrollbars \
|
||||
--disable-setuid-sandbox \
|
||||
--app=http://web-frontend:4173
|
||||
chown stream /home/stream/key.txt
|
||||
|
||||
chown stream /home/stream/user_run.sh
|
||||
|
||||
sudo -i -u stream bash /home/stream/user_run.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue