Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 4.67 KB

README.sunxi.md

File metadata and controls

81 lines (59 loc) · 4.67 KB

MDK: Multimedia Development Kit

Features

About SDK for SUNXI

mdk sdk for linux sunxi, with allwinner cedarv and vdpau decoder support

SDK is cross built by clang 15.0 with

SDK can be used by any C or C++11 compiler, e.g. g++, clang

Runtime Requirements

tested device info

  • pcdiuno, allwinner a10, sun4i, Linaro 12.11, Linux ubuntu 3.4.29+ #1 PREEMPT Tue Nov 26 15:20:06 CST 2013 armv7l armv7l armv7l GNU/Linux

Examples

  • [Best performance] cedarv decoder via libvecore, texture uploading is accelerated by UMP:

./bin/mdkplay -c:v CedarX video_file

1080p@24fps 7637kb/s h264 decoding + rendering ~28% cpu

  • cedarv decoder via libvecore, no UMP accelerated: GLVA_HOST=1 ./bin/mdkplay -c:v CedarX video_file

1080p@24fps 7637kb/s h264 decoding + rendering ~96% cpu

  • vdpau decoder copy mode: GLVA_HOST=1 ./bin/mdkplay -c:v VDPAU video_file

1080p@24fps 7637kb/s h264 decoding + rendering ~97% cpu

  • vdpau decoder zero copy mode via nv interop extension(not tested, I have no working vdpau driver): ./bin/mdkplay -c:v VDPAU video_file

  • test decoder speed:

    ./bin/framereader -c:v CedarX video_file  # 1080p h264 ~84fps
    ./bin/framereader -c:v FFmpeg video_file  # 1080p h264 ~12fps

if default audio device does not sound correctly, try to change the device name via environment var ALSA_DEVICE, e.g.

export ALSA_DEVICE="hw:0,0"

Use in CMake Projects

	include(mdk-sdk-dir/lib/cmake/FindMDK.cmake)
	target_link_libraries(your_target PRIVATE mdk)

Source code:

Copyright (c) 2016-2024 WangBin(the author of QtAV) Free for opensource softwares, non-commercial softwares, flutter, QtAV donors and contributors.