How to make script with Motion Tracking Funscript Generator

This is likely a post-processing issue, check your settings for post processing and look at the preview to see if it aligns with your expectations.

You mean when the curve is added into the script? Then I need to check move it right or left a bit? Or before its inserted? After that how do i make it permament? It has another color when inserted but not marked.
Edit: my bad its marked after inserted and it is permanent nothing to do,

Great tutorial, and this is the coolest sh!t ever. I feel like I’m living in the future after scripting frame by frame.

2 Likes

Have you found a way around this? MTFG stops for me also always after same time and there is no change at all in the scene.
Edit: must be something with the file. Converted it to i-frames and doesnt stop suddenly now without visible cause.

1 Like

Is this good for Blowjob scripts? Maybe just using the one person unsupervised to track the nose/lips and then manually adjust the top and bottom points to get the range correct?

All depends on the scene. If the camera is stationary just do one person. Track nose / lip or any feature that’s always visible.

If there isn’t a small feature that’s visible all the time maybe grab the entire head. It’s going to take more time processing the frame.

A complex blowjob that involves licking will involves more manual adjustment.

Thanks, additional question. How did create those colored block segments in step 1 of this guide?

These are “chapters” feature in OFS. Should be located underneath the heatmap.

It’s useful when there’s need for marking out sections for long films, game cg galleries etc. It doesn’t do much otherwise.

I can’t get this software to work

$ nix run github:michael-mueller-git/OFS
ERROR: Failed to load glad.

On openSUSE Tumbleweed.

@huehuehuebrbr4 I always forget that there are problems with stock nix and OpenGL.

Try this:

nix run --impure github:guibou/nixGL -- nix run github:michael-mueller-git/OFS --refresh
1 Like

I still can’t get this to work. OFS launches but the motion tracker seems to not work at all. Trying

nix run github:michael-mueller-git/Python-Funscript-Editor --refresh

crashes with

Traceback (most recent call last):
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/bin/…funscript-editor-wrapped-wrapped”, line 6, in
from funscript_editor.main import main
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/lib/python3.9/site-packages/funscript_editor/main.py”, line 6, in
from funscript_editor.api import show_editor, generate_funscript
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/lib/python3.9/site-packages/funscript_editor/api.py”, line 6, in
from funscript_editor.ui.funscript_editor_window import FunscriptEditorWindow
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/lib/python3.9/site-packages/funscript_editor/ui/funscript_editor_window.py”, line 27, in
from funscript_editor.ui.funscript_generator_window import FunscriptGeneratorWindow
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/lib/python3.9/site-packages/funscript_editor/ui/funscript_generator_window.py”, line 10, in
from funscript_editor.algorithms.trackingmanager import TrackingManagerThread, TrackingManagerParameter
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/lib/python3.9/site-packages/funscript_editor/algorithms/trackingmanager.py”, line 18, in
from funscript_editor.ui.opencvui import OpenCV_GUI, OpenCV_GUI_Parameters
File “/nix/store/ydk3n66n2b7qf2yh2qy5kf99dqv43jdx-python3.9-funscript-editor-0.5.4/lib/python3.9/site-packages/funscript_editor/ui/opencvui.py”, line 5, in
import pynput.keyboard
File “/nix/store/xcj5zdp8g3g8k680hhx7bmla1bnrnfyb-python3-3.9.15-env/lib/python3.9/site-packages/pynput/init.py”, line 40, in
from . import keyboard
File “/nix/store/xcj5zdp8g3g8k680hhx7bmla1bnrnfyb-python3-3.9.15-env/lib/python3.9/site-packages/pynput/keyboard/init.py”, line 31, in
backend = backend(name)
File “/nix/store/xcj5zdp8g3g8k680hhx7bmla1bnrnfyb-python3-3.9.15-env/lib/python3.9/site-packages/pynput/_util/init.py”, line 76, in backend
raise ImportError(‘this platform is not supported: {}’.format(
ImportError: this platform is not supported: (‘failed to acquire X connection: Can't connect to display “:0”: b'Authorization required, but no authorization protocol specified\n'’, DisplayConnectionError(‘:0’, b’Authorization required, but no authorization protocol specified\n’))

Try one of the following resolutions:

  • Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly

@huehuehuebrbr4

  1. Could You try the command again. I changed a env var.
  2. If you still getting the error. Give me more details about your system so i can reproduce this. What desktop environment do you use in openSUSE Tumbleweed. (I was not able to reproduce your error with KDE inside VM). What is the output of echo $DISPLAY? Do you have xwayland available?

I want to get into motion tracking scripting. I downloaded what I needed ad such, I’m just confused where I find these boxes or how I create a box to put around the movement.

Is there any chance to make the process faster?
I try to make my first script for myself, and the video is just 2 min 50 sec.
When I start to do this motion track, I’ve got 6fps in the corner, and in a few minutes, the video just shows 38 sec ready.
It is gonna be a long run. And how long it is gonna take if I want to make a longer vidz? (I mean 30-40 min vidz)?

Tracking depends on your computer and what part and what amount of that part you want to trick. Another thing is that a 60fps video takes longer to motion track than a 30fps video for example. Try not do track the whole hip for example, but look for a belly button/mole/something smaller to track that moves according to the fuck motion.

You can also reencode videos to downsize the resolution and fps which will improve tracking a lot. Just know that scripting something at 30fps won’t be exactly compatible with the 60fps version of that video without fixing the 30fps script a little bit.

So to get more performance:

have a lower resolution video of your video
have a lower fps video of your video
track something small (nipple, belly button, moles, nose for example)
get a better computer

1 Like
  • select “fast” in “processing speed” also helps.

I’ve not had a situation where framerate messes up script sync but I imagine it can happen depending on how the video is being encoded.

1 Like

Thanks to your advice, I’ll try change those things

I know the term may not seem matter when a randomiser function can be labelled “AI” nowadays, but it still annoys me when people are called out as “AI scripter” for using the tool, as if they have acquired the technology to make a porn-watching robot that wanks itself (what an achievement).

Yet most of the low-quality scripts were a result of laziness or hastiness, not because the tracking algorithm is flawed. When it comes to tracking moving pixels a gpu probably does more accurately than your eyes and is way more efficient than your whole limbic system combined. But it doesn’t perceive the depth like your brain, so that’s what matters, and why one should always adjust the output of the software before publishing it.

Adult tech companies are training AI out of people’s scripting labour. If you want to feel the shock of new technologies that is what you should build your fear against, not a few newbie scripters who tried MTFG and failed miserably.

ai
fig1. a newborn AI performs tracking task vigorously on videogame graphic

4 Likes

I have always wanted to learn to script to some degree. I have given it serious consideration again, to the point that I am checking out these how to threads, and have narrowed down a list of somewhat short videos I would be interested in enough to want to script. I hope that I can avoid those pitfalls you have mentioned, and I am also slightly intimidated by the amount of time I think a quality script will take even with a useful tool like this.

https://discuss.eroscripts.com/t/attempting-my-first-script

1 Like