Topic: Memory leak when seeking in video

Hey,

Im experiencing a memory leak.
Memory usage is constantly increasing if Im fastjumping forward or backwards in the video (arrow left and right). Its the same if Im doing more discrete jump by clicking somewhere on the progress bar. So each jump allocates like 700MB RAM, which then doesnt decrease, it just keeps increasing until I run out of RAM. Memory usage doesnt decrease even if I stop jumping in the video. It stays until I close the videoplayer. Problem is there with  all video files, but below I put the info of an example video.
If video just plays, meaning, Im not doing jumps, then memory usage is constant.

HWSW info:
Im using potlayer, 9950x3D (also with 12900k), 64GB RAM, 3080TI, win11, latest drivers.

Expected behavior would be that in some way, memory usage should decrease.

Any workaround for this?

example video details:

Format                         : Matroska
Format version                 : Version 4
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 4 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 1 h 53 min
Bit rate mode                  : Constant
Bit rate                       : 6 842 kb/s
Nominal bit rate               : 10 000 kb/s
Width                          : 1 920 pixels
Height                         : 800 pixels
Display aspect ratio           : 2.40:1
Frame rate mode                : Constant
Frame rate                     : 23.976 (24000/1001) FPS

Thanks

Re: Memory leak when seeking in video

I hope you're not using ffdshow?

Re: Memory leak when seeking in video

I found that in potplayer/filter control/Filter priority (overall)/ I have "ffdshow raw video filter" and its priority set to "prefer". I also see ffdshow icon on taskbar at bottom tight corner, so it seems I do use ffdshow.
I dont remember why I did that there, I set things up very long time ago. I was following a guide for sure, as I dont just set things like this on my own for fun smile

I tried now without frame rate conversion, (I pressed the button in SVP "do frame rate conversion" ) and memory usage was still climbing up.
Then I exited SVP completely (right click on its icon and exit), then memory usage was constant, even when I was jumping back and forth in the video.

I havent tried disablig ffdshow yet, first I would like to hear your instructions, as I really dont want to mess this up :S

Re: Memory leak when seeking in video

no idea where you found that "guide"
the only official one is here: https://www.svp-team.com/wiki/SVP:Daum_PotPlayer

Re: Memory leak when seeking in video

I dont necessarily talk about a guide for SVP setup, probably it was something else. The only thing comes into my mind is when I was trying to achieve to offload video decoding job from CPU to GPU. Anyway, more or less, this is offtopic.

I removed ffdshow and added instead avisynth there as per the guide  you linked and since then there is no memory usage increase, this was the first happyness.
But additionally, seeking in the video became quicker now, so thats happiness#2 smile

Thanks for the support!

Re: Memory leak when seeking in video

Chainik wrote:

no idea where you found that "guide"
the only official one is here: https://www.svp-team.com/wiki/SVP:Daum_PotPlayer

The guide is kinda outdated though. Such as when it asks to use DXVA2 Copy-Back, there are additional options.
D3D9 Auto and D3D11 Auto. Or to prioritize D3D11 DXVA when using DXVA

Re: Memory leak when seeking in video

After your comment I checked and I set it to "DRD12: <my videocard>", although I have no idea what this does.