system: amd 64 x2 dual, 2g ram, xp home
on my system, sometimes videos encode 9 seconds and other times 10 seconds. both sources are 24 fps.
yesterdays video encode 1797 frames / 9 seconds / 60 to be 3hr 32m, but it took 4 1/2 hours.
now, am encoding 1436 frames. i timed how long it takes to encode 1 frame to be 10 seconds.
(1436/10)/60 should give me 2hr 39m ?
+ Reply to Thread
Results 1 to 14 of 14
-
-
You are not making a great deal of sense. Are you saying that you encode at 9 frames a second or sometimes at 10 frames a second ?
If this is the case then your maths is way out. The first result is NOT 3 hr 32 mins it is 3.33 minutes. -
unless you sampled more than just the opening few frames it is hard to judge. if perhaps your sample was more than 1% of the video somewhere in the middle it might be accurate. not all frames take the same amount of time unless you are encoding uncompressed. i,p,b and other types take different amounts of time to encode. high motion video will also take longer to encode than low motion.
--
"a lot of people are better dead" - prisoner KSC2-303 -
--
"a lot of people are better dead" - prisoner KSC2-303 -
or if 9 seconds 1797x9=16173sec /60=269min. /60=4.49hours
--
"a lot of people are better dead" - prisoner KSC2-303 -
9 seconds per frame, just cancel the units
For the 1st one:
(9 sec / frame ) * 1797 frames = 16173 sec
16173 sec * (1 min / 60 sec) = 269.55 min
269.55 min * (1 hr / 60 min) = 4.4925 hr or 4h 29min 33sec
1) your assumption is that fps is constant, but it's not always the case. Speed might change up or down when encoders look ahead, or have frames cached in memory
2) measuring time to completion for a single frame only will have a large +/- margin of error
Shit aedipuss beat me -
@pdr & aedipuss
Your math makes more sense. Of course you are substituting a * for the first /
Maybe I have lived in a cave these past years but isn't 1 frame per 9 (or 10) seconds a tad slow ?. This example does not have much running time yet an horrendous time to encode. Something still does not fit methinks. -
I think he's testing HEVC encoding . That's fast LOL. Or maybe tiny frame dimensions
-
i think he mentioned elsewhere it's hevc but 320x240
--
"a lot of people are better dead" - prisoner KSC2-303 -
appoligies, i stepped out.
yes, i am encoding hevc videos. still the only one doing so, boring and hot today here in ny..cooking burgers/dogs. anyway.
I think he's testing HEVC encoding . That's fast LOL. Or maybe tiny frame dimensions
1) your assumption is that fps is constant, but it's not always the case. Speed might change up or down when encoders look ahead, or have frames cached in memory
2) measuring time to completion for a single frame only will have a large +/- margin of error
anyway, all this because i was trying to get the calc correct so i can add to my gui so i wouldn't have to guess. i'm trying different things. i've done similar calculations before but i don't retain these things permanently. sorry for the confusion. -
The scary thing is I was only half joking. It's friggen slow
I havent really charted out speeds precisely, because this encoder won't be the one that is actually used (retail or real use encoders will have optimizations and be many times faster) . So far I've only been looking at quality aspects
I don't know how other apps estimate encoding times / completion times, but for something like x264 it's usually way off at the beginning as it starts it's look ahead threads . You can ask one of the gui developers. There are some x264 builds that have this information ETA and so forth..., so it might be right in x264's code (some of the gui's just print that info out in realtime) -
VirtualDub keeps a running tab of how may frames have been encoded and how long it's been since encoding started. From that it calculates how many frames per second it's achieved so far. Since it knows how many more frames remain it's simply a matter of multiplying fps by number of remaining frames. It does not get it "on the mark, everytime". In the early parts of an encoding it's often off by a large amount.
-
thanks guys. so far, i started an encode at 5:35pm, as of now, the frame count encoding is 1220 of 1436, and it is 8:57pm
edit1: cpu is ~50% for TAppEncoder, 41.8k
edit2: just completed, 5:35pm - 9:35pm for 1436 frames, 720x480 dimensions
edit3: ratz. i ran out of hdd space, the encode got corrupted. what a waste..oh well.Last edited by vhelp; 4th Jul 2013 at 20:46.
Similar Threads
-
Check the integrity of the video
By wotdefcuk in forum RestorationReplies: 1Last Post: 19th Jan 2013, 01:19 -
Check Video codes of multiple video files at once
By indijay in forum Newbie / General discussionsReplies: 3Last Post: 18th Apr 2012, 15:09 -
Mpg : Mpeg video size and bitrate calculation
By Bonie81 in forum ProgrammingReplies: 2Last Post: 21st Jun 2011, 22:38 -
Multi-threaded video conversion - how to check it?
By usta in forum Video ConversionReplies: 8Last Post: 12th Nov 2009, 08:16 -
how do i check the audio and video lenght?
By mrjust in forum Newbie / General discussionsReplies: 1Last Post: 9th Apr 2009, 18:51