LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mplayer as bootsplash? (https://www.linuxquestions.org/questions/linux-software-2/mplayer-as-bootsplash-4175608496/)

coralfang 06-23-2017 04:15 PM

Mplayer as bootsplash?
 
Saw this earlier, a bootsplash using video on the framebuffer https://www.youtube.com/watch?v=NSyejmdZEh8

I tried something similar just now using mplayer, which i recorded and put to youtube, but it has a few issues as i only spent half hour or so fiddling with this. In the video i recorded below, you can see that mplayer is fighting with the boot messages -- how could i stop this happening?

Here's the video of my attempt:
https://www.youtube.com/watch?v=4Tdn77cy92g

And also, is it possible ot get this to start earlier in the boot process? But i would imagine it would involve putting mplayer (and libs), along with the scripts and the video file within the initrd image? That might not be possible...

Basically, i cobbled this together on slackware:

start.sh - Run this from beginning of /etc/rc.d/rc.S
Code:

#!/bin/sh
# path to any video file here
SPLASH=/root/videosplash/splash.mp4

mkfifo /root/videosplash/fifopipe

# supress mplayer output, use the framebuffer video output and loop video infinitely
/usr/bin/mplayer \
        -slave \
        -really-quiet \
        -vo fbdev \
        -loop 0 \
        -input file=/root/videosplash/fifopipe ${SPLASH} < /dev/null > /dev/null &


stop.sh - Run this from the end of /etc/rc.d/rc.local
Code:

#!/bin/sh
# this quits mplayer using a pipe command
# if placed at the end of rc.local, the video will quit at the end of the booting process
if [ ! -z $(pidof mplayer) ]; then
        echo -e "q\n" > /root/videosplash/fifopipe
        sleep 1
fi


frieza 06-25-2017 04:59 PM

probably not the answer you're looking for, i would look at RHGB and/or plymouth and seeing how they hide boot messages.


All times are GMT -5. The time now is 05:04 AM.