cadsys
Posts: 5
Joined: Tue Aug 20, 2019 7:23 pm

Pi for Video processing and video hardware acceleration

Tue Aug 20, 2019 7:33 pm

Hi Geeks,

I am looking for a decent video platform which will capable for decode and encode hd videos at same time . Is Pi good choice for video programming ? If yes then which model is good , Any hardware expert please suggest me . Thanks in advance .

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

Re: Pi for Video processing and video hardware acceleration

Wed Aug 21, 2019 8:05 am

What are the specific requirements with regard to resolution and frame rate?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

cadsys
Posts: 5
Joined: Tue Aug 20, 2019 7:23 pm

Re: Pi for Video processing and video hardware acceleration

Thu Aug 22, 2019 1:37 pm

jamesh wrote:
Wed Aug 21, 2019 8:05 am
What are the specific requirements with regard to resolution and frame rate?
Jamesh thanks for quick reply !!

Following are the details for specific resolution and FPS:

3840 x 2160
4096 x 2160
1920 x 1080
1080 x 720
fps 25 - 30
I can also go for 60 fps as well .


Is Pi board have dedicated video hardware accelerator or it is using cpu for decoding or encoding frames .

Please let me know if you required any information related to my question . I hope now you can answer . Thanks !!

cadsys
Posts: 5
Joined: Tue Aug 20, 2019 7:23 pm

Re: Pi for Video processing and video hardware acceleration

Mon Aug 26, 2019 7:26 pm

cadsys wrote:
Thu Aug 22, 2019 1:37 pm
jamesh wrote:
Wed Aug 21, 2019 8:05 am
What are the specific requirements with regard to resolution and frame rate?
Jamesh thanks for quick reply !!

Following are the details for specific resolution and FPS:

3840 x 2160
4096 x 2160
1920 x 1080
1080 x 720
fps 25 - 30
I can also go for 60 fps as well .


Is Pi board have dedicated video hardware accelerator or it is using cpu for decoding or encoding frames .

Please let me know if you required any information related to my question . I hope now you can answer . Thanks !!
Is there anyone who can answer my questions Please its urgent to know . Thanks !!

dickon
Posts: 570
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Pi for Video processing and video hardware acceleration

Tue Aug 27, 2019 10:58 am

All Pis (including the Zero) can do 1080p30 H.264 encode and decode, via the OpenMAX stack. The Pi 4 can decode (only) H.265 at up to 4Kp60, via a discrete block on the chip which is not addressable via OpenMAX.

Please note that the H.264 encoder cannot handle interlaced content.

All of which has been mentioned around these parts on numerous occasions, and isn't difficult to find.

cadsys
Posts: 5
Joined: Tue Aug 20, 2019 7:23 pm

Re: Pi for Video processing and video hardware acceleration

Tue Aug 27, 2019 2:01 pm

dickon wrote:
Tue Aug 27, 2019 10:58 am
All Pis (including the Zero) can do 1080p30 H.264 encode and decode, via the OpenMAX stack. The Pi 4 can decode (only) H.265 at up to 4Kp60, via a discrete block on the chip which is not addressable via OpenMAX.

Please note that the H.264 encoder cannot handle interlaced content.

All of which has been mentioned around these parts on numerous occasions, and isn't difficult to find.
Hi Dickon ,

Thanks for reply . One more question in my mind before buying this beast . When I will do any heavy processing ,suppose CPU uses 90 - 100 % then what will the temperature of Pi4 . Is there any heating issue and any internal burns during high cpu uses for long hours ? Please let me know it is very important . If you have any practical experience please share .

dickon
Posts: 570
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Pi for Video processing and video hardware acceleration

Tue Aug 27, 2019 2:11 pm

Again: there are threads here which directly address your questions. Find them. Read them.

pica200
Posts: 153
Joined: Tue Aug 06, 2019 10:27 am

Re: Pi for Video processing and video hardware acceleration

Tue Aug 27, 2019 2:46 pm

Get a fan for the Pi 4. It can reach throttling if under full load. In a closed case it will definitely.

cadsys
Posts: 5
Joined: Tue Aug 20, 2019 7:23 pm

Re: Pi for Video processing and video hardware acceleration

Fri Oct 18, 2019 2:31 pm

Hello Everyone !!

Can anybody tell me how many 1080p videos we can encode and decode at a same time with Pi4 ?

Technocolour
Posts: 55
Joined: Thu Jul 04, 2019 6:23 pm

Re: Pi for Video processing and video hardware acceleration

Fri Oct 18, 2019 2:45 pm

Time is money, so look around the forums first before buying. If it seems to be ok, get one and play around a bit.

If you're a hobbyist, you can learn a lot from it, and you get to be 100% sure if your particular use case works out or not.

If it's for professional use, you should always run compliance and stress tests before it goes live anyway. Is it stable enough, does it run your required software...? Yadayada.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7578
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Pi for Video processing and video hardware acceleration

Fri Oct 18, 2019 2:57 pm

Within reason you can decode as many h264 streams as you like up to a combined total of around 60fps.

Encode uses the same hardware blocks, so to a first approximation it is the total of encode and decode that can be up to a combined total of 60fps. In reality encode is slightly more involved than decode.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

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

Re: Pi for Video processing and video hardware acceleration

Fri Oct 18, 2019 3:29 pm

That's using the HW codec, but you might be able to use the ARM cores at the same time for another stream, depending on framerate. Will need cooling, and will depend on speed of storage if you are writing stuff out.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “General discussion”