mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 02:53:40 -05:00
lower stream fps and other minor fixes
This commit is contained in:
parent
3e734ac5c0
commit
7c9c534fb9
2 changed files with 4 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ services:
|
|||
volumes:
|
||||
- $PWD/caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config=
|
||||
- caddy_config:/config
|
||||
volumes:
|
||||
mediamtx_recordings:
|
||||
tiling_frontend_build:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ bash -c "DISPLAY=:99 xvfb-run \
|
|||
|
||||
sleep 3
|
||||
|
||||
until bash -c "DISPLAY=:99 ffmpeg -xerror -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 -flvflags no_duration_filesize rtmp://x.rtmp.youtube.com/live2/$(cat /home/stream/key.txt)"; do
|
||||
echo "FFMpeg died, restarting..."
|
||||
until bash -c "DISPLAY=:99 ffmpeg -xerror -f x11grab -r 30 -s 1920x1080 -draw_mouse 0 -i :99.0 -f pulse -ac 2 -i default -vcodec libx264 -preset faster -b:v 6000k -bufsize 12000k -framerate 30 -g 60 -pix_fmt yuv420p -acodec aac -f flv -flvflags no_duration_filesize rtmp://x.rtmp.youtube.com/live2/$(cat /home/stream/key.txt)"; do
|
||||
echo "Restarting FFmpeg..."
|
||||
sleep 1
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue