Page 1 of 1

Trying to get vlc for RPi4 to use hardware decoding

Posted: 22 Aug 2022 22:10
by graysky
I am compiling VLC on Arch ARM aarch64 using a slightly modified recipe from the current distro default to include the following configure options:

Code: Select all

--enable-omxil --enable-omxil-vout --enable-rpi-omxil
. I managed to get the build to work but the resulting binary is not able to playback an x265 test cllip with hardware decoding whereas if I boot to RPiOS, and use their vlc package, the same file plays just fine.

Re: Trying to get vlc for RPi4 to use hardware decoding

Posted: 22 Aug 2022 22:13
by graysky

Re: Trying to get vlc for RPi4 to use hardware decoding

Posted: 23 Aug 2022 08:28
by Rémi Denis-Courmont
I don't know what you've done but your VLC installation is badly broken. There shouldn't be any plugin load failure normally.

Re: Trying to get vlc for RPi4 to use hardware decoding

Posted: 23 Aug 2022 14:11
by graysky
Thank you for the reply. I booted into RPiOS 11 and as you said, not a single error. Verbose log on RPiOS11 there.

However, I do not believe that the warnings are causing this. If I run the same command on my Arch Linux x86_64 box, the file plays back just fine and the verbose log contains a number of warnings about cannot load modules Verbose log on x86_64.

What do you think?

Re: Trying to get vlc for RPi4 to use hardware decoding

Posted: 24 Aug 2022 20:48
by Rémi Denis-Courmont
I don't know if that's the problem, but your installation is badly broken either way. It could very well be another symptom of the same root cause...

Re: Trying to get vlc for RPi4 to use hardware decoding

Posted: 25 Aug 2022 11:46
by graysky
Thanks for the feedback. I was finally able to get hardware decoding to work on Arch ARM. Doing so required a patched ffmpeg and modified vlc. My draft PKGBUILDs are here in case others happen upon this thread: https://github.com/graysky2/PKGBUILDs/commits/vlc-rpi