Mπ4 works best with video files encoded as H.264. Always test your files on the Pi you will use.
| Raspberry Pi | Video |
|---|---|
| All models | H.264, up to 1080p30 |
| Pi 4 and Pi 5 | Should handle up to 4K30 or 1080p60 |
Any aspect ratio will work. Pillarbox or letterbox bars are added automatically if your content does not match the native resolution of the display.
Mπ4 detects if an HDMI display is connected during boot. If no valid EDID is detected, it assumes analog output is desired and outputs over composite only.
Always connect the HDMI display before powering on the Pi.
Mπ4 supports synchronised playback of multiple players over an Ethernet connection. To set it up:
The sync followers adjust their playback to fall in line with the main player.
If no main player is detected, sync followers start playing unsynchronised when booted. They jump to the correct time as soon as a main player comes online, so the boot order of the Pis does not matter.
To run multiple independent sync groups on the same network without interfering, set a "SyncId" in the settings file. Sync followers with a SyncId only synchronise with players that have the same ID. Each sync group needs one main player and any number of followers.
Pis configured as sync followers ignore all control triggers. To control a synchronised group, send commands to the main player.
Mπ4 has three ways to control the player: directly via GPIO connected triggers, via the built-in web page, or over OSC.
The Settings Generator has a section to assign triggers to specific GPIO pins, and generates a pin map for you. 17 GPIO pins can be assigned. All GPIO pins are configured with pull-up resistors and need to be connected to GND to be triggered.
When assigning a trigger to play a specific video file, include the full file name with extension: "video1.mp4", not just "video1".
Each player serves a basic web page to monitor status, seek, trigger playback and view the playlist. Open it at the IP address of the player, on port 8080: http://<ip-address>:8080
Triggers can also be sent over OSC to port 8000. Wildcards are allowed in the player name.
| Address | Sends the command to |
|---|---|
/mpi4/<action> [arg] | All players on the network |
/mpi4/<name>/<action> [arg] | Only the player with that name |
| Action | Argument | What it does |
|---|---|---|
play | Resume playback | |
pause | Pause playback | |
toggle | Switch between play and pause | |
next | Go to the next file | |
previous | Go to the previous file | |
goto | index | Go to a file in the playlist by its number |
seek | time | Jump to a position in the current file |
video | filename | Play a specific file (full file name with extension) |
Mπ4 broadcasts player status over UDP port 5005 using the following status protocol. The packet is UTF-8 text with fields separated by pipe characters (|).
MPI4|1|name|syncid|state|kind|index|count|pos|dur|role|file
The first two fields identify the protocol. MPI4 is the fixed protocol name, and 1 is the protocol version. Receivers should check both before interpreting the remaining fields.
| Field | Description |
|---|---|
name | The player name. |
syncid | The SyncId used to distinguish independent sync groups. |
state | Playback state: P playing, H paused, B black/idle, or N no media. |
kind | Media type: V video, A audio, S still image, or - none. |
index | Current file's index in the playlist. |
count | Number of files in the playlist. |
pos | Current playback position in seconds, sent to two decimal places. |
dur | Media duration in seconds, sent to one decimal place. |
role | P for the main Player, or F for a Sync Follower. |
file | Current file name, limited to the first 40 characters. This is the final field and may contain pipe characters. |