Hi, Am Donnerstag, 19. Oktober 2006 21:27 schrieb Michael Riepe: > Sounds like a rounding/residue problem within the QSlider class. > > Your lin_interval setting is 1800, right? Then there should be tick > marks every 45000 frames. Unless, of course, the frame rate differs from > 25 fps.
Yepp, ... and there is of course a tic every 45000 frames... it's just a optical problem. > > Actually, not at all. I just checked the Qt 3.3.5 sources and found out > that the slider widget scales ALL values (by dividing them by 8192) if > there are more than 524288 frames (6 hours of interlaced PAL video > corresponds to exactly 540000 frames). Is there a reason for that... is this some magic number, or what? Are they using 19bit variables... or 20bits signed...? ;-) But that explains everything... my stream was 542974 frames long! > Then it calculates the pixel > position from the scaled values (first error) and rounds the result > toward zero (second error). Quoting the source file: > > // ### the above line is probably not 100% correct > // ### but fixing it isn't worth the extreme pain... > > Need I say more? Unbelievable... it's just a little bit of math to do it right! "extreme pain"... lol ... pffffhhhh... ;-) OK,... as long as it just looks weird for >6h video I can live with it. ciao Ralph PS: Maybe one should drop a line to the Trolltech guys...? ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ DVBCUT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dvbcut-user
