@jtdigital/renderbox-sdk 0.4.0 → 0.5.0
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.
- package/README.md +28 -0
- package/dist/bridge.d.ts +139 -0
- package/dist/bridge.d.ts.map +1 -0
- package/dist/bridge.js +338 -0
- package/dist/bridge.js.map +1 -0
- package/dist/graph.d.ts +11 -5
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +7 -7
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/pipelines.d.ts +516 -0
- package/dist/pipelines.d.ts.map +1 -0
- package/dist/pipelines.js +16 -0
- package/dist/pipelines.js.map +1 -0
- package/dist/presets/audio.d.ts +43 -0
- package/dist/presets/audio.d.ts.map +1 -0
- package/dist/presets/audio.js +148 -0
- package/dist/presets/audio.js.map +1 -0
- package/dist/presets/index.d.ts +5 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/index.js +5 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/position.d.ts +39 -0
- package/dist/presets/position.d.ts.map +1 -0
- package/dist/presets/position.js +40 -0
- package/dist/presets/position.js.map +1 -0
- package/dist/presets/text.d.ts +90 -0
- package/dist/presets/text.d.ts.map +1 -0
- package/dist/presets/text.js +132 -0
- package/dist/presets/text.js.map +1 -0
- package/dist/presets/video.d.ts +46 -0
- package/dist/presets/video.d.ts.map +1 -0
- package/dist/presets/video.js +108 -0
- package/dist/presets/video.js.map +1 -0
- package/dist/recipes/makeSlideshow.d.ts +2 -1
- package/dist/recipes/makeSlideshow.d.ts.map +1 -1
- package/dist/recipes/makeSlideshow.js +3 -69
- package/dist/recipes/makeSlideshow.js.map +1 -1
- package/dist/streams.d.ts +110 -65
- package/dist/streams.d.ts.map +1 -1
- package/dist/streams.js +283 -201
- package/dist/streams.js.map +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +19 -2
package/dist/streams.js
CHANGED
|
@@ -12,229 +12,311 @@ class Stream {
|
|
|
12
12
|
this._id = _id;
|
|
13
13
|
this._graph = _graph;
|
|
14
14
|
}
|
|
15
|
-
acompressor(opts) { const n = { kind: 'AudioFilter', name: 'acompressor', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
16
|
-
acontrast(opts) { const n = { kind: 'AudioFilter', name: 'acontrast', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
17
|
-
acrossfade(b, opts) { const n = { kind: 'Combine2', op: 'acrossfade', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
18
|
-
adeclick(opts) { const n = { kind: 'AudioFilter', name: 'adeclick', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
19
|
-
adelay(opts) { const n = { kind: 'AudioFilter', name: 'adelay', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
20
|
-
aecho(opts) { const n = { kind: 'AudioFilter', name: 'aecho', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
21
|
-
afade(opts) { const n = { kind: 'AudioFilter', name: 'afade', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
22
|
-
afftdn(opts) { const n = { kind: 'AudioFilter', name: 'afftdn', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
23
|
-
agate(opts) { const n = { kind: 'AudioFilter', name: 'agate', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
24
|
-
aggregateTracks(opts) { const n = { kind: 'Transform', op: 'aggregate_tracks', params: opts ? _p(opts) : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
25
|
-
alimiter(opts) { const n = { kind: 'AudioFilter', name: 'alimiter', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
26
|
-
aloop(opts) { const n = { kind: 'AudioFilter', name: 'aloop', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
15
|
+
acompressor(opts) { const n = { kind: 'AudioFilter', name: 'acompressor', params: opts ? _p(opts, 'acompressor') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
16
|
+
acontrast(opts) { const n = { kind: 'AudioFilter', name: 'acontrast', params: opts ? _p(opts, 'acontrast') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
17
|
+
acrossfade(b, opts) { const n = { kind: 'Combine2', op: 'acrossfade', a: this._id, b: b._id, params: opts ? _p(opts, 'acrossfade') : {} }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
18
|
+
adeclick(opts) { const n = { kind: 'AudioFilter', name: 'adeclick', params: opts ? _p(opts, 'adeclick') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
19
|
+
adelay(opts) { const n = { kind: 'AudioFilter', name: 'adelay', params: _p(opts, 'adelay'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
20
|
+
aecho(opts) { const n = { kind: 'AudioFilter', name: 'aecho', params: _p(opts, 'aecho'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
21
|
+
afade(opts) { const n = { kind: 'AudioFilter', name: 'afade', params: _p(opts, 'afade'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
22
|
+
afftdn(opts) { const n = { kind: 'AudioFilter', name: 'afftdn', params: opts ? _p(opts, 'afftdn') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
23
|
+
agate(opts) { const n = { kind: 'AudioFilter', name: 'agate', params: opts ? _p(opts, 'agate') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
24
|
+
aggregateTracks(opts) { const n = { kind: 'Transform', op: 'aggregate_tracks', params: opts ? _p(opts, 'aggregate_tracks') : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
25
|
+
alimiter(opts) { const n = { kind: 'AudioFilter', name: 'alimiter', params: opts ? _p(opts, 'alimiter') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
26
|
+
aloop(opts) { const n = { kind: 'AudioFilter', name: 'aloop', params: opts ? _p(opts, 'aloop') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
27
27
|
alphaextract() { const n = { kind: 'Filter', name: 'alphaextract', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
28
|
-
amerge(opts) { const n = { kind: 'AudioFilter', name: 'amerge', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
29
|
-
amix(rest, opts) { const n = { kind: 'CombineN', op: 'amix', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts) : {} }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
30
|
-
anchorGraphic(b, opts) { const n = { kind: 'Combine2', op: 'anchor_graphic', a: this._id, b: b._id, params: _p(opts) }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
31
|
-
anlmdn(opts) { const n = { kind: 'AudioFilter', name: 'anlmdn', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
32
|
-
annotate(b, opts) { const n = { kind: 'Combine2', op: 'annotate', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
33
|
-
apad(opts) { const n = { kind: 'AudioFilter', name: 'apad', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
34
|
-
aphaser(opts) { const n = { kind: 'AudioFilter', name: 'aphaser', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
35
|
-
aresample(opts) { const n = { kind: 'AudioFilter', name: 'aresample', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
28
|
+
amerge(opts) { const n = { kind: 'AudioFilter', name: 'amerge', params: opts ? _p(opts, 'amerge') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
29
|
+
amix(rest, opts) { const n = { kind: 'CombineN', op: 'amix', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts, 'amix') : {} }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
30
|
+
anchorGraphic(b, opts) { const n = { kind: 'Combine2', op: 'anchor_graphic', a: this._id, b: b._id, params: _p(opts, 'anchor_graphic') }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
31
|
+
anlmdn(opts) { const n = { kind: 'AudioFilter', name: 'anlmdn', params: opts ? _p(opts, 'anlmdn') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
32
|
+
annotate(b, opts) { const n = { kind: 'Combine2', op: 'annotate', a: this._id, b: b._id, params: opts ? _p(opts, 'annotate') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
33
|
+
apad(opts) { const n = { kind: 'AudioFilter', name: 'apad', params: opts ? _p(opts, 'apad') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
34
|
+
aphaser(opts) { const n = { kind: 'AudioFilter', name: 'aphaser', params: opts ? _p(opts, 'aphaser') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
35
|
+
aresample(opts) { const n = { kind: 'AudioFilter', name: 'aresample', params: _p(opts, 'aresample'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
36
36
|
areverse() { const n = { kind: 'AudioFilter', name: 'areverse', params: {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
37
|
+
asetpts(opts) { const n = { kind: 'AudioFilter', name: 'asetpts', params: _p(opts, 'asetpts'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
38
|
+
astats(opts) { const n = { kind: 'AudioFilter', name: 'astats', params: opts ? _p(opts, 'astats') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
39
|
+
asubboost(opts) { const n = { kind: 'AudioFilter', name: 'asubboost', params: opts ? _p(opts, 'asubboost') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
40
|
+
atempo(opts) { const n = { kind: 'AudioFilter', name: 'atempo', params: _p(opts, 'atempo'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
41
|
+
atrim(opts) { const n = { kind: 'AudioFilter', name: 'atrim', params: opts ? _p(opts, 'atrim') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
42
|
+
autoEnhance(opts) { const n = { kind: 'Filter', name: 'auto_enhance', params: _p(opts, 'auto_enhance'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
43
|
+
backgroundkey(opts) { const n = { kind: 'Filter', name: 'backgroundkey', params: opts ? _p(opts, 'backgroundkey') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
44
|
+
bandpass(opts) { const n = { kind: 'AudioFilter', name: 'bandpass', params: _p(opts, 'bandpass'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
45
|
+
bass(opts) { const n = { kind: 'AudioFilter', name: 'bass', params: _p(opts, 'bass'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
46
|
+
bilateral(opts) { const n = { kind: 'Filter', name: 'bilateral', params: opts ? _p(opts, 'bilateral') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
47
|
+
blackdetect(opts) { const n = { kind: 'Filter', name: 'blackdetect', params: opts ? _p(opts, 'blackdetect') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
48
|
+
blend(b, opts) { const n = { kind: 'Combine2', op: 'blend', a: this._id, b: b._id, params: opts ? _p(opts, 'blend') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
49
|
+
bm3d(opts) { const n = { kind: 'Filter', name: 'bm3d', params: opts ? _p(opts, 'bm3d') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
50
|
+
boxblur(opts) { const n = { kind: 'Filter', name: 'boxblur', params: opts ? _p(opts, 'boxblur') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
51
|
+
cas(opts) { const n = { kind: 'Filter', name: 'cas', params: opts ? _p(opts, 'cas') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
52
|
+
channelmap(opts) { const n = { kind: 'AudioFilter', name: 'channelmap', params: opts ? _p(opts, 'channelmap') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
53
|
+
chorus(opts) { const n = { kind: 'AudioFilter', name: 'chorus', params: opts ? _p(opts, 'chorus') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
54
|
+
chromakey(opts) { const n = { kind: 'Filter', name: 'chromakey', params: _p(opts, 'chromakey'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
55
|
+
classifyAudioEvent(opts) { const n = { kind: 'Fanout', op: 'classify_audio_event', params: opts ? _p(opts, 'classify_audio_event') : {}, input: this._id }; return mk('AudioEvent', this._graph._addNode(n), this._graph); }
|
|
56
|
+
classifyDetections(b, opts) { const n = { kind: 'Combine2', op: 'classify_detections', a: this._id, b: b._id, params: _p(opts, 'classify_detections') }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
57
|
+
classifyScene(opts) { const n = { kind: 'Fanout', op: 'classify_scene', params: opts ? _p(opts, 'classify_scene') : {}, input: this._id }; return mk('Scene', this._graph._addNode(n), this._graph); }
|
|
58
|
+
colorCorrect(opts) { const n = { kind: 'Filter', name: 'color_correct', params: _p(opts, 'color_correct'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
59
|
+
colorbalance(opts) { const n = { kind: 'Filter', name: 'colorbalance', params: opts ? _p(opts, 'colorbalance') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
60
|
+
colorchannelmixer(opts) { const n = { kind: 'Filter', name: 'colorchannelmixer', params: opts ? _p(opts, 'colorchannelmixer') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
61
|
+
colorgrade(opts) { const n = { kind: 'Filter', name: 'colorgrade', params: opts ? _p(opts, 'colorgrade') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
62
|
+
colorhold(opts) { const n = { kind: 'Filter', name: 'colorhold', params: _p(opts, 'colorhold'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
63
|
+
colorize(opts) { const n = { kind: 'Filter', name: 'colorize', params: _p(opts, 'colorize'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
64
|
+
colorkey(opts) { const n = { kind: 'Filter', name: 'colorkey', params: _p(opts, 'colorkey'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
65
|
+
colorspace(opts) { const n = { kind: 'Filter', name: 'colorspace', params: opts ? _p(opts, 'colorspace') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
66
|
+
colortemperature(opts) { const n = { kind: 'Filter', name: 'colortemperature', params: _p(opts, 'colortemperature'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
67
|
+
compand(opts) { const n = { kind: 'AudioFilter', name: 'compand', params: opts ? _p(opts, 'compand') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
68
|
+
computeAngles(opts) { const n = { kind: 'Transform', op: 'compute_angles', params: opts ? _p(opts, 'compute_angles') : {}, input: this._id }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
69
|
+
concat(rest, opts) { const n = { kind: 'CombineN', op: 'concat', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts, 'concat') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
70
|
+
containsDetections(b, opts) { const n = { kind: 'Combine2', op: 'contains_detections', a: this._id, b: b._id, params: opts ? _p(opts, 'contains_detections') : {} }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
71
|
+
count(opts) { const n = { kind: 'Transform', op: 'count', params: opts ? _p(opts, 'count') : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
72
|
+
crop(opts) { const n = { kind: 'Filter', name: 'crop', params: opts ? _p(opts, 'crop') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
73
|
+
crossfeed(opts) { const n = { kind: 'AudioFilter', name: 'crossfeed', params: opts ? _p(opts, 'crossfeed') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
74
|
+
curves(opts) { const n = { kind: 'Filter', name: 'curves', params: _p(opts, 'curves'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
75
|
+
deband(opts) { const n = { kind: 'Filter', name: 'deband', params: opts ? _p(opts, 'deband') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
76
|
+
deblock(opts) { const n = { kind: 'Filter', name: 'deblock', params: opts ? _p(opts, 'deblock') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
77
|
+
deblur(opts) { const n = { kind: 'Filter', name: 'deblur', params: _p(opts, 'deblur'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
78
|
+
deesser(opts) { const n = { kind: 'AudioFilter', name: 'deesser', params: opts ? _p(opts, 'deesser') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
79
|
+
deflicker(opts) { const n = { kind: 'Filter', name: 'deflicker', params: opts ? _p(opts, 'deflicker') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
80
|
+
deinterlace(opts) { const n = { kind: 'Filter', name: 'deinterlace', params: _p(opts, 'deinterlace'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
81
|
+
delogo(opts) { const n = { kind: 'Filter', name: 'delogo', params: _p(opts, 'delogo'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
82
|
+
denoise(opts) { const n = { kind: 'Filter', name: 'denoise', params: _p(opts, 'denoise'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
83
|
+
denoiseHqdn3d(opts) { const n = { kind: 'Filter', name: 'denoise_hqdn3d', params: opts ? _p(opts, 'denoise_hqdn3d') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
84
|
+
densityOverlay(b, opts) { const n = { kind: 'Combine2', op: 'density_overlay', a: this._id, b: b._id, params: opts ? _p(opts, 'density_overlay') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
85
|
+
depthBlur(b, opts) { const n = { kind: 'Combine2', op: 'depth_blur', a: this._id, b: b._id, params: opts ? _p(opts, 'depth_blur') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
86
|
+
depthFog(b, opts) { const n = { kind: 'Combine2', op: 'depth_fog', a: this._id, b: b._id, params: opts ? _p(opts, 'depth_fog') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
87
|
+
deshake(opts) { const n = { kind: 'Filter', name: 'deshake', params: opts ? _p(opts, 'deshake') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
88
|
+
detect(opts) { const n = { kind: 'Fanout', op: 'detect', params: _p(opts, 'detect'), input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
89
|
+
dialoguenhance(opts) { const n = { kind: 'AudioFilter', name: 'dialoguenhance', params: opts ? _p(opts, 'dialoguenhance') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
90
|
+
diarize(opts) { const n = { kind: 'Transform', op: 'diarize', params: opts ? _p(opts, 'diarize') : {}, input: this._id }; return mk('Transcript', this._graph._addNode(n), this._graph); }
|
|
91
|
+
dilation(opts) { const n = { kind: 'Filter', name: 'dilation', params: opts ? _p(opts, 'dilation') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
92
|
+
drawSkeleton(b, opts) { const n = { kind: 'Combine2', op: 'draw_skeleton', a: this._id, b: b._id, params: opts ? _p(opts, 'draw_skeleton') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
93
|
+
drawbox(opts) { const n = { kind: 'Filter', name: 'drawbox', params: opts ? _p(opts, 'drawbox') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
94
|
+
drawgrid(opts) { const n = { kind: 'Filter', name: 'drawgrid', params: opts ? _p(opts, 'drawgrid') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
95
|
+
drawtext(opts) { const n = { kind: 'Filter', name: 'drawtext', params: opts ? _p(opts, 'drawtext') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
96
|
+
dynamicCrop(b, opts) { const n = { kind: 'Combine2', op: 'dynamic_crop', a: this._id, b: b._id, params: _p(opts, 'dynamic_crop') }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
97
|
+
dynaudnorm(opts) { const n = { kind: 'AudioFilter', name: 'dynaudnorm', params: opts ? _p(opts, 'dynaudnorm') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
97
98
|
ebur128() { const n = { kind: 'AudioFilter', name: 'ebur128', params: {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
98
|
-
edgedetect(opts) { const n = { kind: 'Filter', name: 'edgedetect', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
99
|
-
eq(opts) { const n = { kind: 'Filter', name: 'eq', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
100
|
-
equalizer(opts) { const n = { kind: 'AudioFilter', name: 'equalizer', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
101
|
-
erosion(opts) { const n = { kind: 'Filter', name: 'erosion', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
102
|
-
estimateDensity(opts) { const n = { kind: 'Fanout', op: 'estimate_density', params: opts ? _p(opts) : {}, input: this._id }; return mk('Density', this._graph._addNode(n), this._graph); }
|
|
103
|
-
estimateDepth(opts) { const n = { kind: 'Fanout', op: 'estimate_depth', params: opts ? _p(opts) : {}, input: this._id }; return mk('Depth', this._graph._addNode(n), this._graph); }
|
|
104
|
-
estimatePose(opts) { const n = { kind: 'Fanout', op: 'estimate_pose', params: opts ? _p(opts) : {}, input: this._id }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
105
|
-
estimatePoseDetections(b, opts) { const n = { kind: 'Combine2', op: 'estimate_pose_detections', a: this._id, b: b._id, params: _p(opts) }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
106
|
-
fade(opts) { const n = { kind: 'Filter', name: 'fade', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
107
|
-
fillborders(opts) { const n = { kind: 'Filter', name: 'fillborders', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
108
|
-
filterAudioEvents(opts) { const n = { kind: 'Transform', op: 'filter_audio_events', params: opts ? _p(opts) : {}, input: this._id }; return mk('AudioEvent', this._graph._addNode(n), this._graph); }
|
|
109
|
-
filterDetections(opts) { const n = { kind: 'Transform', op: 'filter_detections', params: opts ? _p(opts) : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
110
|
-
filterPoses(opts) { const n = { kind: 'Transform', op: 'filter_poses', params: opts ? _p(opts) : {}, input: this._id }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
111
|
-
filterScenes(opts) { const n = { kind: 'Transform', op: 'filter_scenes', params: opts ? _p(opts) : {}, input: this._id }; return mk('Scene', this._graph._addNode(n), this._graph); }
|
|
112
|
-
filterSegmentation(opts) { const n = { kind: 'Transform', op: 'filter_segmentation', params: opts ? _p(opts) : {}, input: this._id }; return mk('Segmentation', this._graph._addNode(n), this._graph); }
|
|
113
|
-
filterText(opts) { const n = { kind: 'Transform', op: 'filter_text', params: opts ? _p(opts) : {}, input: this._id }; return mk('Text', this._graph._addNode(n), this._graph); }
|
|
114
|
-
flanger(opts) { const n = { kind: 'AudioFilter', name: 'flanger', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
115
|
-
format(opts) { const n = { kind: 'Filter', name: 'format', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
116
|
-
fps(opts) { const n = { kind: 'Filter', name: 'fps', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
117
|
-
frameInterpolate(opts) { const n = { kind: 'Filter', name: 'frame_interpolate', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
118
|
-
framestep(opts) { const n = { kind: 'Filter', name: 'framestep', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
119
|
-
freezedetect(opts) { const n = { kind: 'Filter', name: 'freezedetect', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
120
|
-
gblur(opts) { const n = { kind: 'Filter', name: 'gblur', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
121
|
-
geq(opts) { const n = { kind: 'Filter', name: 'geq', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
99
|
+
edgedetect(opts) { const n = { kind: 'Filter', name: 'edgedetect', params: opts ? _p(opts, 'edgedetect') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
100
|
+
eq(opts) { const n = { kind: 'Filter', name: 'eq', params: opts ? _p(opts, 'eq') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
101
|
+
equalizer(opts) { const n = { kind: 'AudioFilter', name: 'equalizer', params: _p(opts, 'equalizer'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
102
|
+
erosion(opts) { const n = { kind: 'Filter', name: 'erosion', params: opts ? _p(opts, 'erosion') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
103
|
+
estimateDensity(opts) { const n = { kind: 'Fanout', op: 'estimate_density', params: opts ? _p(opts, 'estimate_density') : {}, input: this._id }; return mk('Density', this._graph._addNode(n), this._graph); }
|
|
104
|
+
estimateDepth(opts) { const n = { kind: 'Fanout', op: 'estimate_depth', params: opts ? _p(opts, 'estimate_depth') : {}, input: this._id }; return mk('Depth', this._graph._addNode(n), this._graph); }
|
|
105
|
+
estimatePose(opts) { const n = { kind: 'Fanout', op: 'estimate_pose', params: opts ? _p(opts, 'estimate_pose') : {}, input: this._id }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
106
|
+
estimatePoseDetections(b, opts) { const n = { kind: 'Combine2', op: 'estimate_pose_detections', a: this._id, b: b._id, params: _p(opts, 'estimate_pose_detections') }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
107
|
+
fade(opts) { const n = { kind: 'Filter', name: 'fade', params: _p(opts, 'fade'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
108
|
+
fillborders(opts) { const n = { kind: 'Filter', name: 'fillborders', params: opts ? _p(opts, 'fillborders') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
109
|
+
filterAudioEvents(opts) { const n = { kind: 'Transform', op: 'filter_audio_events', params: opts ? _p(opts, 'filter_audio_events') : {}, input: this._id }; return mk('AudioEvent', this._graph._addNode(n), this._graph); }
|
|
110
|
+
filterDetections(opts) { const n = { kind: 'Transform', op: 'filter_detections', params: opts ? _p(opts, 'filter_detections') : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
111
|
+
filterPoses(opts) { const n = { kind: 'Transform', op: 'filter_poses', params: opts ? _p(opts, 'filter_poses') : {}, input: this._id }; return mk('Pose', this._graph._addNode(n), this._graph); }
|
|
112
|
+
filterScenes(opts) { const n = { kind: 'Transform', op: 'filter_scenes', params: opts ? _p(opts, 'filter_scenes') : {}, input: this._id }; return mk('Scene', this._graph._addNode(n), this._graph); }
|
|
113
|
+
filterSegmentation(opts) { const n = { kind: 'Transform', op: 'filter_segmentation', params: opts ? _p(opts, 'filter_segmentation') : {}, input: this._id }; return mk('Segmentation', this._graph._addNode(n), this._graph); }
|
|
114
|
+
filterText(opts) { const n = { kind: 'Transform', op: 'filter_text', params: opts ? _p(opts, 'filter_text') : {}, input: this._id }; return mk('Text', this._graph._addNode(n), this._graph); }
|
|
115
|
+
flanger(opts) { const n = { kind: 'AudioFilter', name: 'flanger', params: opts ? _p(opts, 'flanger') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
116
|
+
format(opts) { const n = { kind: 'Filter', name: 'format', params: _p(opts, 'format'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
117
|
+
fps(opts) { const n = { kind: 'Filter', name: 'fps', params: _p(opts, 'fps'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
118
|
+
frameInterpolate(opts) { const n = { kind: 'Filter', name: 'frame_interpolate', params: _p(opts, 'frame_interpolate'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
119
|
+
framestep(opts) { const n = { kind: 'Filter', name: 'framestep', params: _p(opts, 'framestep'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
120
|
+
freezedetect(opts) { const n = { kind: 'Filter', name: 'freezedetect', params: opts ? _p(opts, 'freezedetect') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
121
|
+
gblur(opts) { const n = { kind: 'Filter', name: 'gblur', params: _p(opts, 'gblur'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
122
|
+
geq(opts) { const n = { kind: 'Filter', name: 'geq', params: opts ? _p(opts, 'geq') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
122
123
|
hflip() { const n = { kind: 'Filter', name: 'hflip', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
123
|
-
highpass(opts) { const n = { kind: 'AudioFilter', name: 'highpass', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
124
|
-
histogram(opts) { const n = { kind: 'Filter', name: 'histogram', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
125
|
-
hqdn3d(opts) { const n = { kind: 'Filter', name: 'hqdn3d', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
126
|
-
hstack(rest, opts) { const n = { kind: 'CombineN', op: 'hstack', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
127
|
-
hue(opts) { const n = { kind: 'Filter', name: 'hue', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
124
|
+
highpass(opts) { const n = { kind: 'AudioFilter', name: 'highpass', params: _p(opts, 'highpass'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
125
|
+
histogram(opts) { const n = { kind: 'Filter', name: 'histogram', params: opts ? _p(opts, 'histogram') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
126
|
+
hqdn3d(opts) { const n = { kind: 'Filter', name: 'hqdn3d', params: opts ? _p(opts, 'hqdn3d') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
127
|
+
hstack(rest, opts) { const n = { kind: 'CombineN', op: 'hstack', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts, 'hstack') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
128
|
+
hue(opts) { const n = { kind: 'Filter', name: 'hue', params: opts ? _p(opts, 'hue') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
128
129
|
hwdownload() { const n = { kind: 'Filter', name: 'hwdownload', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
129
130
|
hwupload() { const n = { kind: 'Filter', name: 'hwupload', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
130
131
|
hwuploadCuda() { const n = { kind: 'Filter', name: 'hwupload_cuda', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
131
|
-
insertChapters(opts) { const n = { kind: 'Transform', op: 'insert_chapters', params: opts ? _p(opts) : {}, input: this._id }; return mk('Scene', this._graph._addNode(n), this._graph); }
|
|
132
|
-
intersectionDetections(b, opts) { const n = { kind: 'Combine2', op: 'intersection_detections', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
132
|
+
insertChapters(opts) { const n = { kind: 'Transform', op: 'insert_chapters', params: opts ? _p(opts, 'insert_chapters') : {}, input: this._id }; return mk('Scene', this._graph._addNode(n), this._graph); }
|
|
133
|
+
intersectionDetections(b, opts) { const n = { kind: 'Combine2', op: 'intersection_detections', a: this._id, b: b._id, params: opts ? _p(opts, 'intersection_detections') : {} }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
133
134
|
intersectionSegmentations(b) { const n = { kind: 'Combine2', op: 'intersection_segmentations', a: this._id, b: b._id, params: {} }; return mk('Segmentation', this._graph._addNode(n), this._graph); }
|
|
134
|
-
lagfun(opts) { const n = { kind: 'Filter', name: 'lagfun', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
135
|
-
lenscorrection(opts) { const n = { kind: 'Filter', name: 'lenscorrection', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
136
|
-
loop(opts) { const n = { kind: 'Filter', name: 'loop', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
137
|
-
loudnorm(opts) { const n = { kind: 'AudioFilter', name: 'loudnorm', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
138
|
-
lowpass(opts) { const n = { kind: 'AudioFilter', name: 'lowpass', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
139
|
-
lut1d(opts) { const n = { kind: 'Filter', name: 'lut1d', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
140
|
-
lut3d(opts) { const n = { kind: 'Filter', name: 'lut3d', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
141
|
-
maskBlur(b, opts) { const n = { kind: 'Combine2', op: 'mask_blur', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
142
|
-
maskColorGrade(b, opts) { const n = { kind: 'Combine2', op: 'mask_color_grade', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
143
|
-
maskComposite(b, opts) { const n = { kind: 'Combine2', op: 'mask_composite', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
135
|
+
lagfun(opts) { const n = { kind: 'Filter', name: 'lagfun', params: opts ? _p(opts, 'lagfun') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
136
|
+
lenscorrection(opts) { const n = { kind: 'Filter', name: 'lenscorrection', params: opts ? _p(opts, 'lenscorrection') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
137
|
+
loop(opts) { const n = { kind: 'Filter', name: 'loop', params: _p(opts, 'loop'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
138
|
+
loudnorm(opts) { const n = { kind: 'AudioFilter', name: 'loudnorm', params: opts ? _p(opts, 'loudnorm') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
139
|
+
lowpass(opts) { const n = { kind: 'AudioFilter', name: 'lowpass', params: _p(opts, 'lowpass'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
140
|
+
lut1d(opts) { const n = { kind: 'Filter', name: 'lut1d', params: _p(opts, 'lut1d'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
141
|
+
lut3d(opts) { const n = { kind: 'Filter', name: 'lut3d', params: _p(opts, 'lut3d'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
142
|
+
maskBlur(b, opts) { const n = { kind: 'Combine2', op: 'mask_blur', a: this._id, b: b._id, params: opts ? _p(opts, 'mask_blur') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
143
|
+
maskColorGrade(b, opts) { const n = { kind: 'Combine2', op: 'mask_color_grade', a: this._id, b: b._id, params: opts ? _p(opts, 'mask_color_grade') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
144
|
+
maskComposite(b, opts) { const n = { kind: 'Combine2', op: 'mask_composite', a: this._id, b: b._id, params: opts ? _p(opts, 'mask_composite') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
144
145
|
maskedmerge(b) { const n = { kind: 'Combine2', op: 'maskedmerge', a: this._id, b: b._id, params: {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
145
|
-
minterpolate(opts) { const n = { kind: 'Filter', name: 'minterpolate', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
146
|
+
minterpolate(opts) { const n = { kind: 'Filter', name: 'minterpolate', params: opts ? _p(opts, 'minterpolate') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
147
|
+
motionRedact(opts) { const n = { kind: 'Filter', name: 'motion_redact', params: opts ? _p(opts, 'motion_redact') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
148
|
+
mpdecimate(opts) { const n = { kind: 'Filter', name: 'mpdecimate', params: opts ? _p(opts, 'mpdecimate') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
149
|
+
negate(opts) { const n = { kind: 'Filter', name: 'negate', params: opts ? _p(opts, 'negate') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
150
|
+
nlmeans(opts) { const n = { kind: 'Filter', name: 'nlmeans', params: opts ? _p(opts, 'nlmeans') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
151
|
+
noise(opts) { const n = { kind: 'Filter', name: 'noise', params: opts ? _p(opts, 'noise') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
152
|
+
overlay(b, opts) { const n = { kind: 'Combine2', op: 'overlay', a: this._id, b: b._id, params: opts ? _p(opts, 'overlay') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
153
|
+
overlayTranslation(b, opts) { const n = { kind: 'Combine2', op: 'overlay_translation', a: this._id, b: b._id, params: _p(opts, 'overlay_translation') }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
154
|
+
pad(opts) { const n = { kind: 'Filter', name: 'pad', params: opts ? _p(opts, 'pad') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
155
|
+
palettegen(opts) { const n = { kind: 'Filter', name: 'palettegen', params: opts ? _p(opts, 'palettegen') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
156
|
+
paletteuse(opts) { const n = { kind: 'Filter', name: 'paletteuse', params: opts ? _p(opts, 'paletteuse') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
157
|
+
pan(opts) { const n = { kind: 'AudioFilter', name: 'pan', params: _p(opts, 'pan'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
158
|
+
parallax(b, opts) { const n = { kind: 'Combine2', op: 'parallax', a: this._id, b: b._id, params: opts ? _p(opts, 'parallax') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
159
|
+
perspective(opts) { const n = { kind: 'Filter', name: 'perspective', params: opts ? _p(opts, 'perspective') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
160
|
+
photosensitivity(opts) { const n = { kind: 'Filter', name: 'photosensitivity', params: opts ? _p(opts, 'photosensitivity') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
161
|
+
pseudocolor(opts) { const n = { kind: 'Filter', name: 'pseudocolor', params: opts ? _p(opts, 'pseudocolor') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
162
|
+
psnr(opts) { const n = { kind: 'Filter', name: 'psnr', params: opts ? _p(opts, 'psnr') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
163
|
+
recognizeText(opts) { const n = { kind: 'Fanout', op: 'recognize_text', params: opts ? _p(opts, 'recognize_text') : {}, input: this._id }; return mk('Text', this._graph._addNode(n), this._graph); }
|
|
164
|
+
recognizeTextIn(b, opts) { const n = { kind: 'Combine2', op: 'recognize_text_in', a: this._id, b: b._id, params: _p(opts, 'recognize_text_in') }; return mk('Text', this._graph._addNode(n), this._graph); }
|
|
165
|
+
redact(b, opts) { const n = { kind: 'Combine2', op: 'redact', a: this._id, b: b._id, params: opts ? _p(opts, 'redact') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
166
|
+
redactText(b, opts) { const n = { kind: 'Combine2', op: 'redact_text', a: this._id, b: b._id, params: opts ? _p(opts, 'redact_text') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
167
|
+
redactTracks(opts) { const n = { kind: 'Filter', name: 'redact_tracks', params: _p(opts, 'redact_tracks'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
168
|
+
renderHeatmap(b, opts) { const n = { kind: 'Combine2', op: 'render_heatmap', a: this._id, b: b._id, params: opts ? _p(opts, 'render_heatmap') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
169
|
+
resize(opts) { const n = { kind: 'Filter', name: 'resize', params: _p(opts, 'resize'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
168
170
|
reverse() { const n = { kind: 'Filter', name: 'reverse', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
169
|
-
rgbashift(opts) { const n = { kind: 'Filter', name: 'rgbashift', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
170
|
-
rotate(opts) { const n = { kind: 'Filter', name: 'rotate', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
171
|
-
rubberband(opts) { const n = { kind: 'AudioFilter', name: 'rubberband', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
172
|
-
scale(opts) { const n = { kind: 'Filter', name: 'scale', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
171
|
+
rgbashift(opts) { const n = { kind: 'Filter', name: 'rgbashift', params: opts ? _p(opts, 'rgbashift') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
172
|
+
rotate(opts) { const n = { kind: 'Filter', name: 'rotate', params: opts ? _p(opts, 'rotate') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
173
|
+
rubberband(opts) { const n = { kind: 'AudioFilter', name: 'rubberband', params: opts ? _p(opts, 'rubberband') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
174
|
+
scale(opts) { const n = { kind: 'Filter', name: 'scale', params: _p(opts, 'scale'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
173
175
|
scale2ref(b) { const n = { kind: 'Combine2', op: 'scale2ref', a: this._id, b: b._id, params: {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
174
|
-
scaleCuda(opts) { const n = { kind: 'Filter', name: 'scale_cuda', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
175
|
-
sceneColorGrade(b, opts) { const n = { kind: 'Combine2', op: 'scene_color_grade', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
176
|
-
segment(opts) { const n = { kind: 'Fanout', op: 'segment', params: opts ? _p(opts) : {}, input: this._id }; return mk('Segmentation', this._graph._addNode(n), this._graph); }
|
|
177
|
-
select(opts) { const n = { kind: 'Filter', name: 'select', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
178
|
-
selectivecolor(opts) { const n = { kind: 'Filter', name: 'selectivecolor', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
179
|
-
sendcmd(opts) { const n = { kind: 'Filter', name: 'sendcmd', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
180
|
-
setdar(opts) { const n = { kind: 'Filter', name: 'setdar', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
181
|
-
setpts(opts) { const n = { kind: 'Filter', name: 'setpts', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
182
|
-
setsar(opts) { const n = { kind: 'Filter', name: 'setsar', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
183
|
-
showcqt(opts) { const n = { kind: 'AudioFilter', name: 'showcqt', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
184
|
-
showspectrum(opts) { const n = { kind: 'AudioFilter', name: 'showspectrum', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
185
|
-
showwaves(opts) { const n = { kind: 'AudioFilter', name: 'showwaves', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
186
|
-
sidechaincompress(b, opts) { const n = { kind: 'Combine2', op: 'sidechaincompress', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
187
|
-
silencedetect(opts) { const n = { kind: 'AudioFilter', name: 'silencedetect', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
188
|
-
silenceremove(opts) { const n = { kind: 'AudioFilter', name: 'silenceremove', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
189
|
-
slideshow(rest, opts) { const n = { kind: 'CombineN', op: 'slideshow', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
190
|
-
speechnorm(opts) { const n = { kind: 'AudioFilter', name: 'speechnorm', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
191
|
-
ssim(opts) { const n = { kind: 'Filter', name: 'ssim', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
192
|
-
stereowiden(opts) { const n = { kind: 'AudioFilter', name: 'stereowiden', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
193
|
-
subtitles(opts) { const n = { kind: 'Filter', name: 'subtitles', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
194
|
-
surround(opts) { const n = { kind: 'AudioFilter', name: 'surround', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
195
|
-
tblend(opts) { const n = { kind: 'Filter', name: 'tblend', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
196
|
-
thumbnail(opts) { const n = { kind: 'Filter', name: 'thumbnail', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
197
|
-
tile(opts) { const n = { kind: 'Filter', name: 'tile', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
198
|
-
tmix(opts) { const n = { kind: 'Filter', name: 'tmix', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
199
|
-
tpad(opts) { const n = { kind: 'Filter', name: 'tpad', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
200
|
-
track(opts) { const n = { kind: 'Transform', op: 'track', params: _p(opts), input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
201
|
-
transcribe(opts) { const n = { kind: 'Fanout', op: 'transcribe', params: opts ? _p(opts) : {}, input: this._id }; return mk('Transcript', this._graph._addNode(n), this._graph); }
|
|
202
|
-
transpose(opts) { const n = { kind: 'Filter', name: 'transpose', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
203
|
-
treble(opts) { const n = { kind: 'AudioFilter', name: 'treble', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
204
|
-
tremolo(opts) { const n = { kind: 'AudioFilter', name: 'tremolo', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
205
|
-
trim(opts) { const n = { kind: 'Filter', name: 'trim', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
176
|
+
scaleCuda(opts) { const n = { kind: 'Filter', name: 'scale_cuda', params: opts ? _p(opts, 'scale_cuda') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
177
|
+
sceneColorGrade(b, opts) { const n = { kind: 'Combine2', op: 'scene_color_grade', a: this._id, b: b._id, params: opts ? _p(opts, 'scene_color_grade') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
178
|
+
segment(opts) { const n = { kind: 'Fanout', op: 'segment', params: opts ? _p(opts, 'segment') : {}, input: this._id }; return mk('Segmentation', this._graph._addNode(n), this._graph); }
|
|
179
|
+
select(opts) { const n = { kind: 'Filter', name: 'select', params: _p(opts, 'select'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
180
|
+
selectivecolor(opts) { const n = { kind: 'Filter', name: 'selectivecolor', params: opts ? _p(opts, 'selectivecolor') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
181
|
+
sendcmd(opts) { const n = { kind: 'Filter', name: 'sendcmd', params: opts ? _p(opts, 'sendcmd') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
182
|
+
setdar(opts) { const n = { kind: 'Filter', name: 'setdar', params: _p(opts, 'setdar'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
183
|
+
setpts(opts) { const n = { kind: 'Filter', name: 'setpts', params: _p(opts, 'setpts'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
184
|
+
setsar(opts) { const n = { kind: 'Filter', name: 'setsar', params: _p(opts, 'setsar'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
185
|
+
showcqt(opts) { const n = { kind: 'AudioFilter', name: 'showcqt', params: opts ? _p(opts, 'showcqt') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
186
|
+
showspectrum(opts) { const n = { kind: 'AudioFilter', name: 'showspectrum', params: opts ? _p(opts, 'showspectrum') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
187
|
+
showwaves(opts) { const n = { kind: 'AudioFilter', name: 'showwaves', params: opts ? _p(opts, 'showwaves') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
188
|
+
sidechaincompress(b, opts) { const n = { kind: 'Combine2', op: 'sidechaincompress', a: this._id, b: b._id, params: opts ? _p(opts, 'sidechaincompress') : {} }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
189
|
+
silencedetect(opts) { const n = { kind: 'AudioFilter', name: 'silencedetect', params: opts ? _p(opts, 'silencedetect') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
190
|
+
silenceremove(opts) { const n = { kind: 'AudioFilter', name: 'silenceremove', params: opts ? _p(opts, 'silenceremove') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
191
|
+
slideshow(rest, opts) { const n = { kind: 'CombineN', op: 'slideshow', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts, 'slideshow') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
192
|
+
speechnorm(opts) { const n = { kind: 'AudioFilter', name: 'speechnorm', params: opts ? _p(opts, 'speechnorm') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
193
|
+
ssim(opts) { const n = { kind: 'Filter', name: 'ssim', params: opts ? _p(opts, 'ssim') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
194
|
+
stereowiden(opts) { const n = { kind: 'AudioFilter', name: 'stereowiden', params: opts ? _p(opts, 'stereowiden') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
195
|
+
subtitles(opts) { const n = { kind: 'Filter', name: 'subtitles', params: _p(opts, 'subtitles'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
196
|
+
surround(opts) { const n = { kind: 'AudioFilter', name: 'surround', params: opts ? _p(opts, 'surround') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
197
|
+
tblend(opts) { const n = { kind: 'Filter', name: 'tblend', params: opts ? _p(opts, 'tblend') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
198
|
+
thumbnail(opts) { const n = { kind: 'Filter', name: 'thumbnail', params: opts ? _p(opts, 'thumbnail') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
199
|
+
tile(opts) { const n = { kind: 'Filter', name: 'tile', params: opts ? _p(opts, 'tile') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
200
|
+
tmix(opts) { const n = { kind: 'Filter', name: 'tmix', params: opts ? _p(opts, 'tmix') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
201
|
+
tpad(opts) { const n = { kind: 'Filter', name: 'tpad', params: opts ? _p(opts, 'tpad') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
202
|
+
track(opts) { const n = { kind: 'Transform', op: 'track', params: _p(opts, 'track'), input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
203
|
+
transcribe(opts) { const n = { kind: 'Fanout', op: 'transcribe', params: opts ? _p(opts, 'transcribe') : {}, input: this._id }; return mk('Transcript', this._graph._addNode(n), this._graph); }
|
|
204
|
+
transpose(opts) { const n = { kind: 'Filter', name: 'transpose', params: _p(opts, 'transpose'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
205
|
+
treble(opts) { const n = { kind: 'AudioFilter', name: 'treble', params: _p(opts, 'treble'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
206
|
+
tremolo(opts) { const n = { kind: 'AudioFilter', name: 'tremolo', params: opts ? _p(opts, 'tremolo') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
207
|
+
trim(opts) { const n = { kind: 'Filter', name: 'trim', params: opts ? _p(opts, 'trim') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
206
208
|
union(b) { const n = { kind: 'Combine2', op: 'union', a: this._id, b: b._id, params: {} }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
207
209
|
unionSegmentations(b) { const n = { kind: 'Combine2', op: 'union_segmentations', a: this._id, b: b._id, params: {} }; return mk('Segmentation', this._graph._addNode(n), this._graph); }
|
|
208
|
-
unsharp(opts) { const n = { kind: 'Filter', name: 'unsharp', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
209
|
-
upscale(opts) { const n = { kind: 'Filter', name: 'upscale', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
210
|
-
v360(opts) { const n = { kind: 'Filter', name: 'v360', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
211
|
-
vectorscope(opts) { const n = { kind: 'Filter', name: 'vectorscope', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
210
|
+
unsharp(opts) { const n = { kind: 'Filter', name: 'unsharp', params: opts ? _p(opts, 'unsharp') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
211
|
+
upscale(opts) { const n = { kind: 'Filter', name: 'upscale', params: _p(opts, 'upscale'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
212
|
+
v360(opts) { const n = { kind: 'Filter', name: 'v360', params: opts ? _p(opts, 'v360') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
213
|
+
vectorscope(opts) { const n = { kind: 'Filter', name: 'vectorscope', params: opts ? _p(opts, 'vectorscope') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
212
214
|
vflip() { const n = { kind: 'Filter', name: 'vflip', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
213
|
-
vibrato(opts) { const n = { kind: 'AudioFilter', name: 'vibrato', params: opts ? _p(opts) : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
214
|
-
vidstab(opts) { const n = { kind: 'Filter', name: 'vidstab', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
215
|
-
vidstabdetect(opts) { const n = { kind: 'Filter', name: 'vidstabdetect', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
216
|
-
vidstabtransform(opts) { const n = { kind: 'Filter', name: 'vidstabtransform', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
217
|
-
vignette(opts) { const n = { kind: 'Filter', name: 'vignette', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
218
|
-
volume(opts) { const n = { kind: 'AudioFilter', name: 'volume', params: _p(opts), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
219
|
-
vstack(rest, opts) { const n = { kind: 'CombineN', op: 'vstack', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
220
|
-
waveform(opts) { const n = { kind: 'Filter', name: 'waveform', params: opts ? _p(opts) : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
221
|
-
weightedDetections(b, opts) { const n = { kind: 'Combine2', op: 'weighted_detections', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
222
|
-
xfade(b, opts) { const n = { kind: 'Combine2', op: 'xfade', a: this._id, b: b._id, params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
223
|
-
xstack(rest, opts) { const n = { kind: 'CombineN', op: 'xstack', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts) : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
215
|
+
vibrato(opts) { const n = { kind: 'AudioFilter', name: 'vibrato', params: opts ? _p(opts, 'vibrato') : {}, input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
216
|
+
vidstab(opts) { const n = { kind: 'Filter', name: 'vidstab', params: opts ? _p(opts, 'vidstab') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
217
|
+
vidstabdetect(opts) { const n = { kind: 'Filter', name: 'vidstabdetect', params: opts ? _p(opts, 'vidstabdetect') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
218
|
+
vidstabtransform(opts) { const n = { kind: 'Filter', name: 'vidstabtransform', params: opts ? _p(opts, 'vidstabtransform') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
219
|
+
vignette(opts) { const n = { kind: 'Filter', name: 'vignette', params: opts ? _p(opts, 'vignette') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
220
|
+
volume(opts) { const n = { kind: 'AudioFilter', name: 'volume', params: _p(opts, 'volume'), input: this._id }; return mk('Audio', this._graph._addNode(n), this._graph); }
|
|
221
|
+
vstack(rest, opts) { const n = { kind: 'CombineN', op: 'vstack', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts, 'vstack') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
222
|
+
waveform(opts) { const n = { kind: 'Filter', name: 'waveform', params: opts ? _p(opts, 'waveform') : {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
223
|
+
weightedDetections(b, opts) { const n = { kind: 'Combine2', op: 'weighted_detections', a: this._id, b: b._id, params: opts ? _p(opts, 'weighted_detections') : {} }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
224
|
+
xfade(b, opts) { const n = { kind: 'Combine2', op: 'xfade', a: this._id, b: b._id, params: opts ? _p(opts, 'xfade') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
225
|
+
xstack(rest, opts) { const n = { kind: 'CombineN', op: 'xstack', streams: [this._id, ...rest.map((s) => s._id)], params: opts ? _p(opts, 'xstack') : {} }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
224
226
|
yadif() { const n = { kind: 'Filter', name: 'yadif', params: {}, input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
225
|
-
zone(opts) { const n = { kind: 'Transform', op: 'zone', params: opts ? _p(opts) : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
226
|
-
zoompan(opts) { const n = { kind: 'Filter', name: 'zoompan', params: _p(opts), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
227
|
+
zone(opts) { const n = { kind: 'Transform', op: 'zone', params: opts ? _p(opts, 'zone') : {}, input: this._id }; return mk('Detection', this._graph._addNode(n), this._graph); }
|
|
228
|
+
zoompan(opts) { const n = { kind: 'Filter', name: 'zoompan', params: _p(opts, 'zoompan'), input: this._id }; return mk('Video', this._graph._addNode(n), this._graph); }
|
|
227
229
|
}
|
|
228
230
|
/** @internal */
|
|
229
231
|
export function mk(sort, id, g) {
|
|
230
232
|
return new Stream(sort, id, g);
|
|
231
233
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
+
const RANGES = {
|
|
235
|
+
afade: { duration: [0, null, 1, 'greater than 0'], start_time: [0, null, 0, 'at least 0'] },
|
|
236
|
+
aggregate_tracks: { window: [0, null, 1, 'greater than 0'] },
|
|
237
|
+
anoisesrc: { a: [0, 1, 0, 'in [0, 1]'] },
|
|
238
|
+
atempo: { tempo: [0.5, 100, 0, 'in [0.5, 100]'] },
|
|
239
|
+
atrim: { start: [0, null, 0, 'at least 0'], end: [0, null, 1, 'greater than 0'] },
|
|
240
|
+
auto_enhance: { strength: [0, 1, 0, 'in [0, 1]'] },
|
|
241
|
+
cas: { strength: [0, 1, 0, 'in [0, 1]'] },
|
|
242
|
+
chromakey: { similarity: [0, 1, 0, 'in [0, 1]'], blend: [0, 1, 0, 'in [0, 1]'] },
|
|
243
|
+
classify_audio_event: { threshold: [0, 1, 0, 'in [0, 1]'], window_seconds: [0, null, 1, 'greater than 0'], hop_seconds: [0, null, 1, 'greater than 0'] },
|
|
244
|
+
classify_detections: { crop_region: [0, 1, 0, 'in [0, 1]'], padding: [0, null, 0, 'at least 0'], threshold: [0, 1, 0, 'in [0, 1]'], crop_height_ratio: [0, 1, 0, 'in [0, 1]'] },
|
|
245
|
+
classify_scene: { threshold: [0, 1, 0, 'in [0, 1]'], top_k: [0, null, 1, 'greater than 0'] },
|
|
246
|
+
color_correct: { strength: [0, 1, 0, 'in [0, 1]'] },
|
|
247
|
+
colorize: { saturation: [0, null, 1, 'greater than 0'], temporal_stability: [0, 1, 0, 'in [0, 1]'] },
|
|
248
|
+
colorkey: { similarity: [0, 1, 0, 'in [0, 1]'], blend: [0, 1, 0, 'in [0, 1]'] },
|
|
249
|
+
contains_detections: { min_containment: [0, 1, 0, 'in [0, 1]'] },
|
|
250
|
+
crop: { w: [0, null, 1, 'greater than 0'], h: [0, null, 1, 'greater than 0'] },
|
|
251
|
+
deblur: { strength: [0, 1, 0, 'in [0, 1]'] },
|
|
252
|
+
denoise: { strength: [0, 1, 0, 'in [0, 1]'] },
|
|
253
|
+
density_overlay: { alpha: [0, 1, 0, 'in [0, 1]'] },
|
|
254
|
+
depth_blur: { max_blur: [0, null, 0, 'at least 0'] },
|
|
255
|
+
depth_fog: { density: [0, 1, 0, 'in [0, 1]'] },
|
|
256
|
+
detect: { threshold: [0, 1, 0, 'in [0, 1]'] },
|
|
257
|
+
diarize: { max_speakers: [0, null, 1, 'greater than 0'], min_duration: [0, null, 0, 'at least 0'] },
|
|
258
|
+
draw_skeleton: { line_width: [0, null, 1, 'greater than 0'], keypoint_radius: [0, null, 1, 'greater than 0'], min_confidence: [0, 1, 0, 'in [0, 1]'] },
|
|
259
|
+
dynamic_crop: { target_aspect_w: [0, null, 1, 'greater than 0'], target_aspect_h: [0, null, 1, 'greater than 0'], smoothing: [0, 1, 0, 'in [0, 1]'], padding: [0, null, 0, 'at least 0'] },
|
|
260
|
+
eq: { brightness: [-1, 1, 0, 'in [-1, 1]'], contrast: [-1000, 1000, 0, 'in [-1000, 1000]'], saturation: [0, 3, 0, 'in [0, 3]'], gamma: [0.1, 10, 0, 'in [0.1, 10]'] },
|
|
261
|
+
estimate_pose: { threshold: [0, 1, 0, 'in [0, 1]'], max_persons: [0, null, 1, 'greater than 0'] },
|
|
262
|
+
estimate_pose_detections: { threshold: [0, null, 0, 'at least 0'], padding: [0, null, 0, 'at least 0'] },
|
|
263
|
+
fade: { st: [0, null, 0, 'at least 0'], d: [0, null, 1, 'greater than 0'] },
|
|
264
|
+
filter_audio_events: { min_confidence: [0, 1, 0, 'in [0, 1]'], min_duration: [0, null, 0, 'at least 0'] },
|
|
265
|
+
filter_detections: { min_confidence: [0, 1, 0, 'in [0, 1]'], min_area: [0, 1, 0, 'in [0, 1]'], min_track_frames: [0, null, 0, 'at least 0'], track_id: [0, null, 0, 'at least 0'], exclude_track_id: [0, null, 0, 'at least 0'] },
|
|
266
|
+
filter_poses: { min_score: [0, 1, 0, 'in [0, 1]'], max_persons: [0, null, 1, 'greater than 0'] },
|
|
267
|
+
filter_scenes: { min_confidence: [0, 1, 0, 'in [0, 1]'] },
|
|
268
|
+
filter_segmentation: { min_area: [0, null, 0, 'at least 0'] },
|
|
269
|
+
filter_text: { min_confidence: [0, 1, 0, 'in [0, 1]'] },
|
|
270
|
+
fps: { fps: [0, null, 1, 'greater than 0'] },
|
|
271
|
+
frame_interpolate: { factor: [0, null, 1, 'greater than 0'] },
|
|
272
|
+
framestep: { step: [1, null, 4, 'at least 1 (integer)'] },
|
|
273
|
+
gblur: { sigma: [0, null, 1, 'greater than 0'] },
|
|
274
|
+
insert_chapters: { min_duration: [0, null, 0, 'at least 0'] },
|
|
275
|
+
intersection_detections: { iou_threshold: [0, 1, 0, 'in [0, 1]'] },
|
|
276
|
+
loudnorm: { I: [-70, -5, 0, 'in [-70, -5]'], TP: [-9, 0, 0, 'in [-9, 0]'], LRA: [1, 50, 0, 'in [1, 50]'] },
|
|
277
|
+
mask_blur: { radius: [0, null, 0, 'at least 0'], sigma: [0, null, 0, 'at least 0'] },
|
|
278
|
+
mask_composite: { opacity: [0, 1, 0, 'in [0, 1]'] },
|
|
279
|
+
motion_redact: { radius: [0, null, 5, 'greater than 0 (integer)'], sensitivity: [1, 255, 0, 'in [1, 255]'], decay_secs: [0, null, 1, 'greater than 0'], dilate_px: [0, null, 0, 'at least 0'], warmup_secs: [0, null, 0, 'at least 0'], learning_rate: [0, 1, 0, 'in [0, 1]'], fps: [0, null, 1, 'greater than 0'] },
|
|
280
|
+
noise: { alls: [0, 100, 0, 'in [0, 100]'] },
|
|
281
|
+
overlay: { alpha: [0, 1, 0, 'in [0, 1]'] },
|
|
282
|
+
overlay_translation: { font_size: [0, null, 1, 'greater than 0'] },
|
|
283
|
+
pad: { w: [0, null, 1, 'greater than 0'], h: [0, null, 1, 'greater than 0'] },
|
|
284
|
+
parallax: { amplitude: [0, null, 0, 'at least 0'] },
|
|
285
|
+
recognize_text: { threshold: [0, 1, 0, 'in [0, 1]'] },
|
|
286
|
+
recognize_text_in: { threshold: [0, 1, 0, 'in [0, 1]'], padding: [0, null, 0, 'at least 0'] },
|
|
287
|
+
redact: { radius: [0, null, 0, 'at least 0'] },
|
|
288
|
+
redact_text: { radius: [0, null, 0, 'at least 0'], padding: [0, null, 0, 'at least 0'] },
|
|
289
|
+
render_heatmap: { alpha: [0, 1, 0, 'in [0, 1]'], radius: [0, null, 1, 'greater than 0'] },
|
|
290
|
+
scale: { w: [null, null, 4, 'an integer'], h: [null, null, 4, 'an integer'] },
|
|
291
|
+
scene_color_grade: { intensity: [0, 1, 0, 'in [0, 1]'], transition_frames: [0, null, 0, 'at least 0'] },
|
|
292
|
+
segment: { threshold: [0, 1, 0, 'in [0, 1]'] },
|
|
293
|
+
transpose: { dir: [0, 3, 4, 'in [0, 3] (integer)'] },
|
|
294
|
+
trim: { start: [0, null, 0, 'at least 0'], end: [0, null, 1, 'greater than 0'] },
|
|
295
|
+
upscale: { scale: [0, null, 1, 'greater than 0'], tileSize: [0, null, 1, 'greater than 0'] },
|
|
296
|
+
vignette: { angle: [0, 1.5707963267948966, 0, 'in [0, 1.5707963267948966]'] },
|
|
297
|
+
volume: { volume: [0, null, 0, 'at least 0'] },
|
|
298
|
+
weighted_detections: { weight_a: [0, null, 0, 'at least 0'], weight_b: [0, null, 0, 'at least 0'] },
|
|
299
|
+
};
|
|
300
|
+
/** @internal — drop undefined so absent opts don't reach the wire; when `op`
|
|
301
|
+
* is given, enforce the registry's numeric ranges (throws RangeError). */
|
|
302
|
+
export function _p(opts, op) {
|
|
303
|
+
const ranges = op !== undefined ? RANGES[op] : undefined;
|
|
234
304
|
const p = {};
|
|
235
305
|
for (const [k, v] of Object.entries(opts)) {
|
|
236
|
-
if (v
|
|
237
|
-
|
|
306
|
+
if (v === undefined)
|
|
307
|
+
continue;
|
|
308
|
+
if (ranges !== undefined && typeof v === 'number') {
|
|
309
|
+
const r = ranges[k];
|
|
310
|
+
if (r !== undefined) {
|
|
311
|
+
const [min, max, flags, desc] = r;
|
|
312
|
+
const bad = (min !== null && ((flags & 1) !== 0 ? v <= min : v < min)) ||
|
|
313
|
+
(max !== null && ((flags & 2) !== 0 ? v >= max : v > max)) ||
|
|
314
|
+
((flags & 4) !== 0 && !Number.isInteger(v));
|
|
315
|
+
if (bad)
|
|
316
|
+
throw new RangeError(`${op}: ${k}=${v} must be ${desc}`);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
p[k] = v;
|
|
238
320
|
}
|
|
239
321
|
return p;
|
|
240
322
|
}
|