Quantcast Automated File Prediction? - Page 2 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #21  
02-18-2003, 05:43 AM
Fiz Fiz is offline
Free Member
 
Join Date: Jan 2003
Location: London, UK
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Ren for trying this, it took me hours to try and get a working formula and even then I was confused . You are right, the number of frames per sample WILL be different. Its the only way I can get almost exactly 10% of the number of frames sampler would produce.

For example, Sampler(length=24) produces 2280 frames (perfectly divisible by 24) for my sample. I want to get as close to 228 frames. To do that I tried this first.

Code:
oldfps = framerate
AssumeFps(oldfps * 10)
Sampler(length=24)
AssumeFps(oldfps)
This was based on my theory from this thread:
http://www.kvcd.net/forum/viewtopic.php?t=2820

where doubling the frame rate will halve the number of total frames in Sampler. Therefore multiplying by 10 will give only 10%!!

What I found was that because the length was 24, the closest number of frames I was getting was 240 instead of 228 (because it is a multiple of 24).

Quote:
Originally Posted by ren
Also I don't think the sample length changed from 24 because I put the line ShowFrameNumber and the frame numbers were like this (0..23), (15465..1548, (30930..30953)...
Thats why I was trying the strange formula so that the length is slightly adjusted and so is the framerate. The fps are not just exactly 10 times faster, but something that will allow me to get as close to 228 as possible. That is why the length changes as well.

If I haven't lost you so far... As with everything, the bigger the sample the more accurate your analysis. That's why I think it's a difficult trade off. It may work well in fewer cases than when using just Sampler, in which case lengthy encodes could have been prevented!

Quote:
Originally Posted by ren
edit: oops I just read that you said once sampler is run than the fps returns to normal this is too complicated for me
When I bump the fps up, I run sampler and then set the fps back to what it was. e.g.

oldfps = framerate # my case 25
AssumeFps(oldfps * 10) # 250 fps now!
Sampler(length=24) # Sampler makes movie 10 times shorter!
AssumeFps(oldfps * 10) # back to 25 fps now!


Let me know the results and maybe others can test this as well. (I'm at work and can't do any encodes today )
__________________
Fizzy Wizzy Lets get Bizzy!
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
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjusting file prediction hedix Avisynth Scripting 20 03-18-2003 04:38 PM
Automated file prediction written in Delphi black prince Avisynth Scripting 0 02-24-2003 11:52 PM
Tmpgenc cannot open source file for file prediction Kane Avisynth Scripting 3 02-03-2003 02:44 PM
File prediction not working for me heyitsme Video Encoding and Conversion 2 01-30-2003 02:30 AM
New Templates: Need for an Automated File Prediction Gaudi Avisynth Scripting 2 01-13-2003 02:32 AM




 
All times are GMT -5. The time now is 11:51 PM  —  vBulletin © Jelsoft Enterprises Ltd