xref: /OK3568_Linux_fs/buildroot/package/rockchip/rkscript/gst-bootanim.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3VIDEO=$(ls /etc/bootanim.d/*.mp4 2>/dev/null)
4
5[ -z "$VIDEO" ] && exit
6
7VSINK_ARGS=kmssink
8
9# Comment this for using overlay plane
10VSINK_ARGS="$VSINK_ARGS force-modesetting=true"
11
12# Uncomment this for fullscreen
13# VSINK_ARGS="$VSINK_ARGS fullscreen=true"
14
15gst-play-1.0 $VIDEO -q --no-interactive --audiosink=fakesink \
16	--videosink="$VSINK_ARGS"&
17
18# Let the caller know that we are started
19touch ${TAG_FILE:-/dev/null}
20