On 2023/10/31 00:04, Zhao Zhili wrote:
From: Zhao Zhili <zhiliz...@tencent.com>

Add vulkan renderer via libplacebo.

Simple usage:
$ ffplay -hwaccel vulkan foo.mp4

Use cuda to vulkan map:
$ ffplay -hwaccel cuda foo.mp4

Create vulkan instance by libplacebo, and enable debug:
$ ffplay -hwaccel vulkan \
        -vulkan_params create_by_placebo=1:debug=1 foo.mp4

Some words about the patch.

I work on this in my spare time (weekend and midnight) for fun, like most of my

patches in FFmpeg and VLC. I learned a lot in this process from hwcontext_*,

libplacebo, and mpv. I'm not meant to reinvent the wheel and duplicate the

work of mpv or VLC, but enhance a simple test tool.

I do my best to do the test. I have tested on

1. Linux with cuda and vulkan decoder, and the slow path with vdpau

2. Windows with cuda, vulkan, d3d11va (copy to CPU)

3. MacOS with videotoolbox (map to CPU). Depends on another avutil patch

https://patchwork.ffmpeg.org/project/ffmpeg/patch/tencent_e37c7aac8a39cdc271b63069ae01f9692...@qq.com/

Or let libplacebo create the vulkan instance.

I won't be surprised if it doesn't work on some hardware/software environment.

Please review and test the patch if you are interested on it.




_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to