I have found that cinelerra displays the time for 1 minute as
00:00:60.000 rather than 00:01:00.000
I know the error is within the lines that look like:
minute = (int)(seconds / 60 - hour * 60);
and I guess it has to do with a rounding issue. My solution to the
problem was to change this to:
minute = (int)(seconds / 60 - hour * 60 + 1e-9/60);
i.e. adding 1 microsecond of time to the float version of the number of
minutes before actually converting. Does anyone see a problem with this
solution? Do people mind me applying this to the SVN??
The issue was/is quite important to me, as I have some footage where the
the video didn't record but I have sound. I decided to apply a freeze
frame, and display a message, "Due to technical difficulties... This
video will resume in 0:19:60.000" which looks kinda strange compared to
what it should display, 0:20:00.000.
I have also developed a patch that allows the "Title" effect have the
ability to choose the time code format to display. I will apply that
patch soon also.
Regards,
Pierre
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra