Hi all,
I recently made a script which was working fine until now.
For some reason, every time I open the script with OFS, it appears to have entirely drifted by about 30ms.
(the white line is set to where the script point should be and the red point is where it ends up after exporting. Note, not even at a frame point)
I’ve tried fixing it, then saving. Same result once I open it again, as if I hadn’t fixed anything.
I’m pretty new to this, this was my first script. Any clue as to why this would be happening?
I think you need to export the active script. It’s in the file menu.
That’s what I do.
I tried both quick export and the regular without success. The “save project” gives the same result.
edit: what’s really weird is the points drift to positions I cannot reach by scrolling with the arrow keys.
Had the same question on a similar behavior, but I’m assuming the issue here is the same.
probably rounding error. OFS uses floating point seconds internally but when exporting to funscript the timestamps are rounded to integer milliseconds which moves them -1, 0 or +1 millisecond.
or something else entirely is fucked
So yeah that’s just how OFS internally saves the funscript, if it is something else causing the behavior i have no idea what is causing it, to this day i can’t solve it so i kind of just live with the result at this point
It could also be because of the native FPS of the video itself if that is happening horizontally and not vertically, in my case, the error is more on the vertical shift, not a horizontal one, so converting the video to I-frames might help or solve the issue, maybe, I’m not entirely sure but you can try.
You can use this to convert videos to i-frame:
For the basic functions of this tool look at my older thread:
New function:
[image]
Download FFMPEG from [url = Download FFmpeg ] HERE [/url]
Convert your videos for scripting with JoyFunScripter 0.13.1 - Make your own scripts! to i-frames by FFMPEG. That makes scripting in default mode (frame by frame) a lot faster, because the compression will be removed and the single frames are shown instantly.
Enter the path of ffmpeg.exe on your system under ‘ffmpeg path’ or browse to it by click on…
Thanks. This looks like it could be it.
I noticed that the source video has some weird framerate (something like 23.98fps).
Maybe I need to convert my next video to a rounded 30 or 60fps and see if that helps at all.
Thanks for the clues and links though.
No worries, happy to help!
SOLVED!
Thanks to OverTheEdge,
I converted the video to 60fps, adjusted the script and exported it again. Seems to be working fine now.