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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st February 2020, 18:00   #41  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,490
Quote:
only able to address 3,5 GB, right?
32 bit, 2GB for User space, 2GB kernel [theoretical, even if only eg 512MB ram, Pagefile steps in].
If app has some flag set [Large Address Aware] then can have 3GB user space [1GB kernel].
Some systems cannot access about last 0.5 GB of RAM for some reason [hardware address mapping I think],
not sure if that affects all systems, perhaps G2K4 likes to chime in.

EDIT: OK, he did go BONG.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 21st February 2020 at 18:34.
StainlessS is offline   Reply With Quote
Old 21st February 2020, 20:31   #42  |  Link
JackBrody
Registered User
 
Join Date: Feb 2020
Posts: 11
Quote:
Originally Posted by Groucho2004 View Post
On a 64 bit OS it's very close to 4GB. Nevertheless, you're really hitting that limit.
Never mind I will stay with 64-bit Avisynth.
BTW will you have time to fix the problem with bottom-aligning text in SubtitleEx plugin?


Quote:
Which memory size? Total? Remaining? For the active process I presume?
I meant physical memory but it would be already there if you considered it important.
JackBrody is offline   Reply With Quote
Old 21st February 2020, 23:19   #43  |  Link
Groucho2004
Cranky Fossil
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,571
Quote:
Originally Posted by JackBrody View Post
BTW will you have time to fix the problem with bottom-aligning text in SubtitleEx plugin?
I did look at it and it depends on the font size. With smaller fonts there is no problem. I don't know how to fix this, maybe someone with more experience in device contexts and plugin development can have a go (Stainless?).
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 22nd February 2020, 19:54   #44  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,490
G2K4,
How did you fix the original source, [did you use original Internal.h ? and what fixes for eg LPCWSTR].
I have zero knowledge of that wide character stuff, I've always avoided that like the plague,
[given your profession it is unlikely that you are in the same boat].
I also know little of Std CPP library [never used since about 1997 EDIT: Actually ~April 1996] and absolutley nowt about CPP Std Template Library.
If you post or PM your altered source, maybe I'll have a try, thanx.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 22nd February 2020 at 19:58.
StainlessS is offline   Reply With Quote
Old 22nd February 2020, 20:29   #45  |  Link
Groucho2004
Cranky Fossil
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,571
Quote:
Originally Posted by StainlessS View Post
G2K4,
How did you fix the original source, [did you use original Internal.h ? and what fixes for eg LPCWSTR].
I have zero knowledge of that wide character stuff, I've always avoided that like the plague,
[given your profession it is unlikely that you are in the same boat].
I also know little of Std CPP library [never used since about 1997 EDIT: Actually ~April 1996] and absolutley nowt about CPP Std Template Library.
If you post or PM your altered source, maybe I'll have a try, thanx.
Here are the sources for 32 & 64 bit. Ignore the 64 bit source, you can't build it with VC. The only changes I made in the 32 bit source are the AVS+ headers including the usual changes (AVS_Linkage, ...). There's no wide character/Unicode stuff in there.

Edit - One more thing: I copied the PixelClip class definition from internal.h since it is not present in the AVS+ headers.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 22nd February 2020 at 20:39.
Groucho2004 is offline   Reply With Quote
Old 24th February 2020, 15:12   #46  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,490
Thanks G2K4, I've got em, not had time to take a gander yet.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old Yesterday, 21:22   #47  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,490
Mods to previously posted Japanese -> English translation of docs.

Code:
====================================
 AVISynth plug-in SubTitleEx
====================================

Overview
----

AVISynth plug-in SubTitleEx Kai is a subtitle display plug-in for AVISynth 2.5.
There are many enhancements over the AVISynth standard SubTitle.

It was published on a currently closed site called "mVideo Utilities"
Based on "SubTitleEx" created by Basilik Tournadski, Japanese characters are garbled
It has been corrected. In addition, a function to set the presence / absence of line breaks and line spacing has been added.

"SubTitleEx" had source code released in the past, but it is not available now,
It happened that the source code was left in the Internet Archive.
Based on "DVTimeStampEx" that incorporates SubTitleEx's character display engine,
Created one with a function equivalent to "SubTitleEx".


How to use
------

SubtitleEx.dll is added to the "Plugin" folder of the folder where AviSynth is installed.
It can be used just by copying.

All functions of the original SubtitleEx are implemented, and if some "useless characters" are included
A garbled problem has been fixed. In addition, SubTitleEx breaks
Parameters have been added.

SubtitleEx(
    clip   c,
    string text,
    int    "x",
    int    "y",
    int    "firstframe",
    int    "lastframe",
    string "font",
    string "effects",
    int    "size",
    int    "textcolor",
    int    "halocolor"
    int    "spc"
    int    "linemargin"
)


 Parameters of SubtitleEx

  -c          Non optional clip.
  -text       The text to display (Default ""). If you want to start a new line, write "|" at that point.
  -x          The coordinates to display (Default c.Width  * -0.11). If you specify minus, it will be from the right.
  -y          The coordinates to display (Default c.Height * -0.17). If you specify minus, it will be from the bottom.
  -firstframe The number of the first frame to display (Default 0).
  -lastframe  The number of the last frame to display (Default, Last frame of clip c).
  -font       Specify the font name (Default "Arial").

  -effects    Specifies effects (Default "b"). If you specify more than one, write them together.
                     b: Bold i: Italic u: Underline o: strikeOut/strikethrough
                     f  (number of frames in, number of frames out): fade-in / out
                     m  (start frame, start X, start Y, end frame, end X, end Y): motion
                     w  Line breaks with "|" are disabled. (Added by SubTitleEx Kai)
                     c: Center (not sure that it works properly)
                     n: No Anti Alias
                     e: Alpha Emboss
                     s: Alpha Blur
                     g: Alpha Gaussian Blur
                     l: Alpha Laplacian (not sure if working properly)
  -size       Font size (Default 36).
  -textcolor  The text color (Default $FFFFFF). Alpha can also be specified.
  -halocolor  The color of the text halo (Default $000000). Alpha can also be specified.
  -spc        number Specify the character spacing. (Default 0, Added by SubTitleEx Kai)
  -linemargin number Specify the line spacing.      (Default 0, Added by SubTitleEx Kai)

              NOTE, In original SubTitleEx Kai docs,
                  spc and linemargin order was transposed (ie wrong).
                  Effects "s" (Strikethrough) was wrong, should be "o" (strikeOut, as above).
                  Effects "cnesgl" were all missing from doc (well 's' did Alpha  Blur rather than StrikeThrough).
                  EDIT: Above "nesgl" effects should perhaps be mutually exclusive.


Notes
--------


If you do not change the format to RGB32, etc., you may crash.
In this case, convert the format.


license
----------

The copyright and license for "AVISynth Plug-in SubTitleEx Kai" are
Based on the original "SubTitleEx" and "DVTimeStampEx" by Basilik Tournadski.

These plug-ins are copyrighted by Basilik Tournadski and are free software.
Was published.

However, since this plugin is completely unofficial,
Do not contact the original author. Also, about this plugin,
The original author and modified author do not take any responsibility.


Modified author / distributor
------------------

Hoshiken (http://hosiken.jp/)
Updated:
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; Today at 02:09. Reason: update
StainlessS is offline   Reply With Quote
Old Today, 01:51   #48  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,490
Previous post updated/Added, in RED.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; Today at 01:55.
StainlessS is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.