linuxOS_AP05/debian/test/rockchip-test/chromium/test_chromium_with_video.sh
2025-09-26 09:40:02 +08:00

19 lines
516 B
Bash
Executable File

#!/bin/bash -e
export DISPLAY=:0.0
#export GST_DEBUG=*:5
#export GST_DEBUG_FILE=/tmp/2.txt
export mpp_syslog_perror=1
KERNEL_VERSION=$(cat /proc/version)
if [[ $KERNEL_VERSION =~ "4.4" ]]; then
echo 0x100 > /sys/module/rk_vcodec/parameters/debug
else
echo 0x100 > /sys/module/rk_vcodec/parameters/mpp_dev_debug
fi
echo performance | tee $(find /sys/ -name *governor) /dev/null || true
chromium --no-sandbox file:///usr/local/test.mp4
echo "the governor is performance for now, please restart it........"