Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor screen recorder config changes #1434

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions static/build/.tmp_update/script/screen_recorder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ show_indicator() {
toggle_ffmpeg() {
sync
if pgrep -f "ffmpeg -f fbdev -nostdin" >/dev/null; then
cpuclock 1200
pkill -2 -f "ffmpeg -f fbdev -nostdin"
killall -9 imgpop

Expand All @@ -171,9 +172,8 @@ toggle_ffmpeg() {
show_indicator
fi

echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

ffmpeg -f fbdev -nostdin -framerate 25 -i /dev/fb0 -vf "vflip,hflip, format=yuv420p" -c:v libx264 -preset ultrafast -tune zerolatency -maxrate 2000k -bufsize 6000k -threads 0 "$(date +%Y%m%d%H%M%S).mp4" >/dev/null 2>&1 &
cpuclock 1600
ffmpeg -f fbdev -nostdin -framerate 25 -i /dev/fb0 -vf "vflip,hflip, format=yuv420p" -c:v libx264 -preset superfast -maxrate 3000k -bufsize 6000k -threads 2 "$(date +%Y%m%d%H%M%S).mp4" >/dev/null 2>&1 &

sleep 0.5

Expand Down
Loading