Skip to content

Commit 8c8db87

Browse files
committed
v0.34.0
1 parent 4b47672 commit 8c8db87

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed

Changelog.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
Change log:
22

3+
# 0.34.0
4+
5+
- API:
6+
- Add `VideoFrame.rotation()`
7+
- Add `VideoFrame.metadata()`. Currently it's only used by exporting frame SEI, see [this feature request](https://github.com/wang-bin/mdk-sdk/issues/323)
8+
- Add `Player.setAudioMix()`
9+
- Add [rockchip decoder](https://github.com/wang-bin/mdk-rockchip) as a plugin, libmdk-rockchip.so from sdk is required(will be copied automatically if use FindMDK.cmake). `setDeoders(MediaType::Video, {"rockchip", "FFmpeg", "dav1d"})` will enable rockchip decoder. [Document](https://github.com/wang-bin/mdk-sdk/wiki/Decoders#rockchip)
10+
- Decoder plugins are loaded automatically when invoking `setDecoders()`. plugin name is `mdk-$decodename_lowercase`. For example, `SetGlobalOption("plugins", "mdk-braw:mdk-r3d")` is no longer required for BRAW and R3D decoder.
11+
- VT decoder:
12+
- force prores raw output rgbaf16. Previously the default format is used, which is rgbaf16 on M1, `'b16q'`(a 4 planes bayer format) on M2+, but `'b16q'` is not supported by current renderers.
13+
- ProRes Raw support scene referred extended linear trc. Now Metal renderer has almost the same result as QuickTime player.
14+
- Add `scale` property, value can be `1`, `1/2`, `1/4` and `1/8`. Known used by ProRes and ProRes Raw
15+
- Support apply decoder properties when decoding via `Player.setProperty("video.decoder", "key1=val1:key2=val2")`, and `Player.setProperty("avcodec.$opt", "val")`, for example `VT` and `FFmpeg` decoder `scale` option. Audio is the same.
16+
- XAudio2: support changing audio device even when playing
17+
- PulseAudio: Fix wrong volume from input event
18+
- OpenGL:
19+
- Fix crop ratio, avoid recreating textures frequently
20+
- DRM EGL: Enable immutable texture only for desktop GL by default
21+
- Fix packed rectangle texture attributes.
22+
- Add recorder error event `{error, "record", "write"}`
23+
- BRAW: Fix a crash if release resources after decoder stopped`.
24+
- Fix leak in `VideoFrame.to()`
25+
- FFmpeg:
26+
- Global option `avfilter.ignore_errors=1` enables original frame output if there's an error in filter
27+
- Disable frame duration to workaround frame accurate issue introduced in 0.33.0
28+
- Add `vulkan` decoder
29+
30+
331
# 0.33.1
432

533
- Fix global options not applied for decoders output drm objects, except vaapi

README.Linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
## About SDK for Linux
24-
SDK is built by clang 21 with
24+
SDK is built by clang 22 with
2525
- ffmpeg: https://sourceforge.net/projects/avbuild/files/linux/ffmpeg-master-linux-clang-lite-lto.tar.xz/download
2626
- libc++ 20. You can use delete libc++.so from sdk and use system libc++
2727

@@ -65,7 +65,7 @@ Optional:
6565
- Vulkan: broken now
6666

6767
### [Supported Decoders:](https://github.com/wang-bin/mdk-sdk/wiki/Decoders)
68-
- FFmpeg, VDPAU, VAAPI, CUDA, QSV(not tested), NVDEC
68+
- FFmpeg, VDPAU, VAAPI, CUDA, QSV(not tested), NVDEC, rockchip
6969
- command line: -c:v decodername
7070

7171
### DRM Prime

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ pod 'mdk'
5656
Optionally you can use [mdk.xcframework](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-apple.tar.xz/download) directly.
5757

5858
#### Swift Users
59+
Add `swift-mdk` via swift package manager, or
5960
```ruby
6061
pod 'swift-mdk'
6162
```
62-
63-
and add
63+
and
6464
```swift
6565
import swift_mdk
6666
```
@@ -99,16 +99,16 @@ You may fail to run(or codesign) with default hardened runtime options because t
9999
SetGlobalOption("X11Display", DisplayPtr); // If using x11. Requred by VAAPI, VDPAU
100100
player.setDecoders(MediaType::Video, {"VAAPI", "VDPAU", "CUDA", "hap", "FFmpeg", "dav1d"});
101101
```
102-
- Raspberry Pi: use [mdk-sdk-linux.tar.xz](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-linux.tar.xz/download), delete libffmpeg.so.* to use system ffmpeg to support h264, hevc hardware decoder and use OpenGL ES2/3 0-copy rendering
102+
- Raspberry Pi: use [mdk-sdk-linux.tar.xz](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-linux.tar.xz/download), delete `libffmpeg.so.*` to use system ffmpeg to support hevc hardware decoder and use OpenGL ES2/3 0-copy rendering
103103
```cpp
104-
player.setDecoders(MediaType::Video, {"V4L2M2M", "FFmpeg:hwcontext=drm", "FFmpeg"});
104+
player.setDecoders(MediaType::Video, {"V4L2M2M", "FFmpeg:hwcontext=drm", "FFmpeg", "dav1d"});
105105
```
106106

107-
- RockChip: use [mdk-sdk-linux.tar.xz](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-linux.tar.xz/download), delete libffmpeg.so.* and use https://github.com/nyanmisaka/ffmpeg-rockchip to support rkmpp hardware decoders and use OpenGL ES2/3(mali driver only?) 0-copy rendering, including rendering 10bit videos w/o rga filters(the only player supports this feature!)
107+
- RockChip: [mdk-sdk-linux.tar.xz](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-linux.tar.xz/download) contains a [rockchip decoder plugin](https://github.com/wang-bin/mdk-rockchip). You can also use ffmpeg's `rkmpp` decoder: delete `libffmpeg.so.*` and use upstream ffmpeg or [ffmpeg-rockchip](https://github.com/nyanmisaka/ffmpeg-rockchip) with rkmpp enabled. OpenGL ES2/3 0-copy rendering is supported
108108

109109
```cpp
110110
SetGlobalOption("gl.ubo", "0"); // optional. required by some buggy drivers
111-
player.setDecoders(MediaType::Video, {"rkmpp", "FFmpeg"});
111+
player.setDecoders(MediaType::Video, {"rockchip", "rkmpp", "FFmpeg", "dav1d"});
112112
```
113113
114114
- Android:
@@ -132,6 +132,8 @@ You may fail to run(or codesign) with default hardened runtime options because t
132132
- [cmake tools](https://github.com/wang-bin/cmake-tools)
133133
- [Blackmagic RAW](https://github.com/wang-bin/mdk-braw)
134134
- [R3D RAW](https://github.com/wang-bin/mdk-r3d)
135+
- [nvJPEG2000](https://github.com/wang-bin/mdk-nvjp2k)
136+
- [rockchip](https://github.com/wang-bin/mdk-rockchip)
135137

136138
### Examples and Plugins for Other Frameworks
137139
- [examples for different platforms and gui toolkits](https://github.com/wang-bin/mdk-examples)

nuget/mdk.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>mdk</id>
5-
<version>0.33.1.0</version>
5+
<version>0.34.0.0</version>
66
<title>MDK</title>
77
<authors>Wang Bin</authors>
88
<owners>Wang Bin</owners>

0 commit comments

Comments
 (0)