网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
07月26日漏签0天
potplayer吧 关注:48,737贴子:233,189
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 18回复贴,共1页
<<返回potplayer吧
>0< 加载中...

mpv技术文档对于“硬解降低画质”的专业解答

  • 只看楼主
  • 收藏

  • 回复
  • 狩猎🏹肖磊凤姐
  • H.261
    10
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
实际上,绝大多数的PC播放器都是基于ffmpeg开发的,这当中也包括各类解码器和渲染器!
而mpv的官方技术文档是我所见过的这些播放器中最详细,也是最专业的!原文如下:
Quality reduction with hardware decoding
In theory, hardware decoding does not reduce video quality (at least for the codecs h264 and HEVC). However, due to restrictions in video output APIs, as well as bugs in the actual hardware decoders, there can be some loss, or even blatantly incorrect results. This has largely ceased to be a problem with modern hardware, but there is a lot of hardware out there, so caveat emptor. Known problems are discussed below, but the list cannot be considered exhaustive, as even hwdecs that work well on certain hardware generations may be problematic on other ones.
In some cases, RGB conversion is forced, which means the RGB conversion is performed by the hardware decoding API, instead of the shaders used by --vo=gpu. This means certain colorspaces may not display correctly, and certain filtering (such as debanding) cannot be applied in an ideal way. This will also usually force the use of low quality chroma scalers instead of the one specified by --cscale. In other cases, hardware decoding can also reduce the bit depth of the decoded image, which can introduce banding or precision loss for 10-bit files.
vdpau always does RGB conversion in hardware, which does not support newer colorspaces like BT.2020 correctly. However, vdpau doesn't support 10 bit or HDR encodings, so these limitations are unlikely to be relevant.
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.
mediacodec is not safe. It forces RGB conversion (not with -copy) and how well it handles non-standard colorspaces is not known. In the rare cases where 10-bit is supported the bit depth of the output will be reduced to 8.
cuda should usually be safe, but depending on how a file/stream has been mixed, it has been reported to corrupt the timestamps causing glitched, flashing frames. It can also sometimes cause massive framedrops for unknown reasons. Caution is advised, and nvdec should always be preferred.
crystalhd is not safe. It always converts to 4:2:2 YUV, which may be lossy, depending on how chroma sub-sampling is done during conversion. It also discards the top left pixel of each frame for some reason.
If you run into any weird decoding issues, frame glitches or discoloration, and you have --hwdec turned on, the first thing you should try is disabling it.
我节选一些重点来说:
理论上,硬件解码不会降低视频质量(至少对于编解码器h264和HEVC)。然而,由于视频输出API的限制,以及实际硬件解码器中的错误,可能会出现一些损失,甚至是明显不正确的结果,比如:
1、硬件解码可能会降低解码图像的比特深度,这可能会对10位文件引入条带或精度损失。
2、dxva2不安全。它似乎总是使用BT.601进行强制RGB转换,但实际行为取决于GPU驱动程序。一些驱动程序似乎会转换为有限范围的RGB,这会使外观褪色。
就我个人的实战体会:我是无法分辨出软解和D3D11硬解之间的画质差异,但是dxva2(copy back)还是能稍稍感觉到画面的质感是不如软解的!所以PC上用软解还是D3D11硬解,我个人是倾向于只要不影响视频的流畅播放,能软解就用软解,没必要让CPU太空闲啊!


  • aigogolax
  • 小吧主
    13
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
现在的硬件只要解码原格式输出应该没这问题。


2025-07-26 05:19:20
广告
不感兴趣
开通SVIP免广告
  • 贴吧用户_QaWG2RC
  • MPEG-1
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
madVR在缩小计算上,在看4k的时候我都只能用dxva才能98%以下(1066ti笔记本电脑,9代i7).画面会明显的白一点


  • 留言贩子
  • MPEG-1
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
没区别肯定硬解啊,软解不是浪费电


  • freezy
  • divx
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
开了软解也就百分之几的cpu消耗,无所谓的


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 18回复贴,共1页
<<返回potplayer吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示