jt1988
Posts: 2
Joined: Tue Jun 18, 2019 12:14 am

raspberry pi 4 h.265 hardware accelerate encode

Thu Jun 27, 2019 6:17 pm

I've seen that the raspberry pi 4 will come with hardware accelerated h.264 decode+encode, and h.265 decode.

I was wondering if there are any plans to support h.265 hardware accelerated encoding with the rpi 4 at some point in the future?

Thanks!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31381
Joined: Sat Jul 30, 2011 7:41 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Thu Jun 27, 2019 9:53 pm

Not on the Pi4, it would require changing the SOC (or the SoC being redesigned to have an encoder).

In fact H265 encode in HW is VERY difficult.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
Dygear
Posts: 28
Joined: Wed Jul 01, 2015 1:50 am

Re: raspberry pi 4 h.265 hardware accelerate encode

Fri Jun 28, 2019 3:43 am

Does it still require a license key? YouTube video encoding seems to be slow, and I'm wondering if it's because I'm not actually using the Hardware Decoder?
--
Paramedic & Programmer

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31381
Joined: Sat Jul 30, 2011 7:41 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Fri Jun 28, 2019 6:18 am

Dygear wrote:
Fri Jun 28, 2019 3:43 am
Does it still require a license key? YouTube video encoding seems to be slow, and I'm wondering if it's because I'm not actually using the Hardware Decoder?
No licence key needed. We are currently tracking down a bug in Chromium which when fixed should speed things up.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

pik33
Posts: 201
Joined: Thu Sep 10, 2015 4:26 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Fri Jun 28, 2019 6:34 am

Until the bug is fixed, disabling OpenGL video driver in config.txt makes YT video playing with Chromium much faster

jt1988
Posts: 2
Joined: Tue Jun 18, 2019 12:14 am

Re: raspberry pi 4 h.265 hardware accelerate encode

Tue Jul 02, 2019 3:05 am

jamesh wrote: Not on the Pi4, it would require changing the SOC (or the SoC being redesigned to have an encoder).

In fact H265 encode in HW is VERY difficult.
First off, amazing work with the rpi4. I'm blown away by all the improvements from the 3B+. multiple USB3, internal PCIe, True Gigabit Ethernet, the list goes on..

Thank you for the response! Bummer, understood. Even though there's a much better CPU + much more RAM, it seems like doing SW H265 encoding on the 4B is a non-starter.

My use case was to enable H265 storage of video on the pi itself [so my 4b + arducam + SD card could store ~50% more video than with H264].

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31381
Joined: Sat Jul 30, 2011 7:41 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Tue Jul 02, 2019 6:48 am

jt1988 wrote:
Tue Jul 02, 2019 3:05 am
jamesh wrote: Not on the Pi4, it would require changing the SOC (or the SoC being redesigned to have an encoder).

In fact H265 encode in HW is VERY difficult.
First off, amazing work with the rpi4. I'm blown away by all the improvements from the 3B+. multiple USB3, internal PCIe, True Gigabit Ethernet, the list goes on..

Thank you for the response! Bummer, understood. Even though there's a much better CPU + much more RAM, it seems like doing SW H265 encoding on the 4B is a non-starter.

My use case was to enable H265 storage of video on the pi itself [so my 4b + arducam + SD cxard could store ~50% more video than with H264].
It can do it, just not in real time as that needs HW support.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

janmohyla
Posts: 1
Joined: Tue Jul 02, 2019 12:26 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Tue Jul 02, 2019 12:29 pm

jamesh wrote:
Fri Jun 28, 2019 6:18 am
No licence key needed. We are currently tracking down a bug in Chromium which when fixed should speed things up.
I've seen you or one of your fellow colleagues mentioning this bug in another thread. Could you mention the ticket no. so we can track it as well, please?

root42
Posts: 10
Joined: Fri Apr 05, 2013 4:39 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Sat Jul 06, 2019 9:36 am

janmohyla wrote:
Tue Jul 02, 2019 12:29 pm
jamesh wrote:
Fri Jun 28, 2019 6:18 am
No licence key needed. We are currently tracking down a bug in Chromium which when fixed should speed things up.
I've seen you or one of your fellow colleagues mentioning this bug in another thread. Could you mention the ticket no. so we can track it as well, please?
+1 on this. Please give us a bugtracker link to follow. :)

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31381
Joined: Sat Jul 30, 2011 7:41 pm

Re: raspberry pi 4 h.265 hardware accelerate encode

Sun Jul 07, 2019 8:47 am

root42 wrote:
Sat Jul 06, 2019 9:36 am
janmohyla wrote:
Tue Jul 02, 2019 12:29 pm
jamesh wrote:
Fri Jun 28, 2019 6:18 am
No licence key needed. We are currently tracking down a bug in Chromium which when fixed should speed things up.
I've seen you or one of your fellow colleagues mentioning this bug in another thread. Could you mention the ticket no. so we can track it as well, please?
+1 on this. Please give us a bugtracker link to follow. :)
I believe it is fixed and can be tested using rpi-update. You will need to turn gpu acceleration on in Chromium.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

Return to “General discussion”