Installation:
You can extract APPS folder content to any folder on any sdcard, just make sure you correctly update coremapping.json. Here is a configuration example:  
1. Extract APPS folder content to SdCard:/Roms/APPS/ folder;
2. Add/modify folders mapping in /CFW/config/coremapping.json:
 - If app was installed on 1st sdcard: "VIDEOS": "/mnt/mmc/Roms/APPS/MPlayer.sh", 
 - If app was installed on 2nd sdcard: "VIDEOS": "/mnt/SDCARD/Roms/APPS/MPlayer.sh", 

Usage:
Put videos into the "RomsSdCard:/Roms/VIDEOS" folder.
From the main "Garlic OS" menu open "Consoles" -> "Videos" -> open video.

It is still recommended to encode videos with any suitable method:
 - using the command-line command "ffmpeg -i input.mkv -vf scale=640:-2 -vcodec libx264 -pix_fmt yuv420p -profile:v main -level 3.1 -preset medium -crf 23 -x264-params ref=4 -acodec libvorbis -movflags +faststart output.mkv" where "input.mkv" is original video and "output.mkv" is result of encoding.
 - using "FFmpeg Batch AV Converter" app, insert "-vf scale=640:-2 -vcodec libx264 -pix_fmt yuv420p -profile:v main -level 3.1 -preset medium -crf 23 -x264-params ref=4 -acodec libvorbis -movflags +faststart" into "Parameters" field, add files and click "Sequential encoding".

Changelog:
- September 2, 2023:
1) Added HDMI support (hot-plug is supported)

- August 13, 2023:
1) Fixed wrong playback speed for video files with mono audio streams.

- August 8, 2023:
1) Added support to preserve volume level between sessions, enabled by default. Set "save-volume=no" in line 50 of the "./mplayer/config" file if you want to turn it off.

- August 7, 2023:
1) Added support to resume playback from the last saved position, enabled by default. Set "save-position=no" in line 60 of the "./mplayer/config" file if you want to turn it off.
Playback time in seconds is saved to the "resume" subfolder, e.g. if you watching "RomsSdCard:/Roms/VIDEOS/video1.mkv", it will create "RomsSdCard:/Roms/VIDEOS/resume/video1.mkv.resume"

- July 29, 2023:
1) Fixed file selector ("Open ..." and "Open playlist ..." in the menu).
The initial directory will be the directory of the current video file/playlist (e.g. "Roms/VIDEOS"), and it will show the last viewed directory if you open the file selector again.

- July 27, 2023:
1) Menu support was added (Menu + X), it gives access to file selector and some settings;
2) Pause state will preserve on any commands (previously almost any button press resumed the video);
3) Fixed volume keys issue (now you can hold them to continuously change volume/brightness)
4) *.m3u playlist support was added, you can put your series in a subfolder and make a playlist (the same way as for multidisc PS games). Here is an example structure:
SdCard:/Roms/VIDEOS/series/Prison Break s01ep01.mkv
SdCard:/Roms/VIDEOS/series/Prison Break s01ep02.mkv
SdCard:/Roms/VIDEOS/series/Prison Break s01ep03.mkv
SdCard:/Roms/VIDEOS/Prison Break.m3u

"Prison Break.m3u" is a plaintext file with relative paths to the episodes, e.g.:
series/Prison Break s01ep01.mkv
series/Prison Break s01ep02.mkv
series/Prison Break s01ep03.mkv

After you open "Console -> Videos -> Prison Break", you can press "Menu + X" to open Menu and choose "Prev/Next" to select an episode from the playlist.    

Default Controls:
Up: +60 seconds
Down: -60 seconds
Left: -10 seconds
Right: +10 seconds
A: Pause
B: next frame
X: +10 minutes
Y: -10 minutes
L1: switch audio channel
R1: switch subtitles
L2: audio delay -0.1
R2: audio delay +0.1
Start: Mute volume
Select: OSD: elapsed time/elapsed+full video time/disabled/enabled
Menu: exit
Volume Up/Down: volume
Power: show video info (video dimensions, video/audio codec and bitrate) 

Menu + Volume Up/Down: display brightness
Menu + Up/Down: video brightness
Menu + Left/Right: video contrast
Menu + L1/R1: video saturation
Menu + L2/R2: playback speed
Menu + X: open menu
Menu + A: next video in the playlist
Menu + B: prev video in the playlist

Configuration:
Every aspect of the MPlayer features can be configured through the files:
.mplayer/input.conf - control settings
.mplayer/menu.conf - menu settings
.mplayer/config - audio/video and other player settings
.mplayer/subfont.ttf and .mplayer/font/*.* - OSD and Subtitle fonts

Get configuration manual here http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

PS. If all your videos were transcoded to 640x480, you can update line 36 in the "./mplayer/config" file to disable scaling, it will improve performance:
# video filter
vf=crop=640:480 # сrop video


If you want to buy me a coffee:
https://boosty.to/xquader
https://ko-fi.com/xquader