mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 04:43:41 -05:00
make this not crash as much hopefully
This commit is contained in:
parent
5b17a6aef5
commit
8343f69bb8
2 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
services:
|
services:
|
||||||
mediamtx:
|
mediamtx:
|
||||||
|
restart: unless-stopped
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
build:
|
build:
|
||||||
context: ./mediamtx
|
context: ./mediamtx
|
||||||
|
|
@ -18,6 +19,7 @@ services:
|
||||||
- tiling_frontend_build:/usr/src/app/dist
|
- tiling_frontend_build:/usr/src/app/dist
|
||||||
live-stream:
|
live-stream:
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
|
restart: unless-stopped
|
||||||
env_file: .stream.env
|
env_file: .stream.env
|
||||||
depends_on:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
|
|
@ -31,6 +33,7 @@ services:
|
||||||
- tiling_frontend_build:/html
|
- tiling_frontend_build:/html
|
||||||
backend:
|
backend:
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
|
restart: unless-stopped
|
||||||
env_file: .backend.env
|
env_file: .backend.env
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,8 @@ pacmd update-sink-proplist VirtSink device.description=VirtSink
|
||||||
export CHROMIUM_FLAGS="--disable-software-rasterizer --disable-dev-shm-usage"
|
export CHROMIUM_FLAGS="--disable-software-rasterizer --disable-dev-shm-usage"
|
||||||
export LIBGL_ALWAYS_INDIRECT=1
|
export LIBGL_ALWAYS_INDIRECT=1
|
||||||
|
|
||||||
bash -c "sleep 5 && DISPLAY=:99 ffmpeg -f x11grab -r 60 -s 1920x1080 -draw_mouse 0 -i :99.0 -f pulse -ac 2 -i default -vcodec libx264 -preset medium -b:v 7000k -framerate 60 -g 2 -pix_fmt yuv420p -acodec aac -f flv rtmp://x.rtmp.youtube.com/live2/$(cat /home/stream/key.txt)" &
|
|
||||||
|
|
||||||
DISPLAY=:99 xvfb-run \
|
bash -c "DISPLAY=:99 xvfb-run \
|
||||||
--server-num 99 \
|
--server-num 99 \
|
||||||
-s "-nocursor -ac -screen 0 1920x1080x24" \
|
-s "-nocursor -ac -screen 0 1920x1080x24" \
|
||||||
dbus-launch chromium \
|
dbus-launch chromium \
|
||||||
|
|
@ -21,4 +20,6 @@ DISPLAY=:99 xvfb-run \
|
||||||
--window-position=0,0 \
|
--window-position=0,0 \
|
||||||
--hide-scrollbars \
|
--hide-scrollbars \
|
||||||
--autoplay-policy=no-user-gesture-required \
|
--autoplay-policy=no-user-gesture-required \
|
||||||
--app=http://localhost:4173
|
--app=http://localhost:4173" & disown
|
||||||
|
|
||||||
|
bash -c "sleep 3 && DISPLAY=:99 ffmpeg -f x11grab -r 60 -s 1920x1080 -draw_mouse 0 -i :99.0 -f pulse -ac 2 -i default -vcodec libx264 -preset medium -b:v 7000k -framerate 60 -g 2 -pix_fmt yuv420p -acodec aac -f flv rtmp://x.rtmp.youtube.com/live2/$(cat /home/stream/key.txt)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue