找回密码
 立即注册
查看: 4457|回复: 8

mpv windows下dxva2和d3d11va硬解api的差异

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn 发表于 2022-1-22 18:47:12 | 显示全部楼层 |阅读模式
测试平台:五代酷睿i5 5200u核显Intel(R) HD Graphics 5500
独显NVIDIA GeForce 820M
起因是我偶然发现dxva2可以在核显上实现HEVC的硬解(Intel官网QA说只有六代skylake及以上才支持HEVC),但是感觉和平时hwdec=yes时默认的d3d11va画面有所不同。


回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 18:49:47 | 显示全部楼层
file:///D:/image/mpv-shot0002.jpg
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 18:52:04 | 显示全部楼层
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 18:54:04 | 显示全部楼层
d3d11
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 18:58:37 | 显示全部楼层
上面两张核显出的,pixel format dxva2_vld和d3d11有明显差异

查询mpv手册相关关键词
vaapi and d3d11va are safe. Enabling deinterlacing (or simply their respective
post-processing filters) will possibly at least reduce color quality by converting the output to a 8
bit format.
dxva2 is not safe. It appears to always use BT.601 for forced RGB conversion, but actual
behavior depends on the GPU drivers. Some drivers appear to convert to limited range RGB,
which gives a faded appearance. In addition to driver-specific behavior, global system settings
might affect this additionally. This can give incorrect results even with completely ordinary
video sources.
All other methods, in particular the copy-back methods (like dxva2-copy etc.) should
hopefully be safe, although they can still cause random decoding issues. At the very least, they
shouldn't affect the colors of the image.
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 18:59:43 | 显示全部楼层
Finn 发表于 2022-1-22 18:58
上面两张核显出的,pixel format dxva2_vld和d3d11有明显差异

查询mpv手册相关关键词

软解和-copy的图就不贴了,和d3d11va完全一致
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 19:01:12 | 显示全部楼层
然后是n卡秀操作的时候了
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 19:03:58 | 显示全部楼层
没有独显直连,独显也没有视频输出,n卡驱动直接把视频相关选项隐藏了,动态范围无法调节,dxva2出来的效果是这样的
回复

使用道具 举报

2

主题

32

回帖

0

VC币

金牌会员

Rank: 6Rank: 6

积分
41099
Finn  楼主| 发表于 2022-1-22 19:06:35 | 显示全部楼层
这里发个图真麻烦,还好我机智地去别的帖子里的图偷了个外链网站
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表