clockworkpi

Lightweight Video Viewer [Not Kodi] for viewing local Video Files

Lets face it, if you just want a simple way to watch local video files… Kodi isn’t the greatest option on the Gameshell… it takes a while to download over apt, and there’s a bunch of menu configurations and re-themeing that needs to take place before it’s even readable.

I was playing around with mplayer and devised the following solution:

SSH into your device.

sudo apt update
sudo apt install mplayer
mkdir ~/movies
mkdir ~/apps/Menu/26_MoviePlayer
wget -O ~/launcher/skin/default/Menu/GameShell/MoviePlayer.png https://i.imgur.com/VJsn9ra.png
[You only need this 2nd PNG file if you hav the OP1 skin… like on the latest OS Firmware]
wget -O ~/skins/OP1/Menu/GameShell/MoviePlayer.png https://i.imgur.com/CkfZ2k1.png
nano ~/apps/Menu/26_MoviePlayer/action.config

[paste the following lines into the editor, then CTRL+X answer Y to Save]

ROM=/home/cpi/movies/
ROM_SO=/usr/bin/mplayer
EXT=mpeg,mpg,avi,mp4,asf,wmv,mp2,mov,mkv,flv,webm
LAUNCHER=/usr/bin/mplayer -framedrop
TITLE=MoviePlayer

That’s it, Reload your UI and you should see a MoviePlayer Icon next to Music Player.
Put any movie files you’d like to carry with you in /home/cpi/movies and you’re good to go.

Protip… since the Gameshell internal screen only Displays at 320x240, if you’re never planning on hooking up to a larger display via HDMI… you might want to re-encode your files before you put them in ~/movies to save space. You can use something like ffmpeg on Mac/PC/Linux to do this with a command like:
ffmpeg -i INPUTFILE.wmv -vf scale=320:240 -c:v libx264 -crf 21 -preset fast -c:a copy OUTPUTFILE.mkv

happy hacking

note:

wget -O ~/launcher/skin/default/Menu/GameShell/MoviePlayer.png https://i.imgur.com/VJsn9ra.png

is all one line.

I edited your your post for better visibility :slight_smile:

You can use the blockquote tag for this.

1 Like