WangBin

Results 589 comments of WangBin

可以做,以前做过类似的,但是做成扩展性强的比较麻烦,有空再研究。现成的着色器应该是针对特定软件编写的,这也是个问题。

I need log or ts sample

You can try [fvp](https://github.com/wang-bin/fvp), hevc and vp8/9 alpha channel is supported on all platforms

> I/flutter ( 5233): mdk.FINE: 14:37:15.781: 0xb8999400>847650 00:14:04.7/00:47:03 cache 0v 2.3s/43559KB 225192KB/s |-2949|>4ms update 55.9ms 17.4fps draw 2/4 +29ms gpu 44562/58097us 有在硬解,渲染一帧gpu耗时大概45ms,渲染帧率上不去。video_player官方实现是直接输出到surface,我这边是输出到surface再用opengl渲染了一次,性能会降。可以试试 ```dart registerWith(options: {'tunnel': true}); ``` 这样就不经过opengl,不过通常会黑屏,因为有些步骤对顺序有要求我在flutter这边还没做处理。 你也可以用我写的另外一个简单的例子对比,把这行 https://github.com/wang-bin/mdk-android/blob/master/sdk/src/main/cpp/MDKPlayerJNI.cpp#L14...

对了,你可以直接装个mpv-android,高级设置的配置里加vo=mediacodec_embed就是不用opengl,否则用opengl,你可以对比下性能 ![Image](https://github.com/user-attachments/assets/95a98910-0c17-4a4b-a970-110e4d084952)

> 使用 mpv-android 测试,无论加不加 vo=mediacodec_embed 都不卡顿。 你用[media-kit](https://pub.dev/packages/video_player_media_kit) 试试看,应该也不用改什么代码,把fvp删了,这个是基于mpv的。全屏是正常的,要靠调整view大小。不过默认vo可能是mediacodec_embed > 加了 vo=mediacodec_embed 视频占全屏,比例不对且字幕不显示,性能统计覆盖层也不显示了 因为直接解码到view上去了,显示的内容完全没法控制 > 使用 mdk-android 测试 默认情况下 DECODE_TO_SURFACEVIEW 为 0,mPlayer.setMedia 给 url 后大概 1s 多应用闪退,多次测试均如此,日志如下 得用最新的libmdk, 最近刚修的一个着色器错误。可以从[sourceforge](https://sourceforge.net/projects/mdk-sdk/files/nightly/) 或[最新的github action的artifacts](https://github.com/wang-bin/mdk-sdk/actions)下载。...

can anyone review this pr? I've read mesa source code and know why eglGetDisplay() does not crash on x86 desktop. mesa can check native display's first pointer and detect platform...

@zxcv1884 I have a solution for both correct elinux-common.zip and wrong one w/o leaking gl resources, see https://github.com/wang-bin/fvp/blob/master/elinux/fvp_plugin.cc