Quantcast To Crop or Not to Crop! - Page 19 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #361  
12-22-2002, 12:46 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
I must go back to sleep
You are correct. Maybe I should step away from the computer for a couple of hours
Don't do that!
We need you right here!
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
  #362  
12-22-2002, 12:48 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
And I just thought that this "supposed" missing frame would be the "information" frame that we talk on the other thread.
I looked into that and displaying the info for the Avisynth 2.0 version would be easy, but I'd need to modify some code (someone else's code, to be precise) to make it work with 2.5, so it's still on the to-do list .
Reply With Quote
  #363  
12-22-2002, 01:31 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 SansGrip
Quote:
Originally Posted by kwag
And the correct lines are what you posted:

MI = (Framecount/Framerate)/60
IL = round(Framecount/MI)
SL = round(Framerate)
SelectRangeEvery(IL,SL)
Also correct is:

Sampler(minutes, 24)

You see, I come back here and feel like a :P because my are burned for the day so I'm at my own stupidity.
I really think I should go back to sleep and recharge my neurons
I just keep dragging the old legacy methods around


-kwag
Reply With Quote
  #364  
12-22-2002, 01:52 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
You see, I come back here and feel like a :P because my are burned for the day so I'm at my own stupidity.
Ah, I couldn't even form a sentence this morning until I'd had at least 3 cups of caffeine .

Quote:
I just keep dragging the old legacy methods around
Well the nice thing about Sampler is that it's not only easier to use but as muaddib pointed out it's also more accurate. When we're talking about sampling not even 2% of the movie, every frame counts.

Oh, and as of 0.2 we don't need to "fix" the Source Range to stop TMPGEnc trying to encode the whole movie .
Reply With Quote
  #365  
12-22-2002, 02:05 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 SansGrip
Quote:
Originally Posted by kwag
You see, I come back here and feel like a :P because my are burned for the day so I'm at my own stupidity.
Ah, I couldn't even form a sentence this morning until I'd had at least 3 cups of caffeine .
You're ahead of me by 2 cups
Quote:
Quote:
I just keep dragging the old legacy methods around
Well the nice thing about Sampler is that it's not only easier to use but as muaddib pointed out it's also more accurate. When we're talking about sampling not even 2% of the movie, every frame counts.
So then instead of Sampler( 120, 24 ), or any other hard coded nubers, we can automate it like this:

Code:
Minutes = round((Framecount/Framerate)/60 )
SL = round(Framerate) 
Sampler(Minutes, SL)


-kwag
Reply With Quote
  #366  
12-22-2002, 02:37 PM
Racer99 Racer99 is offline
Free Member
 
Join Date: Sep 2002
Location: Massachusetts
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Kwag,

Don't worry about it, it's just us other enthusiasts. I got your back. With all the hard work you've put in lately combined with the lack of sleep, it's incredible that you got it even close. Keep up the faith.

Racer99
Reply With Quote
  #367  
12-22-2002, 03:14 PM
gonzopdx gonzopdx is offline
Free Member
 
Join Date: Dec 2002
Location: Corvallis, OR
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SansGrip
When we're talking about sampling not even 2% of the movie, every frame counts.
So to make sure I got this right -- when using KVCDP, sample points should equal the length of the movie in minutes and error margin should be 2%?
Reply With Quote
  #368  
12-22-2002, 03:34 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi SansGrip,

Would AutoCrop accomplish the same thing as Tmpgenc's Clip Frame or
FitCD's crop, but do it automatically Here's the link:

http://forum.doom9.org/showthread.ph...light=AutoCrop

What do you think

-black prince
Reply With Quote
  #369  
12-22-2002, 03:41 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
This is just to report that I finished a complete encode (again) of "The Green Mile" that I started last night. On my Celeron 1Ghz it took 10 hours 52 minutes . But here are the results:

Predicted file size with MovieInMinutes:24 (180:24 ) was 659,323KB
Final encoded file size: 650,042KB.

Difference of 9,281KB for a 180 minute film. That is ~1.40% difference.
So I can see that the results with the new method are extremely accurate. This was with a %factor of 1.0, not with 0.98, as it should have been.

-kwag
Reply With Quote
  #370  
12-22-2002, 03:50 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi All,

Tried the new file predictor for Minority Report which I previously
encoded using an old formula and CQ_VBR=12.34. The final movie
(audio+video) = 1,538,867,346. I didn't fill the entire 2 CDs. The new
formula increased my CQ_VBR to 12.903 and guess what
it came out perfect at 1,593,434,274. It's so close to 1.6GB
I was floored Great job Kwag and SansGrip.

My aduio formula is off for calculating mp2 file size. I'm using

((audio bitrate) / 8 ) * Movie time in seconds = audio file size

The results always seem to be a little greater than Headac3he.

-black prince
Reply With Quote
  #371  
12-22-2002, 04:05 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
So then instead of Sampler( 120, 24 ), or any other hard coded nubers, we can automate it like this
We could, but personally I find Sampler(minutes, 24) easier to understand and less easy to mistype . However, I could change Sampler so that "samples" defaults to minutes-in-movie and "length" defaults to one second.

When you say SL=Round(Framerate) etc. are you sure you really mean that? I think it should be SL=24, since we're going by GOP length not frame rate. The two just happen to coincide at the moment...
Reply With Quote
  #372  
12-22-2002, 04:08 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by grivad
So to make sure I got this right -- when using KVCDP, sample points should equal the length of the movie in minutes and error margin should be 2%?
I believe that should work. I'm not 100% confident because KVCDP 0.2 was written with the old prediction formula in mind, but my initial thoughts are that since our new GOP length happens to correspond to the frame rate, it should work regardless.

But yes, you'll definitely need to set the sample points to the length of the movie in minutes. That won't be necessary in the next version.
Reply With Quote
  #373  
12-22-2002, 04:13 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by black prince
Would AutoCrop accomplish the same thing as Tmpgenc's Clip Frame or FitCD's crop, but do it automatically
Theoretically, yes. To be honest I have my doubts about how well an automated process would be able to properly detect borders (it may work 9 times out of 10, but if you have to keep checking each time it runs then you might as well just do it yourself and be sure).

The filter appears still to be in alpha or beta, and my reading of the thread is that it doesn't preserve aspect ratio yet, which makes it interesting but not very useful. With some work, though, it could be an excellent filter -- I see no reason why the whole FitCD process couldn't be automated fairly successfully provided the filter was very careful and "alerted" the user if anything didn't look right. 3-12 hours or so is a long time to wait to find out your autocropper threw a fit .
Reply With Quote
  #374  
12-22-2002, 04:14 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 SansGrip
When you say SL=Round(Framerate) etc. are you sure you really mean that? I think it should be SL=24, since we're going by GOP length not frame rate. The two just happen to coincide at the moment...
Yes, you're right. We're going by GOP, and it should be fixed to 24. So that simplifies it to:

Code:
Minutes = round((Framecount/Framerate)/60 ) 
Sampler(Minutes, 24)
I still think this is simpler than having to find out the running time of any movie. Just attach the code to the end of any .avs script, and the sample will always be correct without any human errors

-kwag
Reply With Quote
  #375  
12-22-2002, 04:14 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by black prince
it came out perfect at 1,593,434,274


Quote:
My aduio formula is off for calculating mp2 file size. I'm using
I always encode the audio first. That way I know precisely how big it is .
Reply With Quote
  #376  
12-22-2002, 04:41 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Check here for a new Sampler, this time with very helpful defaults. From now on (at least until we change the formula again) all you'll need to add to your scripts is:

Code:
Sampler()
I can't make it much easier without renaming the filter to just "S" .
Reply With Quote
  #377  
12-22-2002, 04:49 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Re-encoded Resident Evil at 352x480 with 400 min bitrate, slightly more smoothing, slightly less noise, and a slightly higher CQ_VBR (15.63 instead of 15.55). Of course I also used the new GOP and formula.

Target size: 716,523,242
Actual size: 711,603,443
Difference: 0.69%

Not bad, not bad .
Reply With Quote
  #378  
12-22-2002, 04:50 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 SansGrip
Check here for a new Sampler, this time with very helpful defaults. From now on (at least until we change the formula again) all you'll need to add to your scripts is:

Code:
Sampler()
I can't make it much easier without renaming the filter to just "S" .

Or "SG" For SansGrip

-kwag
Reply With Quote
  #379  
12-22-2002, 09:11 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@SansGrip,

Quote:
I always encode the audio first. That way I know precisely how big it is .
I have a semi-automated process for file prediction (FitCD is the exception)
which calculates the audio file size and subtracts this from the number
of CD's (1 or 2) to determine the video target file size. It's close enough
now. It's usually only ~2mb larger then than the acutal audio size.

Quote:
The filter appears still to be in alpha or beta, and my reading of the thread is that it doesn't preserve aspect ratio yet, which makes it interesting but not very useful. With some work, though, it could be an excellent filter -- I see no reason why the whole FitCD process couldn't be automated fairly successfully provided the filter was very careful and "alerted" the user if anything didn't look right. 3-12 hours or so is a long time to wait to find out your autocropper threw a fit .
This sounds like another project. This would be especially useful for
automated processes as "acp" on this forum. We have been trying to
find a way to intergrate a "FitCD" a like filter into our avs script.
Until Kwag created "SweetHead" we had to use BeSweet instead of
Headac3he for example. At low audio bitrates Head is da BOMB.


-black prince
Reply With Quote
  #380  
12-22-2002, 09:40 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by black prince
We have been trying to find a way to intergrate a "FitCD" a like filter into our avs script.
It would be useful, but I'm guessing it would be quite hard to determine borders automatically. It sounds easy but I don't think it would be .

Quote:
Until Kwag created "SweetHead" we had to use BeSweet instead of
Headac3he for example. At low audio bitrates Head is da BOMB.
I've always had a lot of luck with SCMPX -- it seems to produce really good quality even at low bitrates. I've never tried it lower than 128 though.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Commande de crop oublié :p tamahome Conversion et d'Encodage de Vidéo (Français) 8 12-17-2004 08:22 AM
Overscan com CROP não funciona. ginoboy Conversão e Codificação de Vídeo (Português) 6 08-10-2004 01:12 PM
Crop divx zagor Convertire e Codifica dei Video (Italiano) 6 03-07-2004 04:14 PM
TMPGEnc: crop without resize? rupan Video Encoding and Conversion 5 03-06-2004 10:36 PM
Avisynth open failure: Crop: you cannot use crop to enlarge or 'shift' a clip nicksteel Avisynth Scripting 0 11-22-2003 06:10 PM




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