mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 03:23:40 -05:00
bug squashing
This commit is contained in:
parent
fa4bd9e7c1
commit
8b4f6b8d26
4 changed files with 9 additions and 5 deletions
|
|
@ -22,4 +22,9 @@ bash -c "DISPLAY=:99 xvfb-run \
|
|||
--autoplay-policy=no-user-gesture-required \
|
||||
--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)"
|
||||
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..."
|
||||
sleep 1
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue