LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2017, 04:15 PM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
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
 
Old 06-25-2017, 04:59 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

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


Reply

Tags
boot, bootsplash, fbdev, mplayer, video



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPlayer GUI (gmplayer - NOT gnome-mplayer) single instance fix... poweredbydodge Linux - Desktop 5 04-12-2011 03:34 PM
bootsplash terrorisk Linux - Software 1 01-23-2007 06:45 AM
In Kubuntu I have compiled MPlayer and it works fine, MPlayer Plug-in is not working kickass331 Linux - Newbie 10 08-11-2006 09:12 PM
bootsplash? mushmaster Linux - Software 7 02-14-2005 04:26 PM
Bootsplash ski3r Debian 4 10-18-2004 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration