@omnimedia/omnitool 1.1.0-9 → 1.1.0-90
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 +358 -73
- package/package.json +19 -17
- package/s/context.ts +0 -7
- package/s/demo/demo.bundle.ts +104 -43
- package/s/demo/demo.css +244 -14
- package/s/demo/routines/export-test.ts +16 -0
- package/s/demo/routines/filmstrip-test.ts +22 -18
- package/s/demo/routines/load-video.ts +2 -3
- package/s/demo/routines/playback-test.ts +61 -0
- package/s/demo/routines/timeline-setup.ts +49 -0
- package/s/demo/routines/transcode-test.ts +19 -5
- package/s/demo/routines/transitions-test.ts +2 -2
- package/s/demo/routines/waveform-test.ts +35 -8
- package/s/driver/driver-worker.ts +9 -0
- package/s/driver/driver.test.ts +1 -1
- package/s/driver/driver.ts +43 -42
- package/s/driver/fns/schematic.ts +26 -6
- package/s/driver/fns/work.ts +65 -189
- package/s/driver/parts/compositor.ts +316 -0
- package/s/driver/parts/machina.ts +19 -20
- package/s/driver/utils/find-pixi-filter.ts +24 -0
- package/s/index.html.ts +103 -25
- package/s/index.ts +1 -0
- package/s/tests.bundle.ts +11 -0
- package/s/tests.html.ts +28 -0
- package/s/timeline/index.ts +9 -1
- package/s/timeline/parts/animations/make.ts +38 -0
- package/s/timeline/parts/animations/presets.ts +138 -0
- package/s/timeline/parts/animations/properties.ts +30 -0
- package/s/timeline/parts/animations/registry.ts +13 -0
- package/s/timeline/parts/animations/types.ts +80 -0
- package/s/timeline/parts/filmstrip.ts +43 -16
- package/s/timeline/parts/filters.ts +453 -0
- package/s/timeline/parts/item.ts +59 -7
- package/s/timeline/parts/media.ts +12 -2
- package/s/timeline/parts/resource-pool.ts +8 -5
- package/s/timeline/parts/resource.ts +3 -0
- package/s/timeline/parts/waveform/parts/collect.ts +72 -0
- package/s/timeline/parts/waveform/parts/render.ts +45 -0
- package/s/timeline/parts/waveform/parts/types.ts +24 -0
- package/s/timeline/parts/waveform/waveform.ts +161 -0
- package/s/timeline/renderers/export/parts/audio-gain.ts +17 -0
- package/s/timeline/renderers/export/parts/audio-mix.ts +133 -0
- package/s/timeline/renderers/export/parts/cursor.ts +274 -0
- package/s/timeline/renderers/export/parts/produce-audio.ts +64 -0
- package/s/timeline/renderers/export/parts/produce-video.ts +49 -0
- package/s/timeline/renderers/export/parts/resamplers.ts +48 -0
- package/s/timeline/renderers/export/produce.ts +28 -0
- package/s/timeline/renderers/parts/handy.ts +418 -0
- package/s/timeline/renderers/parts/samplers/audio/parts/find.ts +19 -0
- package/s/timeline/renderers/parts/samplers/audio/parts/init.ts +60 -0
- package/s/timeline/renderers/parts/samplers/audio/parts/sink.ts +38 -0
- package/s/timeline/renderers/parts/samplers/audio/parts/types.ts +16 -0
- package/s/timeline/renderers/parts/samplers/audio/sampler.ts +35 -0
- package/s/timeline/renderers/parts/samplers/visual/parts/defaults.ts +16 -0
- package/s/timeline/renderers/parts/samplers/visual/parts/sample.ts +69 -0
- package/s/timeline/renderers/parts/samplers/visual/parts/sequence.ts +111 -0
- package/s/timeline/renderers/parts/samplers/visual/parts/sink.ts +38 -0
- package/s/timeline/renderers/parts/samplers/visual/parts/transition.ts +28 -0
- package/s/timeline/renderers/parts/samplers/visual/parts/types.ts +10 -0
- package/s/timeline/renderers/parts/samplers/visual/sampler.ts +28 -0
- package/s/timeline/renderers/parts/schedulers.ts +96 -0
- package/s/timeline/renderers/player/parts/playback.ts +213 -0
- package/s/timeline/renderers/player/player.ts +86 -0
- package/s/timeline/renderers/renderers.test.ts +403 -0
- package/s/timeline/sugar/helpers.ts +215 -0
- package/s/timeline/sugar/o.ts +274 -54
- package/s/timeline/sugar/omni.test.ts +210 -0
- package/s/timeline/sugar/omni.ts +25 -9
- package/s/timeline/types.ts +36 -3
- package/s/timeline/utils/anim.ts +63 -0
- package/s/timeline/utils/checksum.ts +3 -1
- package/s/timeline/utils/datafile.ts +15 -4
- package/s/timeline/utils/dummy-data.ts +3 -3
- package/s/timeline/utils/matrix.ts +21 -0
- package/s/timeline/utils/terps.ts +81 -0
- package/s/units/fps.ts +8 -0
- package/s/units/ms.ts +8 -0
- package/s/units/seconds.ts +8 -0
- package/x/WebGLRenderer-4CHIZDHY.js +2 -0
- package/x/WebGLRenderer-4CHIZDHY.js.map +7 -0
- package/x/WebGPURenderer-O6WXU2QR.js +2 -0
- package/x/WebGPURenderer-O6WXU2QR.js.map +7 -0
- package/x/browserAll-WNIOTNNP.js +2 -0
- package/x/browserAll-WNIOTNNP.js.map +7 -0
- package/x/chunk-23FOBGX6.js +2 -0
- package/x/chunk-23FOBGX6.js.map +7 -0
- package/x/chunk-73XOWA4F.js +393 -0
- package/x/chunk-73XOWA4F.js.map +7 -0
- package/x/chunk-IAWJKNX5.js +42 -0
- package/x/chunk-IAWJKNX5.js.map +7 -0
- package/x/chunk-KCMVLWBS.js +157 -0
- package/x/chunk-KCMVLWBS.js.map +7 -0
- package/x/chunk-MR32SQ27.js +2 -0
- package/x/chunk-MR32SQ27.js.map +7 -0
- package/x/chunk-VCUJJYRJ.js +327 -0
- package/x/chunk-VCUJJYRJ.js.map +7 -0
- package/x/chunk-XNIZ4L5W.js +269 -0
- package/x/chunk-XNIZ4L5W.js.map +7 -0
- package/x/chunk-ZLGNQFUI.js +15 -0
- package/x/chunk-ZLGNQFUI.js.map +7 -0
- package/x/context.d.ts +1 -4
- package/x/context.js +1 -5
- package/x/context.js.map +1 -1
- package/x/demo/WebGLRenderer-RSJAHIG2.js +2 -0
- package/x/demo/WebGLRenderer-RSJAHIG2.js.map +7 -0
- package/x/demo/WebGPURenderer-MGFAJCYY.js +2 -0
- package/x/demo/WebGPURenderer-MGFAJCYY.js.map +7 -0
- package/x/demo/browserAll-PTRBXBRP.js +2 -0
- package/x/demo/browserAll-PTRBXBRP.js.map +7 -0
- package/x/demo/chunk-CUYOGHWU.js +42 -0
- package/x/demo/chunk-CUYOGHWU.js.map +7 -0
- package/x/demo/chunk-DGTDNJ7W.js +2 -0
- package/x/demo/chunk-DGTDNJ7W.js.map +7 -0
- package/x/demo/chunk-FZ5BYF63.js +15 -0
- package/x/demo/chunk-FZ5BYF63.js.map +7 -0
- package/x/demo/chunk-KWN4NNES.js +269 -0
- package/x/demo/chunk-KWN4NNES.js.map +7 -0
- package/x/demo/chunk-OJ3FPXW7.js +157 -0
- package/x/demo/chunk-OJ3FPXW7.js.map +7 -0
- package/x/demo/chunk-PSLUOGTZ.js +393 -0
- package/x/demo/chunk-PSLUOGTZ.js.map +7 -0
- package/x/demo/chunk-VLCVEIFU.js +327 -0
- package/x/demo/chunk-VLCVEIFU.js.map +7 -0
- package/x/demo/chunk-ZWCPT5FR.js +2 -0
- package/x/demo/chunk-ZWCPT5FR.js.map +7 -0
- package/x/demo/demo.bundle.js +94 -40
- package/x/demo/demo.bundle.js.map +1 -1
- package/x/demo/demo.bundle.min.js +7340 -90
- package/x/demo/demo.bundle.min.js.map +4 -4
- package/x/demo/demo.css +244 -14
- package/x/demo/routines/export-test.d.ts +2 -0
- package/x/demo/routines/export-test.js +10 -0
- package/x/demo/routines/export-test.js.map +1 -0
- package/x/demo/routines/filmstrip-test.d.ts +1 -1
- package/x/demo/routines/filmstrip-test.js +20 -17
- package/x/demo/routines/filmstrip-test.js.map +1 -1
- package/x/demo/routines/load-video.d.ts +1 -1
- package/x/demo/routines/load-video.js +1 -2
- package/x/demo/routines/load-video.js.map +1 -1
- package/x/demo/routines/playback-test.d.ts +2 -0
- package/x/demo/routines/playback-test.js +51 -0
- package/x/demo/routines/playback-test.js.map +1 -0
- package/x/demo/routines/timeline-setup.d.ts +6 -0
- package/x/demo/routines/timeline-setup.js +33 -0
- package/x/demo/routines/timeline-setup.js.map +1 -0
- package/x/demo/routines/transcode-test.js +15 -5
- package/x/demo/routines/transcode-test.js.map +1 -1
- package/x/demo/routines/transitions-test.js +2 -2
- package/x/demo/routines/transitions-test.js.map +1 -1
- package/x/demo/routines/waveform-test.d.ts +2 -1
- package/x/demo/routines/waveform-test.js +29 -8
- package/x/demo/routines/waveform-test.js.map +1 -1
- package/x/demo/webworkerAll-JENRT6BT.js +2 -0
- package/x/demo/webworkerAll-JENRT6BT.js.map +7 -0
- package/x/driver/driver-worker.d.ts +1 -0
- package/x/driver/driver-worker.js +6 -0
- package/x/driver/driver-worker.js.map +1 -0
- package/x/driver/driver.d.ts +25 -8
- package/x/driver/driver.js +43 -39
- package/x/driver/driver.js.map +1 -1
- package/x/driver/driver.test.js +1 -1
- package/x/driver/driver.test.js.map +1 -1
- package/x/driver/driver.worker.bundle.min.js +117 -3506
- package/x/driver/driver.worker.bundle.min.js.map +4 -4
- package/x/driver/fns/host.d.ts +3 -2
- package/x/driver/fns/schematic.d.ts +25 -4
- package/x/driver/fns/work.d.ts +4 -4
- package/x/driver/fns/work.js +55 -155
- package/x/driver/fns/work.js.map +1 -1
- package/x/driver/parts/compositor.d.ts +39 -0
- package/x/driver/parts/compositor.js +261 -0
- package/x/driver/parts/compositor.js.map +1 -0
- package/x/driver/parts/machina.d.ts +0 -20
- package/x/driver/parts/machina.js +6 -10
- package/x/driver/parts/machina.js.map +1 -1
- package/x/driver/utils/find-pixi-filter.d.ts +5 -0
- package/x/driver/utils/find-pixi-filter.js +13 -0
- package/x/driver/utils/find-pixi-filter.js.map +1 -0
- package/x/features/speech/transcribe/parts/prep-audio.d.ts +1 -1
- package/x/features/speech/transcribe/worker.bundle.min.js +899 -899
- package/x/features/speech/transcribe/worker.bundle.min.js.map +4 -4
- package/x/index.d.ts +1 -0
- package/x/index.html +347 -38
- package/x/index.html.js +103 -24
- package/x/index.html.js.map +1 -1
- package/x/index.js +1 -0
- package/x/index.js.map +1 -1
- package/x/tests.bundle.js +8 -0
- package/x/tests.bundle.js.map +1 -0
- package/x/tests.bundle.min.js +7374 -0
- package/x/tests.bundle.min.js.map +7 -0
- package/x/tests.html +316 -0
- package/x/tests.html.d.ts +2 -0
- package/x/tests.html.js +22 -0
- package/x/tests.html.js.map +1 -0
- package/x/timeline/index.d.ts +8 -0
- package/x/timeline/index.js +8 -0
- package/x/timeline/index.js.map +1 -1
- package/x/timeline/parts/animations/make.d.ts +3 -0
- package/x/timeline/parts/animations/make.js +29 -0
- package/x/timeline/parts/animations/make.js.map +1 -0
- package/x/timeline/parts/animations/presets.d.ts +170 -0
- package/x/timeline/parts/animations/presets.js +135 -0
- package/x/timeline/parts/animations/presets.js.map +1 -0
- package/x/timeline/parts/animations/properties.d.ts +84 -0
- package/x/timeline/parts/animations/properties.js +25 -0
- package/x/timeline/parts/animations/properties.js.map +1 -0
- package/x/timeline/parts/animations/registry.d.ts +218 -0
- package/x/timeline/parts/animations/registry.js +11 -0
- package/x/timeline/parts/animations/registry.js.map +1 -0
- package/x/timeline/parts/animations/types.d.ts +60 -0
- package/x/timeline/parts/animations/types.js.map +1 -0
- package/x/timeline/parts/filmstrip.d.ts +4 -3
- package/x/timeline/parts/filmstrip.js +29 -10
- package/x/timeline/parts/filmstrip.js.map +1 -1
- package/x/timeline/parts/filters.d.ts +108 -0
- package/x/timeline/parts/filters.js +340 -0
- package/x/timeline/parts/filters.js.map +1 -0
- package/x/timeline/parts/item.d.ts +47 -4
- package/x/timeline/parts/item.js +4 -1
- package/x/timeline/parts/item.js.map +1 -1
- package/x/timeline/parts/media.d.ts +2 -0
- package/x/timeline/parts/media.js +11 -2
- package/x/timeline/parts/media.js.map +1 -1
- package/x/timeline/parts/resource-pool.d.ts +3 -0
- package/x/timeline/parts/resource-pool.js +7 -4
- package/x/timeline/parts/resource-pool.js.map +1 -1
- package/x/timeline/parts/resource.d.ts +3 -0
- package/x/timeline/parts/waveform/parts/collect.d.ts +11 -0
- package/x/timeline/parts/waveform/parts/collect.js +56 -0
- package/x/timeline/parts/waveform/parts/collect.js.map +1 -0
- package/x/timeline/parts/waveform/parts/render.d.ts +5 -0
- package/x/timeline/parts/waveform/parts/render.js +29 -0
- package/x/timeline/parts/waveform/parts/render.js.map +1 -0
- package/x/timeline/parts/waveform/parts/types.d.ts +21 -0
- package/x/timeline/parts/waveform/parts/types.js +2 -0
- package/x/timeline/parts/waveform/parts/types.js.map +1 -0
- package/x/timeline/parts/waveform/waveform.d.ts +19 -0
- package/x/timeline/parts/waveform/waveform.js +133 -0
- package/x/timeline/parts/waveform/waveform.js.map +1 -0
- package/x/timeline/renderers/export/parts/audio-gain.d.ts +1 -0
- package/x/timeline/renderers/export/parts/audio-gain.js +13 -0
- package/x/timeline/renderers/export/parts/audio-gain.js.map +1 -0
- package/x/timeline/renderers/export/parts/audio-mix.d.ts +21 -0
- package/x/timeline/renderers/export/parts/audio-mix.js +89 -0
- package/x/timeline/renderers/export/parts/audio-mix.js.map +1 -0
- package/x/timeline/renderers/export/parts/cursor.d.ts +35 -0
- package/x/timeline/renderers/export/parts/cursor.js +221 -0
- package/x/timeline/renderers/export/parts/cursor.js.map +1 -0
- package/x/timeline/renderers/export/parts/produce-audio.d.ts +6 -0
- package/x/timeline/renderers/export/parts/produce-audio.js +41 -0
- package/x/timeline/renderers/export/parts/produce-audio.js.map +1 -0
- package/x/timeline/renderers/export/parts/produce-video.d.ts +10 -0
- package/x/timeline/renderers/export/parts/produce-video.js +26 -0
- package/x/timeline/renderers/export/parts/produce-video.js.map +1 -0
- package/x/timeline/renderers/export/parts/resamplers.d.ts +12 -0
- package/x/timeline/renderers/export/parts/resamplers.js +29 -0
- package/x/timeline/renderers/export/parts/resamplers.js.map +1 -0
- package/x/timeline/renderers/export/produce.d.ts +13 -0
- package/x/timeline/renderers/export/produce.js +15 -0
- package/x/timeline/renderers/export/produce.js.map +1 -0
- package/x/timeline/renderers/parts/handy.d.ts +36 -0
- package/x/timeline/renderers/parts/handy.js +254 -0
- package/x/timeline/renderers/parts/handy.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/find.d.ts +6 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/find.js +15 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/find.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/init.d.ts +5 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/init.js +40 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/init.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/sink.d.ts +8 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/sink.js +24 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/sink.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/types.d.ts +14 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/types.js +2 -0
- package/x/timeline/renderers/parts/samplers/audio/parts/types.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/audio/sampler.d.ts +11 -0
- package/x/timeline/renderers/parts/samplers/audio/sampler.js +22 -0
- package/x/timeline/renderers/parts/samplers/audio/sampler.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/defaults.d.ts +5 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/defaults.js +10 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/defaults.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sample.d.ts +6 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sample.js +48 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sample.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sequence.d.ts +6 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sequence.js +75 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sequence.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sink.d.ts +8 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sink.js +24 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/sink.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/transition.d.ts +3 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/transition.js +18 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/transition.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/types.d.ts +8 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/types.js +2 -0
- package/x/timeline/renderers/parts/samplers/visual/parts/types.js.map +1 -0
- package/x/timeline/renderers/parts/samplers/visual/sampler.d.ts +7 -0
- package/x/timeline/renderers/parts/samplers/visual/sampler.js +17 -0
- package/x/timeline/renderers/parts/samplers/visual/sampler.js.map +1 -0
- package/x/timeline/renderers/parts/schedulers.d.ts +17 -0
- package/x/timeline/renderers/parts/schedulers.js +64 -0
- package/x/timeline/renderers/parts/schedulers.js.map +1 -0
- package/x/timeline/renderers/player/parts/playback.d.ts +39 -0
- package/x/timeline/renderers/player/parts/playback.js +160 -0
- package/x/timeline/renderers/player/parts/playback.js.map +1 -0
- package/x/timeline/renderers/player/player.d.ts +27 -0
- package/x/timeline/renderers/player/player.js +64 -0
- package/x/timeline/renderers/player/player.js.map +1 -0
- package/x/timeline/renderers/renderers.test.d.ts +33 -0
- package/x/timeline/renderers/renderers.test.js +321 -0
- package/x/timeline/renderers/renderers.test.js.map +1 -0
- package/x/timeline/sugar/helpers.d.ts +64 -0
- package/x/timeline/sugar/helpers.js +114 -0
- package/x/timeline/sugar/helpers.js.map +1 -0
- package/x/timeline/sugar/o.d.ts +38 -9
- package/x/timeline/sugar/o.js +200 -39
- package/x/timeline/sugar/o.js.map +1 -1
- package/x/timeline/sugar/omni.d.ts +9 -3
- package/x/timeline/sugar/omni.js +20 -7
- package/x/timeline/sugar/omni.js.map +1 -1
- package/x/timeline/sugar/omni.test.d.ts +27 -0
- package/x/timeline/sugar/omni.test.js +128 -0
- package/x/timeline/sugar/omni.test.js.map +1 -0
- package/x/timeline/types.d.ts +15 -2
- package/x/timeline/utils/anim.d.ts +3 -0
- package/x/timeline/utils/anim.js +40 -0
- package/x/timeline/utils/anim.js.map +1 -0
- package/x/timeline/utils/checksum.d.ts +3 -2
- package/x/timeline/utils/checksum.js.map +1 -1
- package/x/timeline/utils/datafile.d.ts +5 -3
- package/x/timeline/utils/datafile.js +18 -5
- package/x/timeline/utils/datafile.js.map +1 -1
- package/x/timeline/utils/dummy-data.d.ts +1 -2
- package/x/timeline/utils/dummy-data.js +4 -2
- package/x/timeline/utils/dummy-data.js.map +1 -1
- package/x/timeline/utils/matrix.d.ts +9 -0
- package/x/timeline/utils/matrix.js +10 -0
- package/x/timeline/utils/matrix.js.map +1 -1
- package/x/timeline/utils/terps.d.ts +11 -0
- package/x/timeline/utils/terps.js +57 -0
- package/x/timeline/utils/terps.js.map +1 -0
- package/x/units/fps.d.ts +6 -0
- package/x/units/fps.js +2 -0
- package/x/units/fps.js.map +1 -0
- package/x/units/ms.d.ts +6 -0
- package/x/units/ms.js +2 -0
- package/x/units/ms.js.map +1 -0
- package/x/units/seconds.d.ts +6 -0
- package/x/units/seconds.js +2 -0
- package/x/units/seconds.js.map +1 -0
- package/x/webworkerAll-RLCTMSDD.js +2 -0
- package/x/webworkerAll-RLCTMSDD.js.map +7 -0
- package/s/tests.test.ts +0 -8
- package/s/timeline/parts/compositor/export.ts +0 -77
- package/s/timeline/parts/compositor/parts/html-tree.ts +0 -37
- package/s/timeline/parts/compositor/parts/schedulers.ts +0 -85
- package/s/timeline/parts/compositor/parts/tree-builder.ts +0 -184
- package/s/timeline/parts/compositor/parts/webcodecs-tree.ts +0 -30
- package/s/timeline/parts/compositor/playback.ts +0 -81
- package/s/timeline/parts/compositor/samplers/html.ts +0 -115
- package/s/timeline/parts/compositor/samplers/webcodecs.ts +0 -60
- package/s/timeline/parts/waveform.ts +0 -62
- package/s/timeline/sugar/builders.ts +0 -102
- package/s/timeline/sugar/omni-test.ts +0 -38
- package/s/timeline/utils/audio-stream.ts +0 -15
- package/s/timeline/utils/video-cursor.ts +0 -40
- package/s/tools/common/loader.ts +0 -26
- package/s/tools/common/transformer-pipeline.ts +0 -26
- package/s/tools/speech-recognition/common/model.ts +0 -26
- package/s/tools/speech-recognition/whisper/fns/host.ts +0 -25
- package/s/tools/speech-recognition/whisper/fns/schematic.ts +0 -23
- package/s/tools/speech-recognition/whisper/fns/work.ts +0 -91
- package/s/tools/speech-recognition/whisper/parts/types.ts +0 -38
- package/s/tools/speech-recognition/whisper/parts/worker.bundle.ts +0 -7
- package/s/tools/speech-recognition/whisper/tool.ts +0 -70
- package/x/tests.test.js +0 -6
- package/x/tests.test.js.map +0 -1
- package/x/timeline/parts/compositor/export.d.ts +0 -9
- package/x/timeline/parts/compositor/export.js +0 -64
- package/x/timeline/parts/compositor/export.js.map +0 -1
- package/x/timeline/parts/compositor/parts/html-tree.d.ts +0 -3
- package/x/timeline/parts/compositor/parts/html-tree.js +0 -40
- package/x/timeline/parts/compositor/parts/html-tree.js.map +0 -1
- package/x/timeline/parts/compositor/parts/schedulers.d.ts +0 -15
- package/x/timeline/parts/compositor/parts/schedulers.js +0 -64
- package/x/timeline/parts/compositor/parts/schedulers.js.map +0 -1
- package/x/timeline/parts/compositor/parts/tree-builder.d.ts +0 -37
- package/x/timeline/parts/compositor/parts/tree-builder.js +0 -147
- package/x/timeline/parts/compositor/parts/tree-builder.js.map +0 -1
- package/x/timeline/parts/compositor/parts/webcodecs-tree.d.ts +0 -3
- package/x/timeline/parts/compositor/parts/webcodecs-tree.js +0 -28
- package/x/timeline/parts/compositor/parts/webcodecs-tree.js.map +0 -1
- package/x/timeline/parts/compositor/playback.d.ts +0 -19
- package/x/timeline/parts/compositor/playback.js +0 -71
- package/x/timeline/parts/compositor/playback.js.map +0 -1
- package/x/timeline/parts/compositor/samplers/html.d.ts +0 -3
- package/x/timeline/parts/compositor/samplers/html.js +0 -106
- package/x/timeline/parts/compositor/samplers/html.js.map +0 -1
- package/x/timeline/parts/compositor/samplers/webcodecs.d.ts +0 -2
- package/x/timeline/parts/compositor/samplers/webcodecs.js +0 -55
- package/x/timeline/parts/compositor/samplers/webcodecs.js.map +0 -1
- package/x/timeline/parts/waveform.d.ts +0 -8
- package/x/timeline/parts/waveform.js +0 -51
- package/x/timeline/parts/waveform.js.map +0 -1
- package/x/timeline/sugar/builders.d.ts +0 -1
- package/x/timeline/sugar/builders.js +0 -104
- package/x/timeline/sugar/builders.js.map +0 -1
- package/x/timeline/sugar/omni-test.d.ts +0 -1
- package/x/timeline/sugar/omni-test.js +0 -22
- package/x/timeline/sugar/omni-test.js.map +0 -1
- package/x/timeline/utils/audio-stream.d.ts +0 -6
- package/x/timeline/utils/audio-stream.js +0 -17
- package/x/timeline/utils/audio-stream.js.map +0 -1
- package/x/timeline/utils/video-cursor.d.ts +0 -10
- package/x/timeline/utils/video-cursor.js +0 -36
- package/x/timeline/utils/video-cursor.js.map +0 -1
- package/x/tools/common/loader.d.ts +0 -19
- package/x/tools/common/loader.js +0 -18
- package/x/tools/common/loader.js.map +0 -1
- package/x/tools/common/transformer-pipeline.d.ts +0 -8
- package/x/tools/common/transformer-pipeline.js +0 -24
- package/x/tools/common/transformer-pipeline.js.map +0 -1
- package/x/tools/speech-recognition/common/model.d.ts +0 -14
- package/x/tools/speech-recognition/common/model.js +0 -16
- package/x/tools/speech-recognition/common/model.js.map +0 -1
- package/x/tools/speech-recognition/whisper/fns/host.d.ts +0 -13
- package/x/tools/speech-recognition/whisper/fns/host.js +0 -19
- package/x/tools/speech-recognition/whisper/fns/host.js.map +0 -1
- package/x/tools/speech-recognition/whisper/fns/schematic.d.ts +0 -19
- package/x/tools/speech-recognition/whisper/fns/schematic.js +0 -2
- package/x/tools/speech-recognition/whisper/fns/schematic.js.map +0 -1
- package/x/tools/speech-recognition/whisper/fns/work.d.ts +0 -12
- package/x/tools/speech-recognition/whisper/fns/work.js +0 -74
- package/x/tools/speech-recognition/whisper/fns/work.js.map +0 -1
- package/x/tools/speech-recognition/whisper/parts/types.d.ts +0 -31
- package/x/tools/speech-recognition/whisper/parts/types.js.map +0 -1
- package/x/tools/speech-recognition/whisper/parts/worker.bundle.d.ts +0 -1
- package/x/tools/speech-recognition/whisper/parts/worker.bundle.js +0 -4
- package/x/tools/speech-recognition/whisper/parts/worker.bundle.js.map +0 -1
- package/x/tools/speech-recognition/whisper/parts/worker.bundle.min.js +0 -8
- package/x/tools/speech-recognition/whisper/parts/worker.bundle.min.js.map +0 -7
- package/x/tools/speech-recognition/whisper/tool.d.ts +0 -12
- package/x/tools/speech-recognition/whisper/tool.js +0 -63
- package/x/tools/speech-recognition/whisper/tool.js.map +0 -1
- /package/x/{tests.test.d.ts → tests.bundle.d.ts} +0 -0
- /package/x/{tools/speech-recognition/whisper/parts → timeline/parts/animations}/types.js +0 -0
package/README.md
CHANGED
|
@@ -1,120 +1,405 @@
|
|
|
1
1
|
|
|
2
2
|
# 🚧 Work In Progress
|
|
3
3
|
|
|
4
|
-
> **Note:**
|
|
4
|
+
> **Note:** Omnitool is under development. Expect breaking changes, evolving APIs, and experimental features.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## ✅ What this library is
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
- API for building and rendering timelines in the browser
|
|
11
|
+
- Uses WebCodecs, Web Workers, and the File System Access API for export
|
|
12
|
+
- usage is currently JavaScript/TypeScript only, cli soon
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
## 🚀 Install
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
```bash
|
|
17
|
+
npm i @omnimedia/omnitool
|
|
18
|
+
```
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
## 📦 Quick Start
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
- ✅ Automate rendering with CLI tools
|
|
20
|
-
- ✅ Ideal for scripting, CI/CD, and AI-generated workflows
|
|
22
|
+
#### Declaring the timeline
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
```ts
|
|
25
|
+
import {Driver, Omni, Datafile} from "@omnimedia/omnitool"
|
|
26
|
+
|
|
27
|
+
const driver = await Driver.setup()
|
|
28
|
+
const omni = new Omni(driver)
|
|
29
|
+
|
|
30
|
+
const {clip} = await omni.load({
|
|
31
|
+
clip: Datafile.make(file) // file is a File or Blob
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const timeline = omni.timeline(o => {
|
|
35
|
+
const caption = o.text("Hello world", {
|
|
36
|
+
duration: 1500,
|
|
37
|
+
styles: {fill: "white", fontSize: 48}
|
|
38
|
+
})
|
|
39
|
+
const xfade = o.transition.crossfade(500)
|
|
40
|
+
const softened = o.filter.blur.make({strength: 8, quality: 4})
|
|
41
|
+
|
|
42
|
+
return o.sequence(
|
|
43
|
+
o.stack(
|
|
44
|
+
o.video(clip, {start: 0, duration: 3000, filterIds: [softened.id]}),
|
|
45
|
+
caption
|
|
46
|
+
),
|
|
47
|
+
o.gap(400),
|
|
48
|
+
xfade,
|
|
49
|
+
o.video(clip, {start: 5000, duration: 2500}),
|
|
50
|
+
o.audio(clip, {start: 5000, duration: 2500})
|
|
51
|
+
)
|
|
52
|
+
})
|
|
53
|
+
```
|
|
23
54
|
|
|
24
|
-
|
|
55
|
+
Declarative helper style (no explicit `o` in timeline declarations):
|
|
25
56
|
|
|
26
|
-
|
|
57
|
+
```ts
|
|
58
|
+
import {
|
|
59
|
+
Driver, Omni, Datafile,
|
|
60
|
+
timeline, stack, video, audio, text, gap, transition, filter
|
|
61
|
+
} from "@omnimedia/omnitool"
|
|
62
|
+
|
|
63
|
+
const driver = await Driver.setup()
|
|
64
|
+
const omni = new Omni(driver)
|
|
65
|
+
const {clip} = await omni.load({clip: Datafile.make(file)})
|
|
66
|
+
|
|
67
|
+
const timeline = timeline(
|
|
68
|
+
stack(
|
|
69
|
+
filter.blur(
|
|
70
|
+
video(clip, {start: 0, duration: 3000}),
|
|
71
|
+
{strength: 8, quality: 4}
|
|
72
|
+
),
|
|
73
|
+
text("Hello world", {duration: 1500}),
|
|
74
|
+
),
|
|
75
|
+
gap(400),
|
|
76
|
+
transition.crossfade(500),
|
|
77
|
+
video(clip, {start: 5000, duration: 2500}),
|
|
78
|
+
audio(clip, {start: 5000, duration: 2500})
|
|
79
|
+
)
|
|
80
|
+
```
|
|
27
81
|
|
|
28
|
-
|
|
29
|
-
|
|
82
|
+
## 🎛 Filters
|
|
83
|
+
|
|
84
|
+
Filter application:
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
const timeline = omni.timeline(o =>
|
|
88
|
+
o.stack(
|
|
89
|
+
o.filter.blur(
|
|
90
|
+
o.video(clip, {duration: 3000}),
|
|
91
|
+
{strength: 8, quality: 4}
|
|
92
|
+
),
|
|
93
|
+
o.filter.glow(
|
|
94
|
+
o.text("Hello world", {duration: 3000}),
|
|
95
|
+
{distance: 12, outerStrength: 2, color: "#ffffff"}
|
|
96
|
+
)
|
|
97
|
+
)
|
|
98
|
+
)
|
|
30
99
|
```
|
|
31
100
|
|
|
32
|
-
|
|
101
|
+
Reusable filter items:
|
|
33
102
|
|
|
34
|
-
|
|
103
|
+
```ts
|
|
104
|
+
const timeline = omni.timeline(o => {
|
|
105
|
+
const blur = o.filter.blur.make({strength: 8, quality: 4})
|
|
106
|
+
|
|
107
|
+
return o.stack(
|
|
108
|
+
o.video(clip, {duration: 3000, filterIds: [blur.id]}),
|
|
109
|
+
o.text("Caption", {duration: 3000, styles: {fill: "white"}})
|
|
110
|
+
)
|
|
111
|
+
})
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Filter metadata for UI:
|
|
35
115
|
|
|
36
116
|
```ts
|
|
37
|
-
import {
|
|
117
|
+
import {
|
|
118
|
+
filters
|
|
119
|
+
} from "@omnimedia/omnitool"
|
|
38
120
|
|
|
39
|
-
const
|
|
40
|
-
const
|
|
121
|
+
const available = Object.entries(filters)
|
|
122
|
+
const blur = filters.blur
|
|
123
|
+
const schema = blur.schema
|
|
124
|
+
```
|
|
41
125
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
126
|
+
## 🧭 Spatial Transforms
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
const timeline = omni.timeline(o => {
|
|
130
|
+
const move = o.spatial(o.transform({
|
|
131
|
+
position: [120, 40],
|
|
132
|
+
scale: [0.6, 0.6],
|
|
133
|
+
rotation: 12
|
|
134
|
+
}))
|
|
135
|
+
|
|
136
|
+
const title = o.text("Lower third", {
|
|
137
|
+
duration: 2000,
|
|
138
|
+
styles: {fill: "white", fontSize: 36}
|
|
139
|
+
})
|
|
140
|
+
o.set(title.id, {spatialId: move.id})
|
|
141
|
+
|
|
142
|
+
return o.stack(
|
|
143
|
+
o.video(clip, {duration: 4000}),
|
|
144
|
+
title
|
|
145
|
+
)
|
|
146
|
+
})
|
|
56
147
|
```
|
|
57
148
|
|
|
58
|
-
|
|
149
|
+
Animations:
|
|
59
150
|
|
|
60
|
-
|
|
151
|
+
```ts
|
|
152
|
+
const timeline = omni.timeline(o => {
|
|
153
|
+
const fadeIn = o.animate.opacity.make("easeIn", [
|
|
154
|
+
[0, 0],
|
|
155
|
+
[700, 1],
|
|
156
|
+
])
|
|
157
|
+
const slideOut = o.animate.transform.make("linear", [
|
|
158
|
+
[0, o.transform({position: [0, 0]})],
|
|
159
|
+
[1000, o.transform({position: [400, 0]})],
|
|
160
|
+
])
|
|
161
|
+
|
|
162
|
+
const title = o.text("Lower third", {
|
|
163
|
+
duration: 2000,
|
|
164
|
+
styles: {fill: "white", fontSize: 36}
|
|
165
|
+
})
|
|
166
|
+
o.set(title.id, {animationIds: [fadeIn.id, slideOut.id]})
|
|
167
|
+
|
|
168
|
+
return o.stack(
|
|
169
|
+
o.video(clip, {duration: 4000}),
|
|
170
|
+
title
|
|
171
|
+
)
|
|
172
|
+
})
|
|
173
|
+
```
|
|
61
174
|
|
|
62
|
-
|
|
175
|
+
Built-in transform animations:
|
|
63
176
|
|
|
64
|
-
```
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"items": [
|
|
69
|
-
["root-1", ["sequence", { "children": ["video-1", "stack-1"] }]],
|
|
70
|
-
["video-1", ["video", { ... }]],
|
|
71
|
-
["stack-1", ["stack", { "children": ["text-1", "audio-1"] }]],
|
|
72
|
-
["text-1", ["text", { ... }]],
|
|
73
|
-
["audio-1", ["audio", { ... }]]
|
|
74
|
-
]
|
|
177
|
+
```ts
|
|
178
|
+
const animOut = {
|
|
179
|
+
duration: 500,
|
|
180
|
+
offset: item.duration - 500,
|
|
75
181
|
}
|
|
182
|
+
const slideIn = o.animate.presets.slideIn.make()
|
|
183
|
+
const slideOut = o.animate.presets.slideOut.make(animOut)
|
|
184
|
+
const spinIn = o.animate.presets.spinIn.make()
|
|
185
|
+
const spinOut = o.animate.presets.spinOut.make(animOut)
|
|
186
|
+
const zoomIn = o.animate.presets.zoomIn.make()
|
|
187
|
+
const zoomOut = o.animate.presets.zoomOut.make(animOut)
|
|
188
|
+
const bounceIn = o.animate.presets.bounceIn.make()
|
|
189
|
+
const bounceOut = o.animate.presets.bounceOut.make(animOut)
|
|
76
190
|
```
|
|
77
191
|
|
|
78
|
-
|
|
192
|
+
Built-in scalar animations:
|
|
79
193
|
|
|
80
|
-
|
|
194
|
+
```ts
|
|
195
|
+
const fadeIn = o.animate.presets.fadeIn.make()
|
|
196
|
+
const fadeOut = o.animate.presets.fadeOut.make(animOut)
|
|
197
|
+
```
|
|
81
198
|
|
|
82
|
-
|
|
199
|
+
Animation application:
|
|
83
200
|
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
|
|
201
|
+
```ts
|
|
202
|
+
const timeline = omni.timeline(o => {
|
|
203
|
+
const title = o.animate.opacity(
|
|
204
|
+
o.text("Lower third", {
|
|
205
|
+
duration: 2000,
|
|
206
|
+
styles: {fill: "white", fontSize: 36},
|
|
207
|
+
}),
|
|
208
|
+
"easeIn",
|
|
209
|
+
[
|
|
210
|
+
[0, 0],
|
|
211
|
+
[700, 1],
|
|
212
|
+
]
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
return o.stack(
|
|
216
|
+
o.video(clip, {duration: 4000}),
|
|
217
|
+
title
|
|
218
|
+
)
|
|
219
|
+
})
|
|
220
|
+
```
|
|
87
221
|
|
|
88
|
-
|
|
89
|
-
omnitool validate promo.json
|
|
222
|
+
Reusable animation:
|
|
90
223
|
|
|
91
|
-
|
|
92
|
-
|
|
224
|
+
```ts
|
|
225
|
+
const timeline = omni.timeline(o => {
|
|
226
|
+
const fadeIn = o.animate.opacity.make("easeIn", [
|
|
227
|
+
[0, 0],
|
|
228
|
+
[700, 1],
|
|
229
|
+
])
|
|
230
|
+
|
|
231
|
+
const title = o.text("Lower third", {
|
|
232
|
+
duration: 2000,
|
|
233
|
+
styles: {fill: "white", fontSize: 36},
|
|
234
|
+
})
|
|
235
|
+
o.set(title.id, {animationIds: [fadeIn.id]})
|
|
236
|
+
|
|
237
|
+
return o.stack(
|
|
238
|
+
o.video(clip, {duration: 4000}),
|
|
239
|
+
title
|
|
240
|
+
)
|
|
241
|
+
})
|
|
242
|
+
```
|
|
93
243
|
|
|
94
|
-
|
|
95
|
-
|
|
244
|
+
Animation metadata:
|
|
245
|
+
|
|
246
|
+
```ts
|
|
247
|
+
import {animatableProperties, animationPresets} from "@omnimedia/omnitool"
|
|
248
|
+
|
|
249
|
+
Object.entries(animatableProperties).forEach(([property, meta]) => {
|
|
250
|
+
console.log(property, meta.type, meta.defaultTerp, meta.channels)
|
|
251
|
+
// transform transform linear [...]
|
|
252
|
+
// opacity scalar linear [...]
|
|
253
|
+
})
|
|
254
|
+
|
|
255
|
+
Object.entries(animationPresets).forEach(([preset, meta]) => {
|
|
256
|
+
console.log(preset, meta.type, meta.label, meta.defaults)
|
|
257
|
+
// slideIn motion Slide in {...}
|
|
258
|
+
// slideOut motion Slide out {...}
|
|
259
|
+
// spinIn motion Spin in {...}
|
|
260
|
+
// spinOut motion Spin out {...}
|
|
261
|
+
// zoomIn motion Zoom in {...}
|
|
262
|
+
// zoomOut motion Zoom out {...}
|
|
263
|
+
// bounceIn motion Bounce in {...}
|
|
264
|
+
// bounceOut motion Bounce out {...}
|
|
265
|
+
// fadeIn scalar Fade in {...}
|
|
266
|
+
// fadeOut scalar Fade out {...}
|
|
267
|
+
})
|
|
96
268
|
```
|
|
97
269
|
|
|
98
|
-
|
|
270
|
+
Animatable properties describe what can be keyframed, such as `transform` and `opacity`.
|
|
271
|
+
Animation presets describe built-in recipes, such as `slideIn` and `fadeIn`.
|
|
272
|
+
Use `animationPresets` to list available recipes, and `o.animate.presets` to create animation items.
|
|
273
|
+
Use `o.animate` to create or apply animation items.
|
|
99
274
|
|
|
100
|
-
|
|
275
|
+
Preset options:
|
|
276
|
+
- `duration` sets the animation duration, defaulting to `700`.
|
|
277
|
+
- `offset` shifts generated keyframes in item-local time.
|
|
278
|
+
Useful for out animations: `item.duration - 500` starts `slideOut` 500ms before the item ends.
|
|
279
|
+
- `from` sets the start value, like opacity `0` or position `[-400, 0]`.
|
|
280
|
+
- `to` sets the end value, like opacity `1` or position `[0, 0]`.
|
|
281
|
+
- `terp` sets interpolation, defaulting to the preset's `terp`.
|
|
101
282
|
|
|
102
|
-
|
|
103
|
-
- Build and test timelines without opening the UI
|
|
104
|
-
- Generate video pipelines from code or prompts
|
|
283
|
+
Utils:
|
|
105
284
|
|
|
106
|
-
|
|
285
|
+
```ts
|
|
286
|
+
import {resolveScalarAnimation, resolveTransformAnimation} from "@omnimedia/omnitool"
|
|
107
287
|
|
|
108
|
-
|
|
288
|
+
const transform = resolveTransformAnimation(localTime, transformAnimation)
|
|
289
|
+
const opacity = resolveScalarAnimation(localTime, opacityAnimation)
|
|
290
|
+
```
|
|
109
291
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
292
|
+
`resolveTransformAnimation` resolves an animated transform at the given local time.
|
|
293
|
+
`resolveScalarAnimation` resolves an animated scalar value at the given local time.
|
|
294
|
+
`localTime` is time relative to the item being resolved.
|
|
295
|
+
`clamp` is the default and currently only extrapolation mode, holding the first or last keyframe value outside the authored range.
|
|
113
296
|
|
|
114
|
-
|
|
297
|
+
Worker URL notes:
|
|
298
|
+
- `Driver.setup()` defaults to `/node_modules/@omnimedia/omnitool/x/driver/driver.worker.bundle.min.js`.
|
|
299
|
+
- If you serve the worker from a different location, pass `workerUrl`:
|
|
300
|
+
|
|
301
|
+
```ts
|
|
302
|
+
const workerUrl = new URL(
|
|
303
|
+
"/path/to/driver.worker.bundle.min.js",
|
|
304
|
+
window.location.href
|
|
305
|
+
)
|
|
306
|
+
const driver = await Driver.setup({workerUrl})
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## ▶️ Playback
|
|
310
|
+
|
|
311
|
+
```ts
|
|
312
|
+
const player = await omni.playback(timeline)
|
|
313
|
+
|
|
314
|
+
document.body.appendChild(player.canvas)
|
|
315
|
+
await player.play()
|
|
316
|
+
player.playbackRate = 0.5 // slow motion
|
|
317
|
+
player.playbackRate = -1 // reverse
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
Notes:
|
|
321
|
+
- Call `await player.update(timeline)` if you update the timeline.
|
|
322
|
+
- `playbackRate` supports slower, faster, and reverse visual playback. Audio currently plays only at `1`.
|
|
323
|
+
|
|
324
|
+
## 📤 Export
|
|
325
|
+
|
|
326
|
+
```ts
|
|
327
|
+
await omni.render(timeline, framerate)
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
## 🧩 Timeline Format (TimelineFile)
|
|
331
|
+
|
|
332
|
+
All durations and timestamps are in milliseconds.
|
|
333
|
+
|
|
334
|
+
```json
|
|
335
|
+
{
|
|
336
|
+
"format": "timeline",
|
|
337
|
+
"info": "https://omniclip.app/",
|
|
338
|
+
"version": 0,
|
|
339
|
+
"rootId": 123,
|
|
340
|
+
"items": [
|
|
341
|
+
{"id": 123, "kind": 0, "childrenIds": [456, 789]},
|
|
342
|
+
{"id": 456, "kind": 2, "mediaHash": "...", "start": 0, "duration": 3000},
|
|
343
|
+
{"id": 789, "kind": 4, "content": "Hello", "duration": 1500}
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Timeline items:
|
|
349
|
+
- 0 `Sequence`
|
|
350
|
+
- 1 `Stack`
|
|
351
|
+
- 2 `Video`
|
|
352
|
+
- 3 `Audio`
|
|
353
|
+
- 4 `Text`
|
|
354
|
+
- 5 `Gap`
|
|
355
|
+
- 6 `Spatial`
|
|
356
|
+
- 7 `Transition`
|
|
357
|
+
- 8 `TextStyle`
|
|
358
|
+
- 9 `Filter`
|
|
359
|
+
|
|
360
|
+
## 🗺️ Roadmap
|
|
361
|
+
- CLI commands:
|
|
115
362
|
|
|
116
|
-
|
|
363
|
+
```bash
|
|
364
|
+
# build a reusable template from a timeline
|
|
365
|
+
omnitool build-template promo.json
|
|
366
|
+
# validate a timeline file
|
|
367
|
+
omnitool validate promo.json
|
|
368
|
+
# export a timeline to a video file
|
|
369
|
+
omnitool export promo.json --output final.mp4
|
|
370
|
+
# batch export multiple timelines
|
|
371
|
+
omnitool batch-export ./projects/* --output-dir ./exports
|
|
372
|
+
# headless timeline viewer
|
|
373
|
+
omnitool preview promo.json
|
|
374
|
+
# auto-fit timeline elements
|
|
375
|
+
omnitool optimize promo.json
|
|
376
|
+
# prompt-to-timeline generation
|
|
377
|
+
omnitool ai "make a 15s promo for tea"
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
- smooth seeking
|
|
381
|
+
- keyframes
|
|
382
|
+
- custom filters, likely via driver-side registration with timeline sugar such as:
|
|
117
383
|
|
|
118
|
-
|
|
384
|
+
```ts
|
|
385
|
+
// Register custom filter
|
|
386
|
+
driver.registerFilter({
|
|
387
|
+
type: "vhs",
|
|
388
|
+
make: params => new Filter(/* ... */),
|
|
389
|
+
schema: {
|
|
390
|
+
intensity: {type: "number", min: 0, max: 1, default: 0.5},
|
|
391
|
+
scanlines: {type: "boolean", default: true},
|
|
392
|
+
},
|
|
393
|
+
})
|
|
394
|
+
|
|
395
|
+
// Use custom filter
|
|
396
|
+
const timeline = omni.timeline(o =>
|
|
397
|
+
o.filter.custom(
|
|
398
|
+
"vhs",
|
|
399
|
+
o.video(clip, {duration: 3000}),
|
|
400
|
+
{intensity: 0.8}
|
|
401
|
+
)
|
|
402
|
+
)
|
|
403
|
+
```
|
|
119
404
|
|
|
120
|
-
|
|
405
|
+
- server-side, not just browsers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnimedia/omnitool",
|
|
3
|
-
"version": "1.1.0-
|
|
3
|
+
"version": "1.1.0-90",
|
|
4
4
|
"description": "open source video processing tools",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Przemysław Gałęzki",
|
|
@@ -19,31 +19,33 @@
|
|
|
19
19
|
"_ln-s": "ln -s \"$(realpath s)\" x/s",
|
|
20
20
|
"_ln-assets": "ln -s \"$(realpath assets)\" x/assets",
|
|
21
21
|
"_scute": "scute -v",
|
|
22
|
-
"test": "node
|
|
22
|
+
"test": "echo \"node tests disabled for now\"",
|
|
23
23
|
"test-debug": "node inspect x/tests.test.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@e280/science": "^0.
|
|
27
|
-
"@e280/scute": "^0.
|
|
28
|
-
"@types/node": "^
|
|
26
|
+
"@e280/science": "^0.1.4",
|
|
27
|
+
"@e280/scute": "^0.1.2",
|
|
28
|
+
"@types/node": "^25.0.3",
|
|
29
|
+
"@types/wicg-file-system-access": "^2023.10.7",
|
|
29
30
|
"http-server": "^14.1.1",
|
|
30
31
|
"npm-run-all": "^4.1.5",
|
|
31
|
-
"typescript": "^5.9.
|
|
32
|
+
"typescript": "^5.9.3"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@e280/
|
|
36
|
-
"@e280/
|
|
37
|
-
"@e280/
|
|
38
|
-
"@
|
|
35
|
+
"@e280/comrade": "^0.1.0",
|
|
36
|
+
"@e280/renraku": "^0.5.3",
|
|
37
|
+
"@e280/sly": "^0.2.5",
|
|
38
|
+
"@e280/strata": "^0.2.5",
|
|
39
|
+
"@e280/stz": "^0.2.15",
|
|
40
|
+
"@huggingface/transformers": "^3.8.1",
|
|
39
41
|
"comrade": "^0.0.3",
|
|
40
42
|
"gl-transitions": "^1.43.0",
|
|
41
|
-
"gsap": "^3.
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"pixi
|
|
45
|
-
"
|
|
46
|
-
"
|
|
43
|
+
"gsap": "^3.14.2",
|
|
44
|
+
"lit": "^3.3.2",
|
|
45
|
+
"mediabunny": "^1.27.3",
|
|
46
|
+
"pixi-filters": "^6.1.5",
|
|
47
|
+
"pixi.js": "^8.14.3",
|
|
48
|
+
"wavesurfer.js": "^7.12.1"
|
|
47
49
|
},
|
|
48
50
|
"homepage": "https://github.com/omni-media/omnitool#readme",
|
|
49
51
|
"repository": {
|