## MDK: Multimedia Development Kit
### Features
- Simple and powerful API set
- Cross platform: Windows, UWP, Linux, macOS, Android, iOS, Raspberry Pi
- Hardware accelerated decoding and 0-copy GPU rendering for all supported platforms
- OpenGL, D3D11, Vulkan and Metal rendering w/ or w/o user provided context
- Integrated with any gui toolkit or app via OpenGL, D3D11, Vulkan and Metal (OBS, Qt, SDL, glfw, SFML and native ui etc.) easily
- Seamless/Gapless media and bitrate switch for any media
- Configurable FFmpeg runtime libraries.
- HDR rendering in GPU
- Optimized Continuous seeking. As fast as mpv, but much lower cpu, memory and gpu load. Suitable for timeline preview
## FFmpeg Runtime Lookup
FFmpeg modules can be specified via environment var AVUTIL_LIB, AVCODEC_LIB, AVFORMAT_LIB, AVFILTER_LIB, SWRESAMPLE_LIB, SWSCALE_LIB, or SetGlobalOption() with key avutil_lib, avcodec_lib, avformat_lib, swresample_lib, swscale_lib, avfilter_lib. For example `SetGlobalOption("avutil_lib", "ffmpeg-4.dll")`
If ffmpeg any module is not set, it's searched in the following order
- current module dir > framework dir(apple) > system default search dir
- single ffmpeg library > ffmpeg modules w/ version > ffmpeg modules w/o version
## About SDK for Windows Desktop
SDK is built by clang-cl 12.0 + lld with
- FFmpeg: https://sourceforge.net/projects/avbuild/files/windows-desktop/ffmpeg-master-windows-desktop-clang-static-lite.tar.xz/download
- Windows SDK 10.0.19041.0
- MSVC CRT 14.26.28801
SDK can be used by any C or C++11 compiler, e.g. vs2015, vs2017, mingw g++, clang
### Use in Visual Studio
#### Install via NuGet (Recommended)
mdk is published on https://www.nuget.org/packages/mdk/. Now you can install it in visual studio.
#### Import from Release Package
mdk sdk can be imported by vs projects. Insert the following line in your vcxproj as the last element of `Project` (assume mdk-sdk is in the same dir as vcxproj)
<Import Project="mdk-sdk\build\native\MDK.targets" Condition="Exists('mdk-sdk\build\native\MDK.targets')" />
Once installed or imported, necessary compile flags and link flags will be added, runtime dlls will be copied to output dir.
### Runtime Requirements
- Vista+
- ucrt, vc140+ runtime
Optional:
- libEGL.dll, libGLESv2.dll, D3DCompiler_47/43.dll. Qt apps can use qt's dlls
### Supported Graphics APIs:
- D3D11: recommended
- OpenGL: via WGL. The default if EGL runtime is not found.
- OpenGL ES2/3: via ANGLE or others. The default if EGL runtime is found.
- Vulkan
### Supported Decoders:
- FFmpeg. options: threads=N. e.g. -c:v FFmpeg. -c:v FFmpeg:threads=4
- MFT. options: d3d=0/9/11, pool=0/1. e.g. -c:v MFT(software), -c:v MFT:d3d=11(hardware).
- CUDA
- D3D11: via FFmpeg
- DXVA: via FFmpeg
- NVDEC: via FFmpeg
- CUVID: via FFmpeg
- QSV: via FFmpeg
### Examples
gapless playback for any audio and video: mdkplay.exe(or glfwplay.exe/window.exe/sdlplay.exe) file file2 ...
N players for 1 video: multiplayers -es -share -c:v D3D11 -win N url
N videos and N players: multiplayers -es -share -c:v D3D11 url1 url2 ... urlN
N videos renderers for 1 player: multiwidnows url
### Use in CMake Projects
```
include(mdk-sdk-dir/lib/cmake/FindMDK.cmake)
target_link_libraries(your_target PRIVATE mdk)
```
## Source code:
- some examples using mdk sdk: https://github.com/wang-bin/mdk-examples
- OBS Studio plugin: https://github.com/wang-bin/obs-mdk
- QtMultimedia plugin: https://github.com/wang-bin/qtmultimedia-plugins-mdk
Copyright (c) 2016-2021 WangBin(the author of QtAV) <wbsecg1 at gmail.com>
Free for opensource softwares, non-commercial softwares, QtAV donors and contributors.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
QT基于MDK框架设计的视频播放器完整源码.zip (117个子文件)
install.bat 1KB
uninstall.bat 141B
msvc_make.bat 56B
FindMDK.cmake 4KB
widget.cpp 26KB
Slider.cpp 7KB
QMDKWidget.cpp 6KB
main.cpp 1KB
ffmpeg-4.dll 9.2MB
ffmpeg-4.dll 7.99MB
ffmpeg-4.dll 7.18MB
mdk.dll 1.34MB
mdk.dll 1.26MB
mdk.dll 1.13MB
vcruntime140_1.dll 36KB
glfwplay.exe 260KB
PlaylistAsOne.exe 248KB
glfwplay.exe 235KB
PlaylistAsOne.exe 222KB
multiplayers.exe 202KB
multiwindows.exe 201KB
multiplayers.exe 186KB
multiwindows.exe 185KB
window.exe 73KB
window.exe 71KB
aplay.exe 57KB
window.exe 57KB
aplay.exe 57KB
aplay.exe 44KB
packetio.exe 28KB
DecodeFps.exe 27KB
audiodec.exe 25KB
DecodeFps.exe 25KB
packetio.exe 24KB
framereader.exe 24KB
framereader.exe 22KB
audiodec.exe 22KB
packetio.exe 22KB
DecodeFps.exe 22KB
audiodec.exe 20KB
framereader.exe 19KB
ao.exe 19KB
ao.exe 17KB
color.exe 17KB
color.exe 15KB
ao.exe 15KB
color.exe 14KB
Player.h 31KB
Player.h 22KB
global.h 10KB
global.h 9KB
RenderAPI.h 9KB
RenderAPI.h 8KB
VideoFrame.h 5KB
MediaInfo.h 4KB
widget.h 4KB
MediaInfo.h 3KB
VideoFrame.h 3KB
Slider.h 2KB
QMDKWidget.h 1KB
module.h 561B
logo.ico 355KB
get.js 482B
mdk.lib 192KB
mdk.lib 192KB
mdk.lib 189KB
Changelog.md 29KB
README.md 4KB
mdk.pdb 18.12MB
mdk.pdb 17.52MB
mdk.pdb 16.38MB
xuanzhuan_new_2.png 2KB
xuanzhuan_new_3.png 2KB
xuanzhuan_new_1.png 2KB
camera_1.png 2KB
camera_3.png 2KB
camera_2.png 2KB
load_3.png 2KB
load_2.png 2KB
load_1.png 1KB
check_2.png 1KB
reset_new_3.png 1KB
info_2.png 1KB
info_1.png 1KB
audio_new_3.png 1KB
zuo_new_3.png 1KB
reset_new_1.png 1KB
you_new_2.png 1KB
audio_stop_3.png 1KB
audio_new_1.png 1KB
you_new_3.png 1KB
reset_new_2.png 1KB
zuo_new_2.png 1KB
zuo_new_1.png 1KB
audio_new_2.png 1KB
you_new_1.png 1KB
audio_stop_1.png 1KB
audio_stop_2.png 1KB
close_2.png 1KB
close.png 1KB
共 117 条
- 1
- 2
DS小龙哥
- 粉丝: 4w+
- 资源: 520
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页