Quantcast Ping-Pong Prediction vs Long-Short Prediction - digitalFAQ.com Forums [Archives]
  #1  
11-23-2003, 06:19 AM
Abond Abond is offline
Free Member
 
Join Date: Mar 2003
Posts: 243
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,
Here I would like to present the results from some testing in file size prediction.
Some details:
For ping-pong was used gl=2 and sa=5. Offset was the value which the "subtitle" script posted by incredible gave me.
For long-short prediction was used SelectRangeEvery(480,24) for 5% and SelectRangeEvery(2400,24) for 1% of the movie. This is the routine which is implemented in ToK, but different sample length.
Quote:
Ping-pong prediction
134163 frames Wanted video size = 742611 KB
Calculated sample size = 14612,8 (14613)KB
1. CQ=60 7:44min 11011 KB
2. CQ=65 7:44min 12987 KB
3. CQ=70 8:00min 13453 KB
4. CQ=71 7:54min 14944 KB
5. CQ=70.5 8:06min 14301 KB
6. CQ=70.6 8:03min 14344 KB
7. CQ=70.7 8:03min 14476 KB
8. CQ=70.7 7:42min 14981 KB pong 49 average=14728 too big
9. CQ=70,6 7:50min 14776 KB pong 49 average=14560 match!
Total time for prediction=71:06min
Encoding 70.6 the final size is 766328 KB ~ 20 MB oversize.

Long-short prediction
Calculated sample size 5% = 37196 KB
5% 6720 fr. CQ60 21:09min 30561 KB

1% CQ60 4:21min 5898 KB
The relation
30561 -> 5898
37196 -> X X= (37196*589/30561 = 7178.49 (7179)
1% sample size should be 7179 KB
1% CQ65 5:01min 6936 KB
1% CQ70 4:20min 7204 KB match!
Total time for prediction 34:51min.
Encoding CQ70 the final size is 719362 KB ~ 20 MB undersize.
Second movie
Quote:
Ping-pong prediction
177797 frames Wanted video size = 720530 KB
Calculated sample size = 14395 KB
1. CQ=60 9:42min 13808 KB
2. CQ=65 9:19min 16450 KB
3. CQ=62 9:17min 13816 KB
4. CQ=63 9:22min 14779 KB
5. CQ=62.5 9:40min 13968 KB
6. CQ=62.5 9:22min 14807 KB pong 48 average 14387,5 match!

Total time for prediction=56:42min
Encoding 62.5 the final size is 696387 KB

Long-short prediction
Calculated sample size 5% = 36084 KB
5% 8904 fr. CQ60 25:02min 35399 KB

1% CQ60 5:24min 7172 KB
The relation
35399 -> 7172
36084 -> X X= (36084*7172)/35399 = 7311 KB
1% sample size should be 7311 KB
1% CQ65 5:01min 8476 KB
1% CQ62 5:02min 7176 KB
1% CQ63 5:02min 7654 KB
1% CQ62.5 5:04min 7251 KB
1% CQ62.6 5:05min 7335 KB match!
Total time for prediction 55:40min.
Encoding CQ62.6 the final size is 705064 KB
And third
Quote:
Ping-pong prediction
190588 frames Wanted video size = 713428 KB
Calculated sample size = 14195 KB
1. CQ=60 9:58min 13631 KB
2. CQ=62 10:03min 13639 KB
3. CQ=63 9:50min 14673 KB
4. CQ=62 9:52min 13496 KB pong 48
5. CQ=62.5 11:18min 13620 KB pong 48
6. CQ=62.7 10:35min 13999 KB pong 48
7. CQ=62.7 9:43min 14165 KB ping
8. CQ=62.8 14:02min 14328 KB ping
9. CQ=62.8 10:13min 14163 KB pong 48
Decission - should be 62.75

Total time for prediction=96:01min
Encoding 62.75 the final size is 721065 KB

Long-short prediction
Calculated sample size 5% = 35756 KB
5% 9552 fr. CQ60 31:27min 35725 KB

1% CQ60 5:34min 7011 KB
The relation
35725 -> 7011
35756 -> X X= (35756*7011)/35725 = 7017 KB
1% sample size should be 7017 KB
1% CQ62 5:36min 7016 KB
1% CQ62.5 5:34min 7080 KB
1% CQ62.3 5:40min 7017 KB match!
Total time for prediction 53:51min.
Encoding CQ62.3 the final size is 690121 KB
And the winner is... Well, I would not say there is the winner, because I am using ping-pong for first time, and maybe I am doing something wrong. I will try to connect somehow both approaches, for example to run a pong determining the CQ with the 1%, or something similar. So, more testing...
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-23-2003, 08:02 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Hi Abond,

nice to hear some one else is testing!
Well ... I never had that big differences between wanted and final outputsize! And never that oversized

Whats the formula you use to calculate the reference size to match?

Yesterday I feeded the ping pong way with American Beauty, where in case of this movie I everytime had problems, no matter what prediction appl. used. The American beauty stream runs via avisynth and got Kwags new MA Routine!! ... and final output was very very close. about 8 MBs less gl set to 2 and sa also set to 5 which I everytime use.


Well when analyzing your encoding sizes I can see that at these movie examples the difference between the Ping and the pong output isn't that high! Which means that the offset turn didn't show big differences in scenes which wheren't inspected by the ping turn.

Because not every movie got such irritating differences between "conventional" sliced szenes.

But in my test I got 2-3 Movies where the Difference at 2% Movie-Sample-size was about 0,5-1,5MB! And thats where you see the advantage in doing this.

Borax's CQ Tester also uses Offsets but calculates the reference in a different way and other diff. things..

Here you can see how the Offset-way within my routine works:



And to be safe to hit the middle of the ping slicing I tried to add the "offset recommendation". I hope its calculated well.

Yesterday I wrote the AVS Routine as a function, so you can safe it as .avsi and put it in your AVS Plugins Folder.

Just add below your script the following syntax

Slicer (clip c, int "percent", int "gop", int "off", int "gl", int "subs")

Explanation:

percent= percentage of the whole movie wich will be used prediction
(default=2 this means NOW logically 2%!!!)

gop= The length of you GOP you'll use to encode, so DVD(PAL) is 15 KVCD is 24, this has also to be understand as Samplelength!
(default=15 so set es default to std. PAL)

off= The offset where the sampling begins which is needed for Ping/pong prediction!
(default=00 so the sampling begins at Frame 0!)

gl= GOPlength multiplicator, this means by how much u want to enlarge the Samplelength which has to be GOP based!

subs= Gives you a Subtitle where you can find the recommendation for Offset settings! Use this the first time you just preview your script to see the recommended settings refering to "off"!
(default= 0 this means off, 1 = subtitel/recommendation active)


And here's the function which you can safe for example as "Slicer.avsi" and put in the Avisynth Plugins Folder so the Syntax as shown above will work:
Code:
 ############################################################### 
## GOP length & movie percentual based slicing script 1.0b3 ###
############# Including calculating Offset Sizes ############## 
########### In case of Problems please contact me  ############
############### incredible at KVCD.net/forum ##################
############################################################### 
#

function Slicer (clip c, int "sa", int "gop", int "off", int "gl", int "subs") {
off=default(off, 0)  
gop= default(gop, 15)  
gl= default(gl,2)  
sa= default(sa,2)  
subs = default (subs, 1) 
Frames=framecount(c)
Framer=framerate(c)
Offset=round(Framer*off)
c=Trim(c,Offset,0)
c=Subs >= 1 ? Subtitle(c, text_color=$999999 ,size=16,\
"Offset set to : "+String(off)+" sec.  "+\
"(Offset intervall should be: 0 sec. / "+\
String(Round(((Frames/Framer)/60)/(round(((Frames)/100)/(gop*gl))*sa)*60)/2)+" Sec.)",10,18 ) : \
Subtitle(c," ",10,18 )

c=sampler(c,samples=(round((Frames)/(gop*gl)/100*sa*1.009)), Length=(gop*gl))

Return c
}
################################################################
Now you only see the recommendet Offset values as they are the only ones which are really needed to know.


How to do a prediction using this Command:

1. Encode your audio to mp2 and watch in the windowsexplorer how much Kbyte it takes

2. Add the Slicer() at the end of your existing script and configure it refering to your final encode I suggest 2% of total movie which has to be used for prediction, enter the lenght of your used GOP and set the GOP multiplikator to 2 (this means 2times GOPlenght as Samplerlength). The Offset has to be set to 0.

3. Preview your .avs and note the second offset value recommendation!

4. Now calculate:
Whole muxed size minus Muxing overhead in Kbyte, substract also the audiosize in Kbyte as you can see it in the WindowsExplorer.

So we finally want to have a 795MB muxed moviestream to burn on CDr80. In this case: 795-10=785 .... 785x1024= 803840 Kbyte ..... 803840 Kbyte - 119808 Kbyte (assuming for audio) = 684032 Kbyte!!!
Now the next calculation depends on what percentage you have set for prediction, we assume (and I reccomend) 2%, therefore 684032Kbyte / 100 *2 = 13.681 Kbyte !! That is the Reference Size we have to match cause its 2% of the Final Streamsize.

5. Configure your Encoder to CQ (or Q) (GOP settings set to the exact Gop Length as set in the Slicer()!!!) and import your .avs including the Slicer().

6. Assume a CQ to set in the encoding setting to start with.

7. RUN!

8. You see that the Sampler will be encoded, after encoding you have to watch the encoded size and compare it to the reference size.... already close?? Well if not just rise or lower the CQ value in the encoder and do a new encoding as much times as its needed to get very close to the reference size. If you are almost close (like 10% to the reference size) you do a "Pong". This means that this kind of Prediction uses a Ping-Pong Method and therefore an Offet of 0 is a Ping and a Offset set to the recommended value you noted when previewing you avs.. is a Pong!
So if you are close like 10% to the nedded size perform a pong by just setting the int "off" in the Slicer() to the recommended value. Safe your .avs again and run TmpgEnc again (no source reloading needed! and leave the CQ as used as in the last turn!!!!).
You will see that the Prediction now uses different Scenes than when performing the Ping Sampling! And thats also why we will get very accurate cause by performing an offset there will be more different scenes encoded.. and therefore we obtain a better average of scenes which will be calculated to the whole prediction.

9. Now ... do you see a difference between the last outputted size and this one? Regulary yes! So you can see how both predictions behave.

10. Now continue performing Pongs by rising/lowering the CQ and keep in mind the difference to the ping! Now when you are very close to the needed size and the ping size keeped in mind, you perform a last "safe"-Ping (offset=0) ... and if the average of Ping and pong outputs matches the reference size ... go into your avs script an deactivate the Slicer() line re-safe it and do your full encode!!

Here is a sample report where you can see how to approach to the needed CQ (I everytime mention the CQs and Offsets in my filenames so I will have a good overview):



The first time it will a bit complicated or it will take some time, but you will very soon get a "feeling" for this and so you will be faster the next time

If you want you can add a safety margin to your calculation of the refered size above ... Well Im happy without but every user got different experiences so in your cases add or substract a factor to your reference size to match the needed final sizes .
Reply With Quote
  #3  
11-23-2003, 09:30 AM
Abond Abond is offline
Free Member
 
Join Date: Mar 2003
Posts: 243
Thanks: 0
Thanked 0 Times in 0 Posts
The formula:
( Wanted video size/framecount)*frames in sample = refrence sample size
Slicer - very nice! New stuff to play with!
BTW after short examination of the ping-pongs I and the sizes they produce it seems that the difference between them for the same CQ is almost constant!
13996-12815=1181 and 13467-12291=1176 but this are KB, maybe in bytes they will match!
In my case (movie 3) I have 14328-14163=165
and 14165-13999=166
The other two are different though. Just a thought.
Currently I am testing long-short adjusting the reference with ping-pong for 1% sample. The reference file size increase. I think I just found a cure for permanently undersized files using long-short in the range 10-25 MB.
Well, will see after almost 4 hours.
Reply With Quote
  #4  
11-23-2003, 11:48 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Hi Abond ,

Quote:
BTW after short examination of the ping-pongs I and the sizes they produce it seems that the difference between them for the same CQ is almost constant!
Yep, theorethically!
I discussed this with Krassi too. So theoretically you only would have to do one "pong" to see how the "other" slices do behave....

BUT! If Ping or Pong ... both are encodings don using CQ and we know that CQ is not linear ... so it could happen that if you figure out at a very beginning of the prediction turns, a difference of about 1024 Kbyte results .... at the end of your prediction there could result a difference of 512 Kbyte! So be safe and do a final "to be safe"-Pong at the end ... as I think you did.
I everytime do it like this:
I do a Ping and a Pong on a assumed CQ (fist turn)... ok. this gives me a ca. behaviour of bboth samples (ping & Pong).
Now I contiunue predicting using only pings ... until I get very very close to the Reference size BUT also the difference of the pong still in mind!
Finally I do the safe-pong and see if the average matches the reference. After this ... deleting the Slicer() in my Source Script - resaving the source.avs and let TmpgEnc do the whole Job.
I hope you did understand that you dont need at every turn to reload the source .avs in Tmpg! Just change the values of offset in the sclicer() in your source, resafe and hint again "start" in TmpgEnc ... you will see if he got the offset change!

Quote:
13996-12815=1181 and 13467-12291=1176 but this are KB, maybe in bytes they will match!
You see! It could be a lot when finally getting the full encode

1024Kbyte Difference at 2% = would be a 50MBs failure on a final encoding ... and thats why the offset makes sense.

Maybe we all will figure out how much safety margin is needed or so on which has to be implementated in this manual way but I think the offset/movie-percentual/GOP - Based Prediction "could" give nice results on difficult to predict movies. But as Kwag said .... you will never be away of this tricky non-linear CQ .. until this will be fixed in TmpgEnc.

Reply With Quote
  #5  
11-23-2003, 01:21 PM
Abond Abond is offline
Free Member
 
Join Date: Mar 2003
Posts: 243
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
13996-12815=1181 and 13467-12291=1176 but this are KB, maybe in bytes they will match!
What I meant is a bit different. Well, maybe I am not right, but I assume the Explorer rounds the values from bytes to KB. So, for example, 13996 KB can be 13995700 bytes. Therefore, this difference in the difference is due to the rounding the bytes values to kilobytes . Well, I didn't calculate if with the current values quoted above it is at all posible . Maybe I will do it tomorrow.
Quote:
So be safe and do a final "to be safe"-Pong at the end ... as I think you did.
Yes, I did it,but, sorry to say, in fact I'm using as default the long-short prediction. Of course I'm very thankful that you give me the idea for ping-pong method and it seems it will adjust very fine long-short approach. What I found in the method is that it save time and is almost so precise as any other method.
Reply With Quote
  #6  
12-10-2003, 07:32 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@incredible (or anyone else who can help )

I added the line: "Slicer(clip c, int "percent", int "gop", int "off", int "gl", int "subs")" last in my script, but I get an error in Mediaplayer. It says "Expected a, or )". What does this mean? Could you please explain once again how to use this slicing routine?
__________________
AudioSlave
Reply With Quote
  #7  
12-10-2003, 08:28 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
This is my script:
Quote:
### AudioSlave's static script - December 10th, 2003 ###
#
Import("D:\Rippat\Slicer.avs")
#
Mpeg2Source("D:\Rippat\Terminator 3\Terminator 3.d2v")
#
FluxSmooth(6, 2)
LanczosResize(448, 416, 11, 0, 698, 576)
FluxSmooth(3, 1)
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
BlockBuster(method="noise", detail_min=1, detail_max=3, variance=0.1, seed=1)
AddBorders(16, 80, 16, 80)
#
Slicer()
#
###
And this is how the "Slicer.avs" looks:
Quote:
################################################## #############
## GOP length & movie percentual based slicing script 1.0b3 ###
############# Including calculating Offset Sizes ##############
########### In case of Problems please contact me ############
############### incredible at KVCD.net/forum ##################
################################################## #############
#

function Slicer (clip c, int "sa", int "gop", int "off", int "gl", int "subs") {
off=default(off, 0)
gop=default(gop, 25)
gl=default(gl, 2)
sa=default(sa, 2)
subs=default(subs, 1)
Frames=framecount(c)
Framer=framerate(c)
Offset=round(Framer*off)
c=Trim(c,Offset,0)
c=Subs >= 1 ? Subtitle(c, text_color=$999999 ,size=16,\
"Offset set to : "+String(off)+" sec. "+\
"(Offset intervall should be: 0 sec. / "+\
String(Round(((Frames/Framer)/60)/(round(((Frames)/100)/(gop*gl))*sa)*60)/2)+" Sec.)",10,18 ) : \
Subtitle(c," ",10,18 )

c=sampler(c, samples=(round((Frames)/(gop*gl)/100*sa*1.009)), Length=(gop*gl))

Return c
}
################################################## ##############
And when I run my script in MediaPlayer it says: "Sample: Output frame count must be < input framecount"
What am I doing wrong? I'm really interested in trying this prediction method! Desperate for help... :banghead:
__________________
AudioSlave
Reply With Quote
  #8  
12-11-2003, 04:10 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Audioslave,

Zaks in the german forum got exactly the same error and it was solved when he reinstalled AVS 2.53!

Another Point:
Don't use just Slicer()

You should set it to the needed parameters here an example as folowwed:

Slicer(2,24,00,2,1)

This means (2% of whole movie will be sliced, 24 (KVCD) frames in a GOP are used when encoding, offset is set to 00, one slice (GOP) will be multiplicated 2 times, and 1 stands for that subtitle for offset determination is on)

BTW the size of the subs are opimated for a view within a 480 x XXX size, so if you want to see the subs in a 352 x XXX you have to decrease the fontsize in the avsi doc.
Code:
c=Subs >= 1 ? Subtitle(c, text_color=$999999 ,size=16,\
There you see the "size=16", just correct it to 12 if needed

Cheers
Inc.
Reply With Quote
  #9  
12-11-2003, 11:34 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you, Incredible. I installed AviSynth 2.5.3 and changed the Slicer parameters, and what do you know - it works! Thanks!
__________________
AudioSlave
Reply With Quote
  #10  
12-12-2003, 02:39 PM
mfb mfb is offline
Free Member
 
Join Date: Oct 2002
Location: Austria
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
@incredible,

when i use 'slicer(2,15,00,2,1)' at the end of my script, i get the error-
message 'Sampler: output frame count must be < input frame count'...

mmh, any ideas??? - tnx in advance

regards, ***mfb***
Reply With Quote
  #11  
12-12-2003, 03:26 PM
zaks zaks is offline
Free Member
 
Join Date: Jun 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
@mfb

install avisynth 2.53!

gruß
zaks
Reply With Quote
  #12  
12-13-2003, 04:36 AM
mfb mfb is offline
Free Member
 
Join Date: Oct 2002
Location: Austria
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by zaks
@mfb

install avisynth 2.53!

gruß
zaks
Thanks zaks!

i installed avisynth 2.53 and it worked fine.
my first try with ping-pong prediction gave me quite accurate results
(~ 10 MB less than wanted filesize for the muxed videostream predicted
for a CDR-100 media)

regards, ***mfb***
Reply With Quote
  #13  
12-14-2003, 11:33 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Hell yeah!
Just finished encoding Terminator 3 - 800,99 MB muxed! Amazing.
This is how I calculated:
Quote:
Terminator 3: Rise of the Machines
=================================

800 * 1024 = 819200
(CDSpaceInMB * 1024 = CDSpaceInkB)

819200 - 100480 = 718720
(CDSpaceInkB - AudioInkB = VideoInkB)

718720 / 100 * 2 * 1,05 = 15093,12
(VideoInkb / 100 * 2 * Factor = WantedSampleSizeInkB)

Wanted sample size = 15 093,12 kB
Wanted video size = 701,875 MB - 10 MB (Overhead) = 691,875 MB
Encoded video size = 711 473 kB = 694,7978515625 MB

CQ60,00 = 13 806,5 kB
CQ65,00 = 15 804,5 kB
CQ64,00 = 15 438,5 kB
CQ63,00 = 14 539 kB
CQ63,50 = 15 027,5 kB
CQ63,60 = 15 116,5 kB
CQ63,55 = 15 067,5 kB ~ match!


Offset intervall 0 sec / 50 sec.
I used the audio size I got from CalcuMatic.
Thank you Incredible! This "Slicer Routine" is great! Keep up the good work.
__________________
AudioSlave
Reply With Quote
  #14  
12-16-2003, 02:18 AM
VORTECH VORTECH is offline
Free Member
 
Join Date: Dec 2003
Location: USA
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Incredible,

What am I missing here?

Here's my main AVS Script

Quote:
## DLL Section ##
Import("D:\Ripped\Slicer.avs")
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\Ripped\freq.d2v")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 480, overscan=1)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#
Slicer(2,24,00,2,0)
####
And here's my Slicer.avs file
Quote:
################################################## #############
## GOP length & movie percentual based slicing script 1.0b3 ###
############# Including calculating Offset Sizes ##############
########### In case of Problems please contact me ############
############### incredible at KVCD.net/forum ##################
################################################## #############
#

function Slicer (clip c, int "sa", int "gop", int "off", int "gl", int "subs") {
off=default(off, 0)
gop= default(gop, 15)
gl= default(gl,2)
sa= default(sa,2)
subs = default (subs, 1)
Frames=framecount(c)
Framer=framerate(c)
Offset=round(Framer*off)
c=Trim(c,Offset,0)
c=Subs >= 1 ? Subtitle(c, text_color=$999999 ,size=16,\
"Offset set to : "+String(off)+" sec. "+\
"(Offset intervall should be: 0 sec. / "+\
String(Round(((Frames/Framer)/60)/(round(((Frames)/100)/(gop*gl))*sa)*60)/2)+" Sec.)",10,18 ) : \
Subtitle(c," ",10,18 )

c=sampler(c,samples=(round((Frames)/(gop*gl)/100*sa*1.009)), Length=(gop*gl))

Return c
}
################################################## ##############
When I run it through Media Player I get the following error:

"There is no function named Sampler"
D:\Ripped\freq.avs line 25
D:\Ripped\Slicer.avs line 54

Any Ideas?
Reply With Quote
  #15  
12-16-2003, 02:26 AM
zaks zaks is offline
Free Member
 
Join Date: Jun 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
missing sampler.dll for avisynth 2.52 /2.53

regards
zaks
Reply With Quote
  #16  
12-16-2003, 06:30 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Be shure you installed avisynth 2.53 and downloaded and installed the sampler version 2.5

www.incredible.de.tf/Downloads/Sampler-2.5.rar


BTW Vortech ...

You should delete the

MergeLuma(blur(0.1))

in your MA Script as the new MA routine now unfilters (blurs) linear without threshold settings, in combination with this MergeLuma(blur(0.1)) your image will end up to blurry even on almost no motion scenes!
Reply With Quote
  #17  
12-16-2003, 06:34 AM
Bravucon Bravucon is offline
Free Member
 
Join Date: Jul 2003
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Anybody can translate to Spanish this method ? It will be a great help for spanish Kdvders



Thanks in advance :P
Reply With Quote
  #18  
12-16-2003, 06:39 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Si te esperas, este fin de semana voy a escribir una explicación en español (bueno con mis pequeñas palabras en español que hasta ahora no me han perdido )
Reply With Quote
  #19  
12-16-2003, 08:09 AM
mistermickster mistermickster is offline
Free Member
 
Join Date: Jul 2003
Location: Blighty, PAL Land
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Si te esperas, este fin de semana voy a escribir una explicación en español (bueno con mis pequeñas palabras en español que hasta ahora no me han perdido )
Yes, I agree
__________________
MisterMickster
Reply With Quote
  #20  
12-16-2003, 09:08 AM
Bravucon Bravucon is offline
Free Member
 
Join Date: Jul 2003
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts



YESSSSSSS PLEASEEEEE!!!!!!!

Hablas muy bien el español = You speak very well spanish

I will wait for it impatiently!!!!!!


THX very much
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Prediction Ping-pong ??? neptune Conversion et d'Encodage de Vidéo (Français) 3 11-09-2004 04:18 AM
Very good result with ping-pong prediction fabrice Avisynth Scripting 4 11-05-2004 11:53 AM
Bitrates: How long (about) should the prediction take? m0rdant Video Encoding and Conversion 6 08-14-2004 10:17 AM
About ping-pong prediction. zagor Avisynth Scripting 8 05-08-2004 03:06 PM
Predicción Ping-Pong Prodater64 Convertir y Codificar Video (Español) 13 04-02-2004 08:54 PM

Thread Tools



 
All times are GMT -5. The time now is 05:32 AM  —  vBulletin © Jelsoft Enterprises Ltd