FEATURE REQUEST

display GIF on raspberry

posted by
mikaxy
in Themes .
2 people are following

Hello,

 

Do you think it is possible after the system startup on the raspberry to be able to execute on the screen a gif before displaying the theme or simply display only the gif. (in the same example as the aio kraken high end)

 

Thanks for your feedback

Replies 1 - 2 (2)

Hi @mikaxy 

a custom startup image or Gif is currently not supported on the Raspberry Pi image
the whole source code of the image is available here on GitHub, in case you're interested in modifying it yourself

it's a cool idea though, so we might add it as a feature :) 
but no ETA for now, as we're already pretty busy with other stuff..

regarding only displaying a GIF:
you can do that by customizing a theme. simply add the Gif as a background and remove all widgets

Hi @Seraksab ,

I tried to do something and came up with something that works.

I finally decided to display a mp4 video on my raspberry pi 3.

My first difficulty was to display it on my screen, according to my research it is necessary to use the package omxplayer but apparently if we do not have an official screen it does not work except via hdmi. So I have to use the fbcp package which allows the reading on the unofficial players of the brand.

Here are the manipulations to do in ssh:

For those who don't know how to do it:

ssh modbros@IP_Raspberry
password modbros
apt update &&  apt install omxplayer -y
apt install cmake -y
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
sudo modprobe fbtft dma

Add your file video on /home/modbros/mobro-raspberrypi/resources

For me i named my file video-intro.mp4

Open the file and modify mobro.sh

vi /home/modbros/mobro-raspberrypi/service/mobro.sh
#add this line on resources

readonly IMAGE_VIDEO="$RESOURCES_DIR/video-intro.mp4"

#add this function (for me it's just after "show_image" function used for splashscreen)

omx() {
  fbcp &
  omxplayer $1
  killall fbcp
  sleep 0.1
  clear
}
# and after this line show_image $IMAGE_SPLASH 7
omx $IMAGE_VIDEO

And reboot the pi and enjoy !

Another difficulty I encountered is that if you restart the wizard it deletes the configuration but otherwise no problem if you don't touch it. This solution would be possible in future updates maybe with what I present you.

Login to comment

Login
Like most websites, we also use cookies. But don't worry, we only use them for your login and statistics.