mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.59k stars 2.92k forks source link

Video does not play when interpolation option is set #14787

Closed deama closed 2 months ago

deama commented 2 months ago

mpv Information

[   0.000][v][cplayer] mpv v0.38.0-736-gafdbbac8 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
[   0.000][v][cplayer]  built on Sep  2 2024 00:08:43
[   0.000][v][cplayer] libplacebo version: v7.349.0 (v7.349.0-9-gefb8934-dirty)
[   0.000][v][cplayer] FFmpeg version: N-116830-g01f2d95fb
[   0.000][v][cplayer] FFmpeg library versions:
[   0.000][v][cplayer]    libavcodec      61.11.100
[   0.000][v][cplayer]    libavdevice     61.2.100
[   0.000][v][cplayer]    libavfilter     10.2.102
[   0.000][v][cplayer]    libavformat     61.5.101
[   0.000][v][cplayer]    libavutil       59.35.100
[   0.000][v][cplayer]    libswresample   5.2.100
[   0.000][v][cplayer]    libswscale      8.2.100

Other Information

- Windows version: 10 22h2 (pro)
- GPU model, driver and version: rtx 4080 551.86
- Source of mpv: https://github.com/shinchiro/mpv-winbuild-cmake/releases

Reproduction Steps

Have

vf=d3d11vpp=scale=2:scaling-mode=nvidia:format=nv12
interpolation
video-sync=display-resample

Then play any video. The video will be frozen, but the audio will play. UI is fine.

Expected Behavior

Video plays correctly with sound.

Actual Behavior

A snapshot of the video frame is shown, frozen in time, audio keeps playing. If you skip to a different timeframe, it shows a different video image, still frozen though.

Log File

output.txt

Sample Files

Happens with all videos it seems.

I carefully read all instruction and confirm that I did the following:

deama commented 2 months ago

Ah, after doing more testing, it looks like interpolation and video-sync are the culprit,

vf=d3d11vpp=scale=2:scaling-mode=nvidia:format=nv12

Doesn't matter.

llyyr commented 2 months ago

Can you try vo=gpu-next?

Never mind, I can reproduce locally.

Caused by https://github.com/mpv-player/mpv/commit/2a72e6cb20c2af302041a0b30dbf0d1b93990a4a

kasper93 commented 2 months ago

Caused by 2a72e6c

/cc @na-na-hi

deama commented 2 months ago

Caused by 2a72e6c

/cc @na-na-hi

Can you try vo=gpu-next?

Never mind, I can reproduce locally.

Caused by 2a72e6c

Hello,

The issue is fixed for most videos, but still sometimes happens, here's the log file for the one that happens: output.txt

Sometimes now some videos don't even open: output2.txt

llyyr commented 2 months ago

Does it only happen with vf=d3d11vpp=scale=2:scaling-mode=nvidia:format=nv12?

deama commented 2 months ago

Does it only happen with vf=d3d11vpp=scale=2:scaling-mode=nvidia:format=nv12?

No, it happens with just

interpolation
video-sync=display-resample

Here's a link to a sample file: https://drive.google.com/file/d/1ALKIg9Ff8SmqRKuieQqh4Hi4iOyzmLDV/view?usp=sharing

llyyr commented 2 months ago

I can't reproduce this time, both of your logs set vf=d3d11vpp=scale=2:scaling-mode=nvidia:format=nv12. Can you produce a log file without that set?

deama commented 2 months ago

I can't reproduce this time, both of your logs set vf=d3d11vpp=scale=2:scaling-mode=nvidia:format=nv12. Can you produce a log file without that set?

Try this one: output.txt

llyyr commented 2 months ago
[   0.114][e][ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[   0.114][e][ffmpeg/video] av1: Failed to get pixel format.
[   0.114][e][ffmpeg/video] av1: Get current frame error
[   0.114][w][vd] Error while decoding frame!

Hmm can you try this build https://github.com/shinchiro/mpv-winbuild-cmake/releases/tag/20240901 ?

llyyr commented 2 months ago

I think the msvc CI builds just don't have av1 swdec. Can you try downloading mpv-x86_64-w64-mingw32 instead?

deama commented 2 months ago

I think the msvc CI builds just don't have av1 swdec. Can you try downloading mpv-x86_64-w64-mingw32 instead?

Ah nice, thanks! It works!