linuxOS_AP06/buildroot/package/rockchip/rkscript/gst-bootanim.sh
2025-06-03 12:28:32 +08:00

17 lines
360 B
Bash
Executable File

#!/bin/sh
VIDEO=$(ls /etc/bootanim.d/*.mp4 2>/dev/null)
[ -z "$VIDEO" ] && exit 1
VSINK_ARGS=kmssink
# Comment this for using overlay plane
VSINK_ARGS="$VSINK_ARGS force-modesetting=true"
# Uncomment this for fullscreen
# VSINK_ARGS="$VSINK_ARGS fullscreen=true"
gst-play-1.0 $VIDEO -q --no-interactive --audiosink=fakesink \
--videosink="$VSINK_ARGS"&