Search found 3635 matches

by wilbert
Fri Nov 03, 2023 7:02 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

SMaag wrote: Thu Nov 02, 2023 8:59 pmyour interpolated picture post looks more like a blur interpolation (where the 8 pixels arround each pixel are part of the interpolation. But maybe I'm wrong because of camera move!
Maybe it's because the original footage was a bit blurry; no autofocus system like nowadays. :wink:
by wilbert
Thu Nov 02, 2023 5:40 pm
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

F1' Frame 1 onf 25 fps F1' = 0.28*F0 + 0.72*F1 we search for F1 F1 = F1'/0.28 -028/0.72 * F0 As you said it was used a cubic inerpolation. What I meant with cubic is that instead of the value of 0.72 I needed 0.91 to make it work Procedure.f easeInOutCubic(x.f) If x < 0.5 ProcedureReturn 4*x*x*x El...
by wilbert
Tue Oct 31, 2023 5:17 pm
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

Thanks for all the input. I sort of got it working with the help of PureBasic and some math. A blend is usually calculated like this FrameBlend = FrameA * perc + FrameB * (1 - perc) This also means FrameA = FrameBlend * (1/perc) - FrameB * (1/perc - 1) So if I have a blended frame, a non blended fra...
by wilbert
Mon Oct 30, 2023 3:40 pm
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

As far as I remember you will have key frames which are whole and un blended you should be able to extract them with functions from avifilelib.32 Years ago I did video texturing on to spheres cubes ... in opengl and as far as I recall I just got the key frame from the video not every frame. I also ...
by wilbert
Sun Oct 29, 2023 3:19 pm
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

After i sent the reels for a guy that had an equipment which digitalized frame by frame (maybe what you did?), but i never saw the frames separated because he returned me the movie finished and the result...a bit better than my first attempt, but still flickering. I didn't digitize them myself but ...
by wilbert
Sat Oct 28, 2023 9:18 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

OT, but that looks like an awesome coaster! I'm not a roller coaster person myself but it was one of the few frames that could explain the problem and had no people on it. The coaster is called "Python" https://en.wikipedia.org/wiki/Python_(Efteling) The frames I shared were filmed in the...
by wilbert
Sat Oct 28, 2023 5:55 am
Forum: Raspberry PI
Topic: ? for the Gurus
Replies: 2
Views: 582

Re: ? for the Gurus

Since you need the Raspberry Pi OS version of PureBasic, you could also try to get the Raspberry Pi OS working on your Orange Pi.
Maybe this helps
https://raspians.com/how-to-run-raspbia ... orange-pi/
by wilbert
Sat Oct 28, 2023 5:46 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

I'll see if I can create something myself. :)
by wilbert
Fri Oct 27, 2023 11:39 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

Maybe I didn't explain myself well enough. Below are three frames from a 25 fps clip. This kind of images is what I have to start with. Most frames are blends. With the second frame it is obvious, other frames may have it less visible. The blends are a result from a 18fps -> 25 fps conversion. I onl...
by wilbert
Fri Oct 27, 2023 7:05 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

Can you try Most of the software around based on ffmpeg ffmpeg -i inputfile -r 25 outputfile That converts to 25 fps instead of 25 -> 18 fps. I also tried ffmpeg -i inputfile -r 18 outputfile That does convert from 25 to 18 fps but it does so by simple dropping frames, not deblending them. Maybe I ...
by wilbert
Thu Oct 26, 2023 4:14 pm
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Re: Reconstructing original frames from interpolated movie

As far as I understand when a frame rate is converted from 18 to 25 fps, there are no frames that are made up from 3 original frames. Frame 0 => original frame 0 Frame 1 => (1*18/25 = 0.72) a blend of 28% of original frame 0 and 72% of original frame 1 Frame 2 => (2*18/25 = 1.44) a blend of 56% of o...
by wilbert
Thu Oct 26, 2023 11:56 am
Forum: Coding Questions
Topic: Reconstructing original frames from interpolated movie
Replies: 28
Views: 2578

Reconstructing original frames from interpolated movie

I have a number of 25 fps AVI files which are conversions from super8 films (18fps). The framerate conversion was done using linear interpolation so most frames are blends. What I would like is an as good as possible reconstruction of the original 18fps frames. I tried the Avisynth plugin SRestore b...
by wilbert
Sun Oct 15, 2023 6:54 am
Forum: Coding Questions
Topic: Optimization of a sorting algorithm
Replies: 74
Views: 4588

Re: Optimization of a sorting algorithm

I think a binary search would do the affair, but if this targets big integers only. The string management takes lots of time else. Most ideal would be a simple 16 bit number between 0 and 65535 but a binary search could also help. There are still ways to improve performance like this but the curren...
by wilbert
Sat Oct 14, 2023 3:58 pm
Forum: Coding Questions
Topic: Optimization of a sorting algorithm
Replies: 74
Views: 4588

Re: Optimization of a sorting algorithm

Are you sure it's only puzzles that excite you? :mrgreen: I like the logic of logic. :shock: :) I thought about ways to speed up the V9 code some more but the most important thing which slows things down at the moment is the map. Hashing those strings and looking them up takes time (a numeric refer...
by wilbert
Thu Oct 12, 2023 12:11 pm
Forum: Feature Requests and Wishlists
Topic: IfUnsigned a < b
Replies: 8
Views: 890

Re: IfUnsigned a < b

I would suggest using an unsigned compare procedure which returns -1, 0 or 1 depending on the result of the comparison. ProcedureC UL_CMP(a.l, b.l) CompilerIf Defined(PB_Backend_C, #PB_Constant) And #PB_Compiler_Backend = #PB_Backend_C !return ((unsigned long)v_a > (unsigned long)v_b) - ((unsigned l...