Hardware Video Acceleration

This is for ARMv8 based devices

Hardware Video Acceleration

Postby amdervis » Thu Jul 18, 2024 4:45 pm

Does somebody know how to get full hardware video acceleration on Raspberry PI 4?
Or at least how to proper configure graphics drivers on Raspberry PI 4?

I need to be able to play 1080p videos smoothly in firefox.

any ideas?

thanks
amdervis
 
Posts: 3
Joined: Thu Jul 18, 2024 4:39 pm

Re: Hardware Video Acceleration

Postby graysky » Thu Jul 18, 2024 8:22 pm

HW decoding is only supported with linux-rpi and you need to follow pacman post install to set it up? As to firefox, I do not know if it is compiled this support or if it is even possible in the browser. Several packages including kodi-rpi, vlc-rpi, and ffmpeg-rpi support hw decoding.
graysky
Developer
 
Posts: 1879
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Hardware Video Acceleration

Postby amdervis » Fri Jul 19, 2024 8:54 am

graysky, thank you for the reply.

I did change the mainline kernel with linux-rpi

Linux wp-raspiarch 6.6.40-1-rpi #1 SMP PREEMPT Tue Jul 16 14:04:14 MDT 2024 aarch64 GNU/Linux

But I'm struggling with ffmpeg-rpi, I have it installed, but how to replace it with the default installed ffmpeg package that comes as a firefox dep..

At this point, I got both of them installed

ffmpeg 2:7.0.1-2
ffmpeg-rpi 4.4.4-6

thanks
amdervis
 
Posts: 3
Joined: Thu Jul 18, 2024 4:39 pm

Re: Hardware Video Acceleration

Postby graysky » Fri Jul 19, 2024 12:14 pm

I do not believe that you can. Firefox is compiled against the primary ffmpeg which is 7.0 whereas ffmpeg-rpi is in the 4.4 series for compatibility reasons. You could try to use the experimental hw accel patch for ffmpeg 7.0 (I tested a few weeks ago and it did not work), then build that version of ffmpeg-rpi, then build firefox compiled against that but it seems like a lot of work for something that might not work natively in firefox anyway.
graysky
Developer
 
Posts: 1879
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Hardware Video Acceleration

Postby amdervis » Fri Jul 19, 2024 3:42 pm

Thanks for the reply, I agree with you that's a lot of work for something that probably won't work..

Raspberry OS works like a charm out of the box, with linux-rpi and I get smooth video playback on FF and Chromium (hw acceleration).
amdervis
 
Posts: 3
Joined: Thu Jul 18, 2024 4:39 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 8 guests