no - even with -keep-open=yes and -keep-open-pause=no I´m not able to reproduce this with the command line mpv player. When playback starts a small portion of VRAM is occupied, when the file ends and the next one in the folder starts playing VRAM usage drops (or rises) to the amount that is needed for the new file. When mpv is done playing all files in the folder and is showing the last frame of the last file (mostly a black frame) VRAM usage is as high as at the beginning of playing the last file. After quitting mpv VRAM usage drops to the amount before mpv was opened.
As far as I could test this it is per-playback - while playing back a file the VRAM usage does not increase significantly (I´ve seen some variation - high bitrate parts needed a bit more VRAM but that usage dropped to the first occupied amount after the high bitrate part was over)
But to be more precise I will test this with a longer file.
Yes,
4K files use the most therefore VRAM is filled faster - 1080p files are noticeable but not that extreme and 720p material is almost not noticeable.
The amount of VRAM that is used for a file is the same size as when played with the command line player.
(4K File ~ 200/300mb VRAM, 1080p File ~ 70-100mb)
no - also with hwdec=no in the cli player I could not trigger the problem.
Plex HTPC with hardware decoding deselected/disabled still shows the problem of VRAM usage increasing after each file. The VRAM usage per file is lower tho (same in the mpv cli player)
YES!!! With gpu-context=winvk being set in the mpv.conf VRAM is flushed correctly after each file.
This applies to vo=gpu and vo=gpu-next + hwdecoding enabled/disabled
(hwdec being dxva2-copy only)
Logs:
Plex HTPC-gpu-next-winvk.log (360,0 KB)
Plex HTPC-gpu-next-winvk-hwdec.log (406,6 KB)
Plex HTPC-gpu-winvk.log (189,7 KB)
For testing purposes, I set Plex HTPC to use angle (Playback quality “Normal (Angle)”) and also with this gpu-context VRAM is flushed correctly after playback. So this is a gpu-context=d3d11 issue of some sort although I was not able to reproduce it with the standalone player.
The mpv version I used in the cli - it is the same one I used to test this behavior with Plex HTPC.
If desired I can provide this mpv build to you.
[cplayer] mpv 0.34.0-265-g305332f8a0 Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
[cplayer] built on Sat Apr 16 16:39:38 UTC 2022
[cplayer] FFmpeg library versions:
[cplayer] libavutil 57.24.101
[cplayer] libavcodec 59.26.100
[cplayer] libavformat 59.22.100
[cplayer] libswscale 6.6.100
[cplayer] libavfilter 8.33.100
[cplayer] libswresample 4.6.100
[cplayer] FFmpeg version: git-2022-04-15-4e98cc29f
[cplayer]
(I hope my explanations are understandable - I´m not a native English speaker)