hooke007 / MPV_lazy

🔄 mpv player 播放器折腾记录 windows conf ; 中文注释配置 快速帮助入门 ; mpv-lazy 懒人包 win10 x64 config
https://hooke007.github.io
Other
4.28k stars 156 forks source link

[Bug?]音频播放不正确 #400

Closed showgood163 closed 11 months ago

showgood163 commented 11 months ago

版本:2024V0,全默认

问题:

下载该视频的4k版本

https://www.youtube.com/watch?v=6j9tnVlrrIU

播放没有报错,但是对比网页播放和mpv播放,mpv的音调显著的低。

截图和log:

problempng

补充:播放同一文件,2023EX没有此问题

hooke007 commented 11 months ago

这里一切正常。 而且按理说这个应该触发vsync_auto的profile,你那边却没有。 你这个音调变化可能来源于vsync_auto未触发而导致的掉帧bug https://github.com/hooke007/MPV_lazy/discussions/385 而display-resample会引入细微的音调变化,但是可能这个变化被异常的掉帧导致无法正确匹配而进一步加大音调变化

你这个文件也不是原始文件(webm),重封装的mkv也显然有报错问题。

Snipaste_2024-01-04_19-58-00

showgood163 commented 11 months ago

我又尝试了一次,在网页上用play-with-mpv调用mpv播放,没有问题,log和你上面的图类似。

.mkv文件是我用IDM抓的。播放时的log在这里:log.txt

里面有如下错误提示,有点奇怪

[   0.021][v][auto_profiles] Profile condition error on evaluating: [string "profile deband_bitrate condition"]:1: attempt to perform arithmetic on field 'file_size' (a nil value) 
[   0.021][v][auto_profiles] Re-evaluating auto profile vsync_auto 
[   0.021][v][auto_profiles] Profile condition error on evaluating: [string "profile vsync_auto condition"]:1: attempt to compare number with nil 
[   0.021][v][auto_profiles] Re-evaluating auto profile speed_limit 
[   0.021][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.021][v][auto_profiles] Re-evaluating auto profile HDR_generic 
[   0.022][v][auto_profiles] Profile condition error on evaluating: [string "profile HDR_generic condition"]:1: attempt to compare number with nil 
[   0.022][v][auto_profiles] Re-evaluating auto profile save_props_auto 
[   0.022][v][auto_profiles] Profile condition error on evaluating: [string "profile save_props_auto condition"]:1: attempt to compare nil with number 
[   0.022][v][auto_profiles] Re-evaluating auto profile deband_bitrate 
[   0.022][v][auto_profiles] Profile condition error on evaluating: [string "profile deband_bitrate condition"]:1: attempt to perform arithmetic on field 'file_size' (a nil value) 
[   0.022][v][auto_profiles] Re-evaluating auto profile vsync_auto 
[   0.022][v][auto_profiles] Profile condition error on evaluating: [string "profile vsync_auto condition"]:1: attempt to compare number with nil 
[   0.022][v][auto_profiles] Re-evaluating auto profile speed_limit 
hooke007 commented 11 months ago

错误是红色。 日志里看不出错误这个等级。 错误会直接在控制台呈现报告。

这只是行为记录。 如前所述,你的重封装文件有问题(很多抓取工具并不是纯粹的”抓“,封装转码会一起干)。

你可以根据我的提示禁用display-sample看看

showgood163 commented 11 months ago

禁用display-sample后确实正常了。感谢。