~alpine/users

1

Alpine on RPI4 : video (h264) acceleration

Details
Message ID
<PA4PR07MB8647699A51074D2E7B5427B7D0CE9@PA4PR07MB8647.eurprd07.prod.outlook.com>
DKIM signature
missing
Download raw message
Hello,

I’m currently doing a small project with a Raspberry PI 4, and I wanted to switch from rpi os to Alpine.

The problem is that I need to play video files (H264) using the integrated hardware decoder, and I can’t seem to get it working.

After the initial setup, I enabled the edge repository and installed :


  *   Vlc
  *   Ffmpeg (just in case)
  *   raspberrypi v4l-utils
  *   mesa-dri-gallium

And edited my boot.cfg file with


gpu_mem=128

# Raspberry Pi 4:

dtoverlay=vc4-fkms-v3d
I used this wiki page : https://wiki.alpinelinux.org/wiki/Raspberry_Pi

I can see that the text on the monitor connected to the Raspberry pi is now smaller and the screen is running at native resolution, but trying to play a sample H264 video with vlc is a nogo :

rpi:~$ cvlc Big_Buck_Bunny_1080_10s_30MB.mp4
VLC media player 3.0.17.3 Vetinari (revision f639afdc2d)
Failed to create secure directory (/media/mmcblk0p2/data/.config/pulse): No such file or directory
[0000007f80431d50] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[0000007f8072d810] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0000007f8072d810] main interface error: no suitable interface module
[0000007f80542b50] main libvlc error: interface "dbus,none" initialization failed
[0000007f8072daa0] main interface error: no suitable interface module
[0000007f80542b50] main libvlc error: interface "globalhotkeys,none" initialization failed
[0000007f7ffbf1e0] dummy interface: using the dummy interface module...
[0000007f7ee8d090] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
[0000007f7ee8d090] main decoder error: Codec not supported
[0000007f7ee8d090] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))

Any idea of what I’m missing ?

Best regards !
Kevin Garman <Garman@scadaware.com>
Details
Message ID
<MW3PR22MB212444A2E9F7D84238B0EEDFD6D19@MW3PR22MB2124.namprd22.prod.outlook.com>
In-Reply-To
<PA4PR07MB8647699A51074D2E7B5427B7D0CE9@PA4PR07MB8647.eurprd07.prod.outlook.com> (view parent)
DKIM signature
missing
Download raw message
Did you try omxplayer?  ...it will take advantage of the PI's video hardware.


________________________________
From: ~alpine/users <~alpine/users@lists.alpinelinux.org> on behalf of Cyril · <tfnetworks@hotmail.com>
Sent: Tuesday, May 17, 2022 18:42
To: ~alpine/users@lists.alpinelinux.org <~alpine/users@lists.alpinelinux.org>
Subject: Alpine on RPI4 : video (h264) acceleration


Hello,



I’m currently doing a small project with a Raspberry PI 4, and I wanted to switch from rpi os to Alpine.



The problem is that I need to play video files (H264) using the integrated hardware decoder, and I can’t seem to get it working.



After the initial setup, I enabled the edge repository and installed :



  *   Vlc
  *   Ffmpeg (just in case)
  *   raspberrypi v4l-utils
  *   mesa-dri-gallium



And edited my boot.cfg file with



gpu_mem=128

# Raspberry Pi 4:

dtoverlay=vc4-fkms-v3d

I used this wiki page : https://wiki.alpinelinux.org/wiki/Raspberry_Pi<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.alpinelinux.org%2Fwiki%2FRaspberry_Pi&data=05%7C01%7CGarman%40scadaware.com%7Cadaf986fc0974fcd432b08da385f0a84%7Cbe8c23c31d1a4a2ea2b55e42d5ccbec6%7C0%7C0%7C637884278305930851%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=z1MzGh8cCuDHUsf3SYWT%2FZNPBTR6qJFmQNbE3w0f4kE%3D&reserved=0>



I can see that the text on the monitor connected to the Raspberry pi is now smaller and the screen is running at native resolution, but trying to play a sample H264 video with vlc is a nogo :



rpi:~$ cvlc Big_Buck_Bunny_1080_10s_30MB.mp4

VLC media player 3.0.17.3 Vetinari (revision f639afdc2d)

Failed to create secure directory (/media/mmcblk0p2/data/.config/pulse): No such file or directory

[0000007f80431d50] vlcpulse audio output error: PulseAudio server connection failure: Connection refused

[0000007f8072d810] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

[0000007f8072d810] main interface error: no suitable interface module

[0000007f80542b50] main libvlc error: interface "dbus,none" initialization failed

[0000007f8072daa0] main interface error: no suitable interface module

[0000007f80542b50] main libvlc error: interface "globalhotkeys,none" initialization failed

[0000007f7ffbf1e0] dummy interface: using the dummy interface module...

[0000007f7ee8d090] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.

[0000007f7ee8d090] main decoder error: Codec not supported

[0000007f7ee8d090] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))



Any idea of what I’m missing ?



Best regards !
Reply to thread Export thread (mbox)