🛠 Serveur multimédia HDMI avec le GPU VideoCore IV

Raspberry Pi 3 Model A+ (2018) — Board Sheet · avance · Schéma : IMG-model-3a-plus-avance-3-model3a-media-gpu.svg — Raspberry Pi 3 A+ en borne multimédia : sortie HDMI full-size et jack vidéo composite, décodage H.264 1080p30 par le GPU VideoCore IV, flux depuis un NAS en WiFi

Objectives

Transform the Raspberry Pi 3 A+ into a living room media player: 1080p30 video hardware-decoded by the VideoCore IV GPU (H.264 and MPEG-4, 1080p30 decoding and encoding, OpenGL ES 1.1/2.0), full-size HDMI output — plus composite video via the 4-pole jack for older TVs. All over WiFi, without Ethernet.

Hardware

Full code

# 1) Allouer la mémoire GPU (128 Mo suffisent pour du 1080p ; au-delà,
#    l'OS n'a plus que 384 Mo sur les 512 Mo partagés)
echo 'gpu_mem=128' | sudo tee -a /boot/firmware/config.txt

# 2) Lecteur avec décodage matériel H.264
sudo apt install -y omxplayer mpv
omxplayer --horizon 0 video_1080p.mp4          # décodage GPU VideoCore
mpv --hwdec=mmal video_1080p.mp4               # ou lecture via Kodi/mpv

# 3) Montage du NAS en WiFi (seul réseau de la carte)
sudo mkdir -p /mnt/nas && sudo mount -t nfs nas:/videos /mnt/nas

# 4) Sortie composite (téléviseur cathodique) : ajouter au config.txt
#    sdtv_mode=pal  puis redémarrer ; l'HDMI reste disponible.
sudo reboot

Expected verification

omxplayer plays a 1080p30 H.264 file smoothly while watch vcgencmd get_throttled remains at 0x0; the CPU (4× A53) stays below 40% thanks to GPU decoding. Audio outputs via the 4-pole jack or HDMI depending on the setting.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials