Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
9th March 2019, 23:07 | #1 | Link |
Registered User
Join Date: May 2005
Posts: 1,462
|
max_cache_size frames?
How many frames does VS actually cache with 'core.max_cache_size = 32768'?
Reason I ask, is because I received the dreaded 'Display driver nvlddmkm stopped responding and has successfully recovered' error, but my ca. 60 hours-taking rendering job that I have running... DIDN'T crash. Wut?! No way it could survive a display driver crash! (Nor do I see how x264 could survive without the driver (as it's running with OpenCL enabled). So, long story short, could VS have stored thousands of frames, and that I'll only find out later, with a 'delayed' crash?! Because the 'Display driver nvlddmkm stopped responding' error alleged happened several hours ago already.
__________________
Gorgeous, delicious, deculture! |
10th March 2019, 19:42 | #2 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
raw size should be something:
Y plane size = bytes per sample x w x h U and V size = bytes per sample x w x h / subsampling (4 if 420, 2 for if 422, 1 if 444) then frame size is Y+U+V for RGB it should be 3x bytes per sample x w x h Chikuzen uses in his script this to work with memory, using stride instead of width, not sure if it could be different: Code:
frame = clip.get_frame(frame_number) data = [(frame.get_read_ptr(p), frame.get_stride(p)) for p in planes] buff = [b'\0' * data[p][1] * height for p in planes] for p in planes: memmove(buff[p], data[p][0], data[p][1] * height) Last edited by _Al_; 10th March 2019 at 20:12. |
10th March 2019, 22:31 | #3 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
VapourSynth probably won't cache as many frames as you can fit in 32768 MiB. How many it will cache depends on the script. Using more temporal filters will result in more frames being cached.
__________________
Buy me a "coffee" and/or hire me to write code! |
|
11th March 2019, 02:29 | #4 | Link | |
Registered User
Join Date: May 2005
Posts: 1,462
|
Quote:
Also, I heard VS only uses about 10% of max_cache_size for actual frames (and the rest goes towards filters). That should still be about 3G worth of frames (in this case, low-res DVD ones).
__________________
Gorgeous, delicious, deculture! |
|
11th March 2019, 02:34 | #5 | Link | |
Registered User
Join Date: May 2005
Posts: 1,462
|
Quote:
No, I didn't mean maximum number of frames per se; was just curious as to how many (ballpark figure) VS was keeping cached, to try and determine how it could be my process was still running after the driver crash.
__________________
Gorgeous, delicious, deculture! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|