Hi!

Ralph Glasstetter wrote:

> No real problem so far,... 
> 
> But I noticed that the lin-slider is just positoned in multiples of 8192 
> pictures in my 6 hour stream, that's about 5-6minutes!
> 
> I assume it has something to do with QT and was already there with the old 
> dvbcut, because I also noticed already a while ago, that the tic marks are 
> not really drawn aequidistant with long movies... the first two (!) are ok 
> (2cm), but then the third (?) is 2.4cm away, the forth again 2cm, then 2.4cm 
> again and so on... (I use 30min tics!).  

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.

> The 0.4cm difference seem to come from an rounding/aliasing effect because of 
> the 8192 pictures I mentioned... and a strange thing is, that with an stream 
> of half the size (3h) the multiple is nearly no more visible! Maybe only 
> about 256 pictures... not 4096 as I assumed first... really weird...

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). 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?

-- 
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
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

Reply via email to