linuxOS_AP06/buildroot/package/rockchip/rkscript/gst-bootanim.sh

17 lines
360 B
Bash
Raw Normal View History

2025-06-03 04:28:32 +00:00
#!/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"&