Dual Hardware Video Decoding


#1

Hi, is it possible to play 2 Videos at the same time on the Khadas VIM (with HW Acceleration and HW Decoding). It’s essential for my usecase that it is able to play atleast 2 videos at the same time with 30fps.

Best regards,


#2

Hi, Dominik:
Does your project need 4K or 1080P with 2 videos decoding at the time? And you want to use Android OS, right?

If more information would be helpful.

Thanks!


#3

HI, 1080p would be fine, and yes Android OS , I would even preferer an own compiled android version from the khadas source


#4

Hi, Dominik:
I think the processor support dual video decoding, but we still need to further testing first before the final confirmation.

BTW, may I know why you need this features? is it for digital signage?


#5

I am working for a german digital signage software manufacturer and we are evaluating your board for further usage with customers. Our goal is to distribute an android box with an modified android os version that contains our digital signage software pre-installed with system rights aswell as some other custom made things (own launcher, VPN etc). As of right now we have already tried out ALOT devices (Nvidia Shield, Nexus Player, Geekbox, HighKey just to name a few). The Nexus Player was perfect but was canceled by google and the geekbox is promising but kind of a let down since it doesn’t support multiple video decoding and has a high hardware failure rate (we ordered 5 and 3 were broken).

So , it’s pretty hard for us to find a device that suits our needs:

  • OpenSource
  • Atleast Android 5
  • Multiple Videos at the same time

#6

Did you do any test on Khadas VIM about dual video decoding yet? Or can you tell us some players that support dual video playing?


#7

@Gouwa No tests on the Khadas yet. We’ve ordered 3 Khadas pro but they have a shipping time of 10 - 15 days.
I think the geekbox supported 2 videos at the same time , aswell as the Google Nexus Player(discontinued).


#8

I see, if any technical issues, just let us know.


#9

@Gouwa, If anything pops up I will let you now. I am currently already compiling android nougat for the khadas on my ubuntu machine so I am ready to rock when the hardware arrives.


#10

Just note that we will got Nougat updating in these days. :smile:


#11

:smiley: , Atleast you guys are pushing updates looking at you geekbox :angry:


#12

Hey @Gouwa we are currently running tests on the Khadas, the box is pretty fast but we have some issues sadly. We’re not able to play 2 h.264, 30fps videos at the same time. I’ve attached the log for the amlogic player. Do we have to use software decoding? Right now we are trying to use hardware acceleration.

https://pastebin.com/prmj6r4L


#13

@terry please follow up this.


#14

The link https://pastebin.com/prmj6r4L is invalid.
What’s the player support dual video playing?
Can you provider the h264,30fps video for me?


#15

There used to be the log-output from while trying to play the videos.
I’ll see if I can retrieve that log again, from what I remember it only printed information about the used decoder and that it cannot init a second decoder of the same type (which is a must have for our digital signage purpose).

You can find the videos I’ve tested with here :
https://drive.google.com/open?id=0B50GfAPoK-n_SzBWMHAtODhaelE

The specific usecase is that we want to have 2 VideoViews next to each other which play simultaneously.


#16

Can you provider the application for me to test?


#17

Hey @terry , I can’t find the application anymore on my drive, it was really simple, Just a normal Android Application where I added 2 VideoViews and set them to different Media Files.


#18

Ok,I will develop a application with two VideoViews to test .Thanks.


#19

@terry , Let me know if you find something interesting, the importing thing is that use 2 videos of the same codec. (h264 mp4 for example)


#20

I’m sorry for this. The amlogic don’t support to play 2 videos at the same time.
I developed a application with two VideoViews , but it did’t work.
It need to add another framebuffer and modify the video decoder library.
It is unfortunate that the video decoder library is not open source .