ugcinc 4.5.82 → 4.5.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -307,9 +307,7 @@ export declare const nodeDefinitions: {
|
|
|
307
307
|
__TOutputs: import("./save-to-media").SaveToMediaNodeOutputs;
|
|
308
308
|
};
|
|
309
309
|
readonly 'scene-split': NodeDefinition<"scene-split", "generator", {
|
|
310
|
-
detector_type: import("../..").SceneSplitDetectorConfig["detector_type"];
|
|
311
310
|
threshold: number;
|
|
312
|
-
fade_detection: boolean;
|
|
313
311
|
outputMode: import("./types").OutputMode;
|
|
314
312
|
selectionMode: import("./types").SelectionMode | null;
|
|
315
313
|
}, import("./scene-split").SceneSplitNodeInputs, import("./scene-split").SceneSplitNodeOutputs, false> & {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { VideoValue } from '../types';
|
|
2
|
-
import type { SceneSplitDetectorConfig } from '../../render';
|
|
3
2
|
import { type OutputMode, type SelectionMode } from './types';
|
|
4
3
|
export interface SceneSplitNodeInputs {
|
|
5
4
|
video: VideoValue;
|
|
@@ -8,9 +7,7 @@ export interface SceneSplitNodeOutputs {
|
|
|
8
7
|
clips: VideoValue[];
|
|
9
8
|
}
|
|
10
9
|
declare const definition: import("./types").NodeDefinition<"scene-split", "generator", {
|
|
11
|
-
detector_type: SceneSplitDetectorConfig["detector_type"];
|
|
12
10
|
threshold: number;
|
|
13
|
-
fade_detection: boolean;
|
|
14
11
|
outputMode: OutputMode;
|
|
15
12
|
selectionMode: SelectionMode | null;
|
|
16
13
|
}, SceneSplitNodeInputs, SceneSplitNodeOutputs, false>;
|
|
@@ -8,15 +8,13 @@ const definition = (0, types_1.defineNode)({
|
|
|
8
8
|
nodeId: 'scene-split',
|
|
9
9
|
label: 'Scene Split',
|
|
10
10
|
description: 'Split a video into clips at detected scene boundaries',
|
|
11
|
-
guide: 'Detects scene boundaries in a video using
|
|
11
|
+
guide: 'Detects scene boundaries in a video using perceptual hashing and splits it into individual clips. Works with both hard cuts and fade transitions. Configure sensitivity (high/medium/low) to control how many cuts are detected. Output is an array of video clips — connect to a For Each node to process each clip individually. Use cases: splitting long-form content into short clips, isolating scenes for selective reposting, breaking down compilation videos.',
|
|
12
12
|
type: 'generator',
|
|
13
13
|
category: 'Generation',
|
|
14
14
|
outputModes: ['per-input', 'single'],
|
|
15
15
|
selectionModes: null,
|
|
16
16
|
defaults: {
|
|
17
|
-
|
|
18
|
-
threshold: 27.0,
|
|
19
|
-
fade_detection: false,
|
|
17
|
+
threshold: 12,
|
|
20
18
|
outputMode: 'per-input',
|
|
21
19
|
selectionMode: null,
|
|
22
20
|
},
|
package/dist/render.d.ts
CHANGED
|
@@ -69,12 +69,8 @@ export interface SubmitDeduplicationJobParams {
|
|
|
69
69
|
deduplication: DeduplicationInput;
|
|
70
70
|
}
|
|
71
71
|
export interface SceneSplitDetectorConfig {
|
|
72
|
-
/**
|
|
73
|
-
detector_type: 'content' | 'adaptive';
|
|
74
|
-
/** Detection threshold (default: 27.0 for content, 3.0 for adaptive) */
|
|
72
|
+
/** pHash hamming distance threshold — lower = more sensitive (default: 12, range: 8-18) */
|
|
75
73
|
threshold: number;
|
|
76
|
-
/** Enable fade-in/fade-out detection as secondary pass */
|
|
77
|
-
fade_detection: boolean;
|
|
78
74
|
}
|
|
79
75
|
export interface SubmitSceneSplitJobParams {
|
|
80
76
|
/** URL of the video to split into scenes */
|