JeffyCN / libv4l-rkmpp

A rockchip-mpp V4L2 wrapper plugin for chromium V4L2 VDA/VEA
GNU Lesser General Public License v2.1
79 stars 26 forks source link

does it possible to decode more than 1 video at the same time #14

Closed chaiwat-screencloud closed 1 year ago

chaiwat-screencloud commented 1 year ago

Currently, I test with 4 video on chromium-ozone-wayland but it play only one video.

JeffyCN commented 1 year ago

it supports multiple videos.

JeffyCN commented 1 year ago

one simple test would be: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_video_all

<video controls width="250">
<source src="https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4" type="video/mp4">
</video>
<video controls width="250">
<source src="https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4" type="video/mp4">
</video>
chaiwat-screencloud commented 1 year ago

Thank you, did mistake with my test code but noticable drop frame with 4 video.

arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '3'.[733.830] [RKMPP] [872] rkmpp_new_frame(81): DEC FPS:   25.0 || Frames: 120
[733.927] [RKMPP] [869] rkmpp_new_frame(81): DEC FPS:   25.2 || Frames: 120
[734.566] [RKMPP] [884] rkmpp_new_frame(81): DEC FPS:   25.6 || Frames: 120
[734.690] [RKMPP] [887] rkmpp_new_frame(81): DEC FPS:   25.5 || Frames: 120
[737.669] [RKMPP] [872] rkmpp_new_frame(81): DEC FPS:   31.3 || Frames: 240
[737.742] [RKMPP] [869] rkmpp_new_frame(81): DEC FPS:   31.5 || Frames: 240
[738.419] [RKMPP] [884] rkmpp_new_frame(81): DEC FPS:   31.1 || Frames: 240
[738.505] [RKMPP] [887] rkmpp_new_frame(81): DEC FPS:   31.5 || Frames: 240
JeffyCN commented 1 year ago

there's only one hardware dec module, it's expected to be slow when shared with other streams

please check the TRM for dec spec