2026-01-05 10:25:49 +02:00

83 lines
3.1 KiB
YAML

name: Funscript Haven
description: Generates funscript files from video scenes using optical flow analysis. Tag scenes with 'FunscriptHaven_Process' to queue them for processing.
version: 1.0.0
url: https://discourse.stashapp.cc/t/funscript-haven/5124
exec:
- python
- "{pluginDir}/funscript_haven.py"
interface: raw
tasks:
- name: Process Tagged Scenes
description: Process all scenes tagged with 'FunscriptHaven_Process' and generate funscript files
defaultArgs:
mode: process_scenes
settings:
trigger_tag:
displayName: Trigger Tag
description: Tag name that triggers processing (add this tag to scenes you want to process)
type: STRING
complete_tag:
displayName: Completion Tag
description: Tag name added when processing completes successfully (leave empty to disable)
type: STRING
error_tag:
displayName: Error Tag
description: Tag name added when an error occurs during processing
type: STRING
threads:
displayName: Threads
description: Number of threads for optical flow computation
type: NUMBER
detrend_window:
displayName: Detrend Window (1-10)
description: Controls drift removal aggressiveness. Higher values work better for stable cameras (integer 1-10)
type: NUMBER
norm_window:
displayName: Normalization Window (1-10)
description: Time window to calibrate motion range in seconds. Shorter values amplify motion (integer 1-10)
type: NUMBER
batch_size:
displayName: Batch Size (frames)
description: Number of frames to process per batch. Higher values are faster but use more RAM
type: NUMBER
overwrite:
displayName: Overwrite Existing
description: Overwrite existing funscript files
type: BOOLEAN
keyframe_reduction:
displayName: Keyframe Reduction
description: Enable keyframe reduction to reduce file size while maintaining quality
type: BOOLEAN
pov_mode:
displayName: POV Mode
description: Improves stability for POV videos
type: BOOLEAN
balance_global:
displayName: Balance Global Motion
description: Try to cancel out camera motion. Disable for scenes with no camera movement
type: BOOLEAN
multi_axis:
displayName: Multi-Axis Output
description: Generate additional funscript files for secondary axes (Roll, Pitch, Twist, Surge, Sway)
type: BOOLEAN
multi_axis_intensity:
displayName: Multi-Axis Intensity (0-10)
description: Intensity of secondary axis motion (0-10, where 10 = maximum intensity)
type: NUMBER
random_speed:
displayName: Random Speed (0-10)
description: Speed of random motion variation (0-10, where 10 = fastest)
type: NUMBER
auto_home_delay:
displayName: Auto Home Delay (0-10)
description: Seconds of inactivity before returning to center position (integer 0-10)
type: NUMBER
auto_home_duration:
displayName: Auto Home Duration (0-10)
description: Time to smoothly return to center position in seconds (integer 0-10)
type: NUMBER
add_marker:
displayName: Add Marker on Complete
description: Add a scene marker when funscript generation completes
type: BOOLEAN