Quantcast Time to Revise File Prediction! - Page 5 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #81  
06-23-2003, 01:39 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
3 samples a minute, of how many frames per sample
I'm using one sample per minute of 24 frames each

-kwag
25 And GOP also 25.
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
  #82  
06-23-2003, 01:53 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krassi
Quote:
Originally Posted by kwag
3 samples a minute, of how many frames per sample
I'm using one sample per minute of 24 frames each

-kwag
25 And GOP also 25.

I just though about something. Could it be the on/off "switching" of the filters
The way the filter works now is that if there's very low motion, only TemporalSoften is applied and ZERO blur with asharp. Then if there's some motion after a treshold, blur is applied and ZERO TemporalSoften
So if we change the script to this:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(0,0,0,0,2) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")

This will keep both filters active, no matter what the scene is
Just something to try

-kwag
Reply With Quote
  #83  
06-23-2003, 01:56 PM
audi2honda audi2honda is offline
Free Member
 
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
does that mean the filters become static instead of dynamic again?
Reply With Quote
  #84  
06-23-2003, 01:59 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
I just though about something. Could it be the on/off "switching" of the filters
The way the filter works now is that if there's very low motion, only TemporalSoften is applied and ZERO blur with asharp. Then if there's some motion after a treshold, blur is applied and ZERO TemporalSoften
So if we change the script to this:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(2,0,0,0,0) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")

This will keep both filters active, no matter what the scene is
Just something to try

-kwag
Hey . Thats a good idea. I've already done an encode without filters and it was matching near 1%. I've done this a long time ago but i will test your change of the script right now.
Reply With Quote
  #85  
06-23-2003, 01:59 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audi2honda
does that mean the filters become static instead of dynamic again?
They become static, but with NULL values
Look at the script how I set the values to 0

Edit:
Meaning that the filters are present or active at all times, but operational depending on motion. So the motion adaptive filtering is still dynamic, with the difference that the filters are always one during the complete encode.

-kwag
Reply With Quote
  #86  
06-23-2003, 03:46 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krassi
Hey . Thats a good idea. I've already done an encode without filters and it was matching near 1%. I've done this a long time ago but i will test your change of the script right now.
Hmm . CQ remains exactly the same with
Code:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(2,0,0,0,0) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")
Reply With Quote
  #87  
06-23-2003, 04:21 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@kwag

Is this really correct?

Quote:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(0,0,0,0,2) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")
Shouldn't this value read "0" instead of "2"?
Just wondering...
__________________
AudioSlave
Reply With Quote
  #88  
06-23-2003, 04:35 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audioslave
@kwag

Is this really correct?

Quote:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(0,0,0,0,2) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")
Shouldn't this value read "0" instead of "2"?
Just wondering...
No, it's either 1 or 2. That's a "mode" value.

-kwag
Reply With Quote
  #89  
06-23-2003, 04:40 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Okay kwag, sorry to bother you . It's just that I haven't exactly figured out what the parameters stand for in TemporalSoften.
With this new (changed) line will we be able to use 1,00 for prediction factor in ToK? I mean, that is what we hope, right?
On to another thing... Since I live in Sweden (PAL country) I will try to predict and encode a couple of movies so we can compare them to each others encodes. I'm starting right away with "Enough" (J-Lo!) .
__________________
AudioSlave
Reply With Quote
  #90  
06-23-2003, 04:46 PM
audi2honda audi2honda is offline
Free Member
 
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
I'm seeing two things posted here one with

TemporalSoften(2,0,0,0,0)

and another with TemporalSoften(0,0,0,0,2)

Which is correct?
Reply With Quote
  #91  
06-23-2003, 04:53 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audioslave
Okay kwag, sorry to bother you . It's just that I haven't exactly figured out what the parameters stand for in TemporalSoften.
With this new (changed) line will we be able to use 1,00 for prediction factor in ToK? I mean, that is what we hope, right?
Quote:
Yes, that is what we sure hope
On to another thing... Since I live in Sweden (PAL country) I will try to predict and encode a couple of movies so we can compare them to each others encodes. I'm starting right away with "Enough" (J-Lo!) .
Great! I'm currently encoding K-Pax again, to see if the final size is lower than my previous >3%. I got exactly the same CQ with ToK, (67.33) with the changes to the script above, so we'll see if the file is smaller when the movie finishes.
I have a strong feeling that the problem throwing off the prediction was the on/off switching of the filters.
We'll see what happens in ~5 hours
If the file is still the same as my previous encode, I'll dig a hole in the yard and crawl in it for some time

-kwag
Reply With Quote
  #92  
06-23-2003, 04:53 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audi2honda
I'm seeing two things posted here one with

TemporalSoften(2,0,0,0,0)

and another with TemporalSoften(0,0,0,0,2)

Which is correct?
TemporalSoften(0,0,0,0,2)
The first line will give you an error.

-kwag
Reply With Quote
  #93  
06-23-2003, 04:58 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krassi

Hmm . CQ remains exactly the same with
Code:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(2,0,0,0,0) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")
Exactly , but if I'm correct and the on/off switching was throwing of compression, then the final encode should be close to the target.
BTW, the line should read: TemporalSoften(0,0,0,0,2)

-kwag
Reply With Quote
  #94  
06-23-2003, 05:18 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
I've just started my encode of "Enough". In ~5 hours we'll see if there is any change in the prediction reliability with the new line kwag posted ! Hopefully it will be closer to target now... Anyway, I'll let you know how it turned out in the morning. Bedtime now. I'm dead tired. My band just got a record deal (at last!) so we're at our regular jobs at day and we're recording at night. If anyone was wondering... And in between I'm here at this EXCELLENT forum !!!
Good night to you all!
__________________
AudioSlave
Reply With Quote
  #95  
06-23-2003, 05:28 PM
audi2honda audi2honda is offline
Free Member
 
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
Hey guys. I'm getting the same CQ value also with the new script and video.en1 file. I"ll let my encode finish though and see what the final size turns out to be. I'm curious though if the CQ is the same how can the file size turn out bigger?

If the filter switching was throwing off prediction how would that have an effect on the file size after TMPGEnc gets done encoding? It seems that it is still predicting the same CQ thus TMPGEnc will still encode it the same and produce the wrong results.

make sense?
Reply With Quote
  #96  
06-23-2003, 05:57 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audi2honda

If the filter switching was throwing off prediction how would that have an effect on the file size after TMPGEnc gets done encoding?
Actually I was thinking that the prediction was not thrown off, but it was the actual encode. But I just stopped my encode to do a quick test by encoding two 2 minute clips, one with the new line and one with the prior script line. The result Same size
So that proves that it's definitely the prediction that is being thrown off. This also means that the on/off switching behaves correctly, and doesn't produce any glitches which is what I had suspected was happening. So back to prediction debugging

-kwag
Reply With Quote
  #97  
06-23-2003, 11:43 PM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
Originally Posted by Krassi

Hmm . CQ remains exactly the same with
Code:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ).TemporalSoften(2,0,0,0,0) : \
TemporalSoften(2,7,7,3,2).asharp(0, 0) ")
Exactly , but if I'm correct and the on/off switching was throwing of compression, then the final encode should be close to the target.
BTW, the line should read: TemporalSoften(0,0,0,0,2)

-kwag
Here are the final results:
Code:
Required Video Size: 723.771.611
Final CQ: 35,416
Encoding... CQ : 35,416
Final Encoded Size: 691.896.121
Reply With Quote
  #98  
06-23-2003, 11:47 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Krassi,

Your CQ was calculated with ToK 0.0.5.3 with the "SelectRangeEvery()" function right

-kwag
Reply With Quote
  #99  
06-24-2003, 12:41 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Your CQ was calculated with ToK 0.0.5.3 with the "SelectRangeEvery()" function right

-kwag
Yes.
I'm @work now again but i've started one more encoding without any filters.
Reply With Quote
  #100  
06-24-2003, 12:48 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krassi
Quote:
Originally Posted by kwag
Your CQ was calculated with ToK 0.0.5.3 with the "SelectRangeEvery()" function right

-kwag
Yes.
I'm @work now again but i've started one more encoding without any filters.
Did you read my other post about the use of "Sampler()" instead of "SelectRangeEvery()"

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitrates: Prediction time for CQMATIC epuleda Video Encoding and Conversion 4 05-26-2006 02:11 PM
simple way to do time stretching of a mp2 file? zagor Audio Conversion 12 08-27-2004 05:51 AM
Tmpgenc cannot open source file for file prediction Kane Avisynth Scripting 3 02-03-2003 02:44 PM
KVCD: File Size Fluctuates Big Time! Jellygoose Video Encoding and Conversion 4 01-28-2003 01:55 PM
DVD player read time wrong if file size is different? COMMANDO Video Encoding and Conversion 1 07-22-2002 06:02 PM




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