PINE64
MPP+DRM: low level API for video codecs and display (also 4k UHD+HDR+HLG) - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: MPP+DRM: low level API for video codecs and display (also 4k UHD+HDR+HLG) (/showthread.php?tid=5626)



MPP+DRM: low level API for video codecs and display (also 4k UHD+HDR+HLG) - mcerveny - 01-27-2018

Hello.

I prepared and tested "mpi_dec.c" application to test low level access hardware accelerated video decoders for everyone interested Smile .
You can use this application as benchmark and feature tester of your Rock64 (not video player).
There are few sample results of not PTS synchronized maximum speed decoding and display (min CPU freq set 1008MHz and DDR set to 933MHz and decoder set to 600MHz, testing videos are mostly "Big Buck Bunny"):

Code:
Format            Decoder    Avg result (FPS)
1080p60           hevc       310
1080p60           h264       251
2160p30           h264       64
2160p60           hevc       76
2160p60           h264       65
2160p60hdr        hevc       57
2160p60hdr/hlg    hevc       70

Source for "mpi_dec.c" and detailed description is https://github.com/mcerveny/utils. There are  many hints to check if playing hardware accelerated video. You can also study issues (for Kodi/Plex/LibreELEC) like Kwiboo/linux-rockchip#22.

Happy hacking and buy me a Beer.