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. |
|
|
Thread Tools | Search this Thread | Display Modes |
26th August 2008, 12:57 | #101 | Link |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
It's not an OS problem, as memory fragmentation only happens inside a program's address space - an x86 OS only hands out memory in pages (usually 4 kB in size) which don't have any fragmentation issues.
It's up to each application and/or library to support the memory management it wants/needs - but usually it's just malloc()/free() and that's that. Java or C#/.NET CLR on any platform will garbage collect/compact memory without a hitch, but for C/C++ your program and all libraries it uses need support for doing that. Usually it's just garbage collection and no memory compaction since that needs knowledge where the pointers in your objects are *AND* a mechanism to make sure nothing accesses the objects you're compacting while the compaction is being done... But unless your OS is 100% managed (like MS's Singularity) it's up to the applications/runtime libraries to support all this, not the OS itself.
__________________
now playing: [artist] - [track] ([album]) |
26th August 2008, 13:18 | #102 | Link |
Registered User
Join Date: Dec 2007
Location: VA, USA
Posts: 116
|
I recently pulled down V2.5.8 RC3 and tried to compile. I successfully got it to compile but there were >600 compiler warnings.
One could argue whether the secure versions of the library functions are really needed or whether some of the typecast are needed - IMO some of them are. But there were also a significant number of variable scoping problems. Below is source code and diffs to sourceforge version. http://rapidshare.com/files/14023423...2.5.8.rar.html http://rapidshare.com/files/14023423...mpare.rar.html Also, there does not seem to be a debug version of the devil.lib included. Heopfully some of these changes will improve this already great product. |
26th August 2008, 18:35 | #103 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
Long ago, I worked on an Algol68 compiler whose garbage collector started collecting itself. Talk about disappearing up your own backside... [@IanB: Sorry for going off-topic] Last edited by Gavino; 27th August 2008 at 11:12. |
|
27th August 2008, 00:00 | #104 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
The other part about running out of address space at 1.3GB usage is that Windows is a Virtual Memory environment. You really should be checking the amount of VM allocated to the process as well. And do not forget, in that 2Gb of available address space also lives the code, data and stack segments. 1.3GB is an incredible amount of memory. To get some context it is room for 170 high definition rgb32 frames or 2700 standard definition YV12 frames. The most temporally demanding filters may need upto 15 frames from the cache. Unless a given frame is requested more than once in a script the cache can offer no performance increase.
And talking about garbage collection and compaction environments here is off topic, this thread is about problems with version 2.5.8 Release Candidates, currently number 3. Please open new threads to discuss all these other interesting but off topic subjects. Also release candidate means we are in Mortein/Baygon* the last few bugs just before we push the product out the door mode. We do not make radical changes like switch compilers or start using the "safe" libraries. * - Bug spray products. |
31st August 2008, 06:50 | #106 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Changelist with respect to 2.5.8 RC3: See 1st post for full change list.
Additions: * Updated Japanese documentation [20080813] (Niiyan). Bugfixes: * Fixed DirectShowSource() grey frames after end of stream + 30 frames. * Fixed Histogram() Classic mode restore graph brightness. Regression. * Fixed Compare() graph pixel values exceeding YUV limits. * Fixed AddBorders() args negative value clamping. Changes: * Initial Memory Max value clamped to 512MB. * Default Memory Max value restored to quarter of Free memory. Minimum 16Mb. As per 2.5.7. As usual download from Sourceforge. Enjoy! If we do not find any show stopper problems this could become the official 2.5.8 release. Last edited by IanB; 4th September 2008 at 00:50. Reason: http://sourceforge.net |
31st August 2008, 19:44 | #107 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
IanB, I try translate changes.
What is difference: "Initial Memory Max value" (< 512 MB) versus "Default Memory Max value" (quarter of free, >16 MB)? It is same parameter? EDIT: So, what is (memory) changes "with respect to v2.57" ?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. Last edited by Fizick; 31st August 2008 at 19:50. |
31st August 2008, 23:32 | #108 | Link | ||
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Quote:
Quote:
The Maximum of 512MB is new, i.e. on a Vista64 with 4GB free 2.5.7 would start with a 1GB MemoryMax and could possibly crash out the 2GB address space limit, now 2.5.8rc4 limits to 512MB. Earlier 2.5.8's used 50% of the free and crashed out the 2GB address space limit even easier. All this just effects the Default or Initial MemoryMax value. Users can still use SetMemoryMax() to set higher or lower limits to get themselves into trouble. |
||
3rd September 2008, 18:37 | #109 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
IanB,
1. Thanks. 2. May be you (we) can somehow summarize some of the 2.5.7 to 2.5.8 changes for releasenotes.htm? To provide the most important changes here. Now it simply duplicates the changelist.htm Similar to "DirectShowsource improvements,..." Thoughts ? 3. Your sourceforge link is https instead of http
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
3rd September 2008, 21:58 | #110 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
8th September 2008, 18:08 | #113 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Ian, not related to summary, but please do not skip: I make some small changes (mostly typos of russian doc) at CVS
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
9th September 2008, 16:54 | #115 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
I do not asked for it
But I ask somebody look to uptated description of ConditionalFilter (I do not use it much) at CVS http://avisynth2.cvs.sourceforge.net...?r1=1.6&r2=1.7 and wiki http://avisynth.org/mediawiki/ConditionalFilter
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. Last edited by Fizick; 9th September 2008 at 17:07. |
9th September 2008, 18:22 | #117 | Link | |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
IMO, AverageLuma(clip) and similar expressions with numeric result are not filters, but functions (in ConditionalFilter).
Filter must return filtered clip (in ScriptClip). Previous text used "filter" and "function" in not consistant manner. There were also some other non-clear fragments like this for ConditionalFilter: Quote:
Why internal and predefined only? What about plugin or user script functions? The right changes are not obvious for me, it is hard topic for me, and proper English too, that is why I ask for discusssion.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
|
9th September 2008, 18:33 | #118 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
This was before I saw Fizick's conversation with Wilbert, but I think that just confirms what the issue was, and I agree with Fizick. |
|
10th September 2008, 04:35 | #119 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Gavino,
O.K. I also added current_frame to list (see wiki). Waiting for comments from Wilbert (and others), then shall update CVS.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
Thread Tools | Search this Thread |
Display Modes | |
|
|