![]() |
I was wondering how accurate the prediction is for people that sample the framerate rather than the GOP rate of 24. If it is negligible then we could switch to the simpler formula. Of course this is most important for PAL,25 or NTSC,29.97 fps.
Let me know. -tenra |
Quote:
|
Quote:
for taking one GOP-length sample for every 60 seconds of movie you get:
constants ARnet_tenRA posted (59.94, 62.5, 74.925). More generally this becomes:
|
Quote:
something) so you could fit more data on the disk, but does this mean that I can fit an 800Mb .mpg file on to a 700Mb disk if its used as a VCD / SVCD?! I've been using an upper limit of 700Mb until now, but an extra 100Mb would be very nice :) /girv |
Quote:
accurate if sample strips were started on frame numbers that were multiples of GOP length instead of multiples of one second? eg: sample 24 frames every 24*60 frames instead of every framerate*60. Im thinking that this way you would be creating the sample with GOPs that would actually be in the final encode. Mad? |
Quote:
|
Quote:
|
Quote:
of frames in it, which as you say should be equal to the GOP length. e.g.: if your frame rate is 25fps then Sampler(length=24) will take sample strips starting at frame 0, 1500 (25*60*1), 3000 (25*60*2), 4500 (25*60*3) ... correct? What I am suggesting is to instead align the start of the sample strip to the multiple of GOP length closest to these numbers i.e.: 0, 1488, 3000, 4488 ... fps: 23.976 current sample start: 0,1437,2877,4316,... proposed: 0,1440,2880,4320,... fps: 25 current: 0,1500,3000,4500,... proposed: 0,1488,3000,4488,... fps: 29.97 current: 0,1798,3596,5395,... proposed: 0,1800,3600,5400,... The differences aren't much (+- 12 frames at most) but I just wondered if it could give a little extra accuracy :) |
Quote:
is 810,000,000 bytes then it can be burned on to a standard 700Mb CD-R as a VCD? Happy day :lol: ! What about SVCD? Is that the same? What is the overhead for VCD/SVCD ie: how big can a .mpg file be on my hard drive and still (just) fit on to a 700Mb CD-R ? |
Quote:
|
Quote:
Quote:
If you have a .mpg file then it's already got the system stream in it, so the maximum byte count will be 825,105,664. (By the way, this is how I always do my prediction: 813,019,155 - audio_bytes = max_video_bytes max_video_bytes / frames_in_movie = bytes_per_frame bytes_per_frame * frame_count_with_sampler = sample_bytes It's almost always accurate within 0.5% or so. It's more involved than the regular formula, but I'm testing it for the next release of KVCDP :).) |
Quote:
fps: 23.976 current sample start: 0,1437,2877,4316,... proposed: 0,1440,2880,4320,... fps: 25 current: 0,1500,3000,4500,... proposed: 0,1440,2880,4320,... fps: 29.97 current: 0,1798,3596,5395,... proposed: 0,1440,2880,4320,... This will have the benefit of aligning with the GOP like girv suggested and having the simplest formula no matter the length of movie or framerate: Predicted Size = 60 * sample size -ARnet_tenRA |
Quote:
Sampler uses a pretty simple algorithm to decide which frames to select. The curious can take a look at the source code here. Quote:
|
Quote:
|
Hi all,
I just ran a test last night using my suggested formula, and I got some pretty exciting results. .0001% accuracy!!! AVISynth script: Code:
LoadPlugin("MPEG2DEC.dll")
|
Quote:
That's one of the reasons I wrote Sampler :). |
Quote:
I used SelectRangeEvery because I knew exactly where the frames would be captured from in the video (every 1440 frames). Maybe this is not the case. :oops: Anyways, let me know if sampling 24 frames every (24*60*n) frames gives you as accurate results as I got. Whether you use Sampler or SelectRangeEvery. :) -ARnet_tenRA |
Quote:
Quote:
|
AHA!, will that be the official name, GripFit 8)
-kwag |
Quote:
|
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.