@nodaro/shared 3.66.0 → 3.68.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.
Files changed (77) hide show
  1. package/dist/{chunk-JTYCJ5OL.cjs → chunk-4XR66IWF.cjs} +51 -13
  2. package/dist/chunk-4XR66IWF.cjs.map +1 -0
  3. package/dist/{chunk-6FQBKI2A.cjs → chunk-6JSYNKFL.cjs} +4 -4
  4. package/dist/{chunk-6FQBKI2A.cjs.map → chunk-6JSYNKFL.cjs.map} +1 -1
  5. package/dist/{chunk-23IKLMRL.cjs → chunk-BCY3A62O.cjs} +4 -4
  6. package/dist/{chunk-23IKLMRL.cjs.map → chunk-BCY3A62O.cjs.map} +1 -1
  7. package/dist/{chunk-RVQW623D.js → chunk-BHL7TAQO.js} +43 -12
  8. package/dist/chunk-BHL7TAQO.js.map +1 -0
  9. package/dist/{chunk-CLAKSLXF.js → chunk-E3PU7YC6.js} +3 -3
  10. package/dist/{chunk-CLAKSLXF.js.map → chunk-E3PU7YC6.js.map} +1 -1
  11. package/dist/{chunk-ALRXY4QH.cjs → chunk-N7ZJD4CK.cjs} +6 -2
  12. package/dist/chunk-N7ZJD4CK.cjs.map +1 -0
  13. package/dist/{chunk-O2QOBA6Q.js → chunk-NPGP6FMU.js} +43 -3
  14. package/dist/chunk-NPGP6FMU.js.map +1 -0
  15. package/dist/chunk-NWNRATS3.js +13 -0
  16. package/dist/chunk-NWNRATS3.js.map +1 -0
  17. package/dist/{chunk-NYZQOIXJ.cjs → chunk-Q2LEJXLZ.cjs} +93 -6
  18. package/dist/chunk-Q2LEJXLZ.cjs.map +1 -0
  19. package/dist/{chunk-O6TBB4IF.cjs → chunk-TZWXZDSX.cjs} +48 -2
  20. package/dist/chunk-TZWXZDSX.cjs.map +1 -0
  21. package/dist/{chunk-FGBGKBML.js → chunk-UVUHVY7F.js} +71 -4
  22. package/dist/chunk-UVUHVY7F.js.map +1 -0
  23. package/dist/{chunk-GTBW2KAY.js → chunk-XNJDAW3M.js} +3 -3
  24. package/dist/{chunk-GTBW2KAY.js.map → chunk-XNJDAW3M.js.map} +1 -1
  25. package/dist/entries/credits.cjs +192 -164
  26. package/dist/entries/credits.d.cts +82 -5
  27. package/dist/entries/credits.d.ts +82 -5
  28. package/dist/entries/credits.js +2 -2
  29. package/dist/entries/media.cjs +171 -87
  30. package/dist/entries/media.d.cts +118 -2
  31. package/dist/entries/media.d.ts +118 -2
  32. package/dist/entries/media.js +3 -3
  33. package/dist/entries/models.cjs +82 -82
  34. package/dist/entries/models.js +3 -3
  35. package/dist/entries/runtime-config.cjs +53 -29
  36. package/dist/entries/runtime-config.d.cts +53 -1
  37. package/dist/entries/runtime-config.d.ts +53 -1
  38. package/dist/entries/runtime-config.js +1 -1
  39. package/dist/entries/types.d.cts +12 -5
  40. package/dist/entries/types.d.ts +12 -5
  41. package/dist/index.cjs +495 -359
  42. package/dist/index.d.cts +3 -3
  43. package/dist/index.d.ts +3 -3
  44. package/dist/index.js +6 -6
  45. package/package.json +1 -1
  46. package/src/__tests__/add-captions-nemotron-pricing.test.ts +13 -1
  47. package/src/__tests__/fixtures/measured-input-quote-parity.json +1816 -1
  48. package/src/__tests__/fixtures/planned-length-quote-parity.json +55 -10
  49. package/src/__tests__/fixtures/video-utility-quote-parity.json +834 -38
  50. package/src/__tests__/freecut-ai-panel.test.ts +149 -0
  51. package/src/__tests__/nemotron-transcribe-pricing.test.ts +32 -0
  52. package/src/__tests__/runtime-config-lists.test.ts +92 -0
  53. package/src/catalog-projection.ts +12 -5
  54. package/src/credit-estimators/add-captions-nemotron.ts +11 -1
  55. package/src/credit-estimators/index.ts +6 -1
  56. package/src/credit-estimators/nemotron-transcribe.ts +35 -3
  57. package/src/credit-estimators/pitch-tempo.ts +14 -0
  58. package/src/credit-estimators/video-sfx.ts +15 -0
  59. package/src/credit-estimators/video-utils.ts +48 -12
  60. package/src/entries/credits.ts +1 -0
  61. package/src/entries/media.ts +1 -0
  62. package/src/entries/runtime-config.ts +10 -1
  63. package/src/freecut-ai-panel.ts +172 -0
  64. package/src/freecut-protocol.ts +13 -0
  65. package/src/lip-sync-pricing.ts +15 -0
  66. package/src/priced-clip-seconds.ts +19 -1
  67. package/src/runtime-config/lists.ts +87 -0
  68. package/src/runtime-config/worlds.ts +10 -0
  69. package/dist/chunk-ALRXY4QH.cjs.map +0 -1
  70. package/dist/chunk-FGBGKBML.js.map +0 -1
  71. package/dist/chunk-JTYCJ5OL.cjs.map +0 -1
  72. package/dist/chunk-NYZQOIXJ.cjs.map +0 -1
  73. package/dist/chunk-O2QOBA6Q.js.map +0 -1
  74. package/dist/chunk-O6TBB4IF.cjs.map +0 -1
  75. package/dist/chunk-RVQW623D.js.map +0 -1
  76. package/dist/chunk-SMOO5FAH.js +0 -10
  77. package/dist/chunk-SMOO5FAH.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "$comment": "The quote before a run of the seven steps whose run measures the file it is given — Video SFX, Video Mask, Video Depth, Pitch & Tempo, Dubbing, and Video Upscale on each of its two measuring models (`topaz`, and `nodaroUpscale`, the per-second model) — read by BOTH estimates over the same graphs through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules) with each step's slack (`MEASURED_INPUT_PLANNED_CLIP_SLACK_SEC`: 0.1 s on each clip a node makes for the five that measure the container, one 24 fps frame for both Video Upscale steps: one hold counts the video stream's frames, the other bills the clip's seconds rounded up, so any slack under a second is the same figure there): the editor's (frontend getModelIdentifier for the row steps, PRICING_UNIT_ESTIMATORS for Dubbing and both Video Upscale providers — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the step's own line). Each case wires its sources into the step `c`; an edge with no `target` goes into `c` on the step's input (`@input`: `video`, Pitch & Tempo's `in`; `handles` overrides it). `steps` limits a case to some steps (default every step but `lipSync`, a Lip Sync priced by the seconds of its audio, which only the cases that list it name; its figure is the billed seconds, `null` a length nothing knows before the run: the server quotes the most a run takes, the editor a 15 s estimate marked ≈). Expected figures: the row's seconds for Video SFX (`replicate-mmaudio:<N>s`), Video Mask (`<provider>-video:<N>s`) and Video Depth (`video-depth-anything:<N>s`); the started minutes for Pitch & Tempo (`pitch-tempo:<N>m`) and Dubbing (target `es`); the Topaz units (a 1080p target, 30 fps, a 16:9 frame); the seconds `nodaroUpscale` bills (at least 1): 0 for a clip the graph KNOWS is past its 60-second limit (an upload, a measured Library clip, a take's record — the run refuses it before anything is held, and no estimate prices it), and the 60 seconds a run bills at most for a PLANNED length past it, which is an upper bound and no proof the run refuses it. An input whose length nothing can tell before the run is quoted at the step's cap for Video SFX, Video Mask, Video Depth and Pitch & Tempo, and at a minimum for Dubbing (1 minute) and both Video Upscale providers (a 10-second clip) — those runs measure their input and are charged its real length. `whole` = a whole run (the editor's whole-run set, the server with no run set); `alone` = the step's own Run and its pill (editor) and a run of `c` alone (server); `partial` = exactly that run set on both sides.",
2
+ "$comment": "The quote before a run of the seven steps whose run measures the file it is given — Video SFX, Video Mask, Video Depth, Pitch & Tempo, Dubbing, and Video Upscale on each of its two measuring models (`topaz`, and `nodaroUpscale`, the per-second model) — read by BOTH estimates over the same graphs through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules) with each step's slack (`MEASURED_INPUT_PLANNED_CLIP_SLACK_SEC`: 0.1 s on each clip a node makes for the five that measure the container, one 24 fps frame for both Video Upscale steps: one hold counts the video stream's frames, the other bills the clip's seconds rounded up, so any slack under a second is the same figure there; a quarter second on every step after a PixVerse V6 extension, and after a Dubbing or an Audio Isolation on every step that measures the container — `LONG_OVERSHOOT_PLANNED_CLIP_SLACK_SEC`; both Video Upscale steps measure the video stream, which a dub keeps exactly, and keep their frame after one): the editor's (frontend getModelIdentifier for the row steps, PRICING_UNIT_ESTIMATORS for Dubbing and both Video Upscale providers — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the step's own line). Each case wires its sources into the step `c`; an edge with no `target` goes into `c` on the step's input (`@input`: `video`, Pitch & Tempo's `in`; `handles` overrides it). `steps` limits a case to some steps (default every step but `lipSync`, a Lip Sync priced by the seconds of its audio, which only the cases that list it name; its figure is the billed seconds, `null` a length nothing knows before the run: both estimates quote the 15 s stand-in, a minimum, the editor's line marked ≈). Expected figures: the row's seconds for Video SFX (`replicate-mmaudio:<N>s`), Video Mask (`<provider>-video:<N>s`) and Video Depth (`video-depth-anything:<N>s`); the started minutes for Pitch & Tempo (`pitch-tempo:<N>m`) and Dubbing (target `es`); the Topaz units (a 1080p target, 30 fps, a 16:9 frame); the seconds `nodaroUpscale` bills (at least 1): 0 for a clip the graph KNOWS is past its 60-second limit (an upload, a measured Library clip, a take's record — the run refuses it before anything is held, and no estimate prices it), and the 60 seconds a run bills at most for a PLANNED length past it, which is an upper bound and no proof the run refuses it. An input whose length nothing can tell before the run is quoted at the step's cap for Video SFX, Video Mask, Video Depth and Pitch & Tempo, and at a minimum for Dubbing (1 minute) and both Video Upscale providers (a 10-second clip) — those runs measure their input and are charged its real length. `whole` = a whole run (the editor's whole-run set, the server with no run set); `alone` = the step's own Run and its pill (editor) and a run of `c` alone (server); `partial` = exactly that run set on both sides. `stepData` adds settings to the step's own (a Topaz frame rate stored as text, as a workflow written through the API can carry it). A Lip Sync on a per-second model reads an AAC recording (an M4A, MP4 or AAC file, or the sound of an MP4 video) one AAC frame past its recorded length (1024 samples at its recorded rate, else at AAC's lowest, 7.35 kHz) less the 0.05 s its charge forgives, as the run bills the decoded audio; an MP3 or a WAV at its recorded length. `transcribe` and `addCaptions` (Nemotron 3.5 Transcribe, named only by the cases that list them) read their wire with no slack (their hold forgives a second) and a voice made again in the run at its take, a minimum; their figure is the started minutes, 60 for a length nothing knows. `topaz` also reads the wired clip's frame and declared rate as the run's resolver would (decided 2026-11-14): an upload's recorded size and `fps`, a take's size for a node outside the run, carried through Trim, Loop and a Combine Videos whose clips share it; a node made again in the run has no size; unknown, 16:9 at 30 fps.",
3
3
  "cases": [
4
4
  {
5
5
  "name": "1. Generate Video on Kling 4.0 set to 5 s, never run: 5 s planned plus the slack (5.1 s; 5.042 s on the stream for Topaz)",
@@ -1430,6 +1430,1821 @@
1430
1430
  "lipSync": null
1431
1431
  }
1432
1432
  }
1433
+ },
1434
+ {
1435
+ "name": "34. Topaz whose frame rate is stored as text (\"60\", as a workflow written through the API or MCP can carry it) on a 10 s upload: the run renders 60 fps, so both quotes price 60 fps",
1436
+ "steps": [
1437
+ "topaz"
1438
+ ],
1439
+ "stepData": {
1440
+ "topaz": {
1441
+ "targetFps": "60"
1442
+ }
1443
+ },
1444
+ "nodes": [
1445
+ {
1446
+ "id": "u",
1447
+ "type": "upload-video",
1448
+ "data": {
1449
+ "url": "https://cdn.example/up.mp4",
1450
+ "generatedResults": [
1451
+ {
1452
+ "url": "https://cdn.example/up.mp4",
1453
+ "duration": 10
1454
+ }
1455
+ ],
1456
+ "activeResultIndex": 0
1457
+ }
1458
+ }
1459
+ ],
1460
+ "edges": [
1461
+ {
1462
+ "source": "u",
1463
+ "targetHandle": "@input"
1464
+ }
1465
+ ],
1466
+ "expected": {
1467
+ "whole": {
1468
+ "topaz": 13
1469
+ },
1470
+ "alone": {
1471
+ "topaz": 13
1472
+ }
1473
+ }
1474
+ },
1475
+ {
1476
+ "name": "35. Topaz whose frame rate is stored as \"source\" (or any text that is no number): the source's own rate, quoted at 30 fps as before",
1477
+ "steps": [
1478
+ "topaz"
1479
+ ],
1480
+ "stepData": {
1481
+ "topaz": {
1482
+ "targetFps": "source"
1483
+ }
1484
+ },
1485
+ "nodes": [
1486
+ {
1487
+ "id": "u",
1488
+ "type": "upload-video",
1489
+ "data": {
1490
+ "url": "https://cdn.example/up.mp4",
1491
+ "generatedResults": [
1492
+ {
1493
+ "url": "https://cdn.example/up.mp4",
1494
+ "duration": 10
1495
+ }
1496
+ ],
1497
+ "activeResultIndex": 0
1498
+ }
1499
+ }
1500
+ ],
1501
+ "edges": [
1502
+ {
1503
+ "source": "u",
1504
+ "targetHandle": "@input"
1505
+ }
1506
+ ],
1507
+ "expected": {
1508
+ "whole": {
1509
+ "topaz": 7
1510
+ },
1511
+ "alone": {
1512
+ "topaz": 7
1513
+ }
1514
+ }
1515
+ },
1516
+ {
1517
+ "name": "36. Lip Sync on a 5.000 s AAC audio upload (an M4A, codec and rate recorded, 48 kHz): its decode runs a frame (0.021 s) past the record, inside the 0.05 s the charge forgives, so 5 s, as the run charges it",
1518
+ "steps": [
1519
+ "lipSync"
1520
+ ],
1521
+ "handles": {
1522
+ "lipSync": "audio"
1523
+ },
1524
+ "nodes": [
1525
+ {
1526
+ "id": "a",
1527
+ "type": "upload-audio",
1528
+ "data": {
1529
+ "url": "https://cdn.example/v5.m4a",
1530
+ "metadata": {
1531
+ "durationSeconds": 5,
1532
+ "codec": "aac",
1533
+ "sampleRate": 48000
1534
+ }
1535
+ }
1536
+ }
1537
+ ],
1538
+ "edges": [
1539
+ {
1540
+ "source": "a",
1541
+ "targetHandle": "@input"
1542
+ }
1543
+ ],
1544
+ "expected": {
1545
+ "whole": {
1546
+ "lipSync": 5
1547
+ },
1548
+ "alone": {
1549
+ "lipSync": 5
1550
+ }
1551
+ }
1552
+ },
1553
+ {
1554
+ "name": "37. Lip Sync on a 5.000 s M4A upload whose codec and rate were not recorded: its container says AAC, read at the longest frame (AAC's lowest rate) less the charge's 0.05 s grace, 6 s",
1555
+ "steps": [
1556
+ "lipSync"
1557
+ ],
1558
+ "handles": {
1559
+ "lipSync": "audio"
1560
+ },
1561
+ "nodes": [
1562
+ {
1563
+ "id": "a",
1564
+ "type": "upload-audio",
1565
+ "data": {
1566
+ "url": "https://cdn.example/v5.m4a",
1567
+ "metadata": {
1568
+ "durationSeconds": 5
1569
+ }
1570
+ }
1571
+ }
1572
+ ],
1573
+ "edges": [
1574
+ {
1575
+ "source": "a",
1576
+ "targetHandle": "@input"
1577
+ }
1578
+ ],
1579
+ "expected": {
1580
+ "whole": {
1581
+ "lipSync": 6
1582
+ },
1583
+ "alone": {
1584
+ "lipSync": 6
1585
+ }
1586
+ }
1587
+ },
1588
+ {
1589
+ "name": "38. Lip Sync on a 5.000 s MP3 upload: an MP3 decodes to its recorded length, 5 s",
1590
+ "steps": [
1591
+ "lipSync"
1592
+ ],
1593
+ "handles": {
1594
+ "lipSync": "audio"
1595
+ },
1596
+ "nodes": [
1597
+ {
1598
+ "id": "a",
1599
+ "type": "upload-audio",
1600
+ "data": {
1601
+ "url": "https://cdn.example/v5.mp3",
1602
+ "metadata": {
1603
+ "durationSeconds": 5,
1604
+ "codec": "mp3",
1605
+ "sampleRate": 44100
1606
+ }
1607
+ }
1608
+ }
1609
+ ],
1610
+ "edges": [
1611
+ {
1612
+ "source": "a",
1613
+ "targetHandle": "@input"
1614
+ }
1615
+ ],
1616
+ "expected": {
1617
+ "whole": {
1618
+ "lipSync": 5
1619
+ },
1620
+ "alone": {
1621
+ "lipSync": 5
1622
+ }
1623
+ }
1624
+ },
1625
+ {
1626
+ "name": "39. Lip Sync on a 5.000 s WAV upload whose codec was not recorded: never a frame for a WAV, 5 s",
1627
+ "steps": [
1628
+ "lipSync"
1629
+ ],
1630
+ "handles": {
1631
+ "lipSync": "audio"
1632
+ },
1633
+ "nodes": [
1634
+ {
1635
+ "id": "a",
1636
+ "type": "upload-audio",
1637
+ "data": {
1638
+ "url": "https://cdn.example/v5.wav",
1639
+ "metadata": {
1640
+ "durationSeconds": 5
1641
+ }
1642
+ }
1643
+ }
1644
+ ],
1645
+ "edges": [
1646
+ {
1647
+ "source": "a",
1648
+ "targetHandle": "@input"
1649
+ }
1650
+ ],
1651
+ "expected": {
1652
+ "whole": {
1653
+ "lipSync": 5
1654
+ },
1655
+ "alone": {
1656
+ "lipSync": 5
1657
+ }
1658
+ }
1659
+ },
1660
+ {
1661
+ "name": "40. Lip Sync on the sound of a 10.000 s MP4 video upload: its recorded codec is the picture's, so the MP4's sound is read as AAC at the longest frame less the charge's grace, 11 s",
1662
+ "steps": [
1663
+ "lipSync"
1664
+ ],
1665
+ "handles": {
1666
+ "lipSync": "audio"
1667
+ },
1668
+ "nodes": [
1669
+ {
1670
+ "id": "u",
1671
+ "type": "upload-video",
1672
+ "data": {
1673
+ "url": "https://cdn.example/up.mp4",
1674
+ "generatedResults": [
1675
+ {
1676
+ "url": "https://cdn.example/up.mp4",
1677
+ "duration": 10
1678
+ }
1679
+ ],
1680
+ "activeResultIndex": 0
1681
+ }
1682
+ }
1683
+ ],
1684
+ "edges": [
1685
+ {
1686
+ "source": "u",
1687
+ "targetHandle": "@input"
1688
+ }
1689
+ ],
1690
+ "expected": {
1691
+ "whole": {
1692
+ "lipSync": 11
1693
+ },
1694
+ "alone": {
1695
+ "lipSync": 11
1696
+ }
1697
+ }
1698
+ },
1699
+ {
1700
+ "name": "41. Lip Sync after a Voice Changer of a 4.9 s AAC upload at 16 kHz: the frame past the charge's grace (0.064 − 0.05 s), then the changed voice's own slack (4.9 + 0.014 + 0.1), billed as 6 s (the Voice Changer holds no take, so a run of the step alone plans it too)",
1701
+ "steps": [
1702
+ "lipSync"
1703
+ ],
1704
+ "handles": {
1705
+ "lipSync": "audio"
1706
+ },
1707
+ "nodes": [
1708
+ {
1709
+ "id": "a",
1710
+ "type": "upload-audio",
1711
+ "data": {
1712
+ "url": "https://cdn.example/v.m4a",
1713
+ "metadata": {
1714
+ "durationSeconds": 4.9,
1715
+ "codec": "aac",
1716
+ "sampleRate": 16000
1717
+ }
1718
+ }
1719
+ },
1720
+ {
1721
+ "id": "v",
1722
+ "type": "voice-changer",
1723
+ "data": {}
1724
+ }
1725
+ ],
1726
+ "edges": [
1727
+ {
1728
+ "source": "a",
1729
+ "target": "v",
1730
+ "targetHandle": "audio"
1731
+ },
1732
+ {
1733
+ "source": "v",
1734
+ "targetHandle": "@input"
1735
+ }
1736
+ ],
1737
+ "expected": {
1738
+ "whole": {
1739
+ "lipSync": 6
1740
+ },
1741
+ "alone": {
1742
+ "lipSync": 6
1743
+ }
1744
+ }
1745
+ },
1746
+ {
1747
+ "name": "42. Lip Sync on an Extract Audio of a 12 s video upload: the video's sound, a new file, 12 s plus the container slack (and the MP4's AAC frame), billed as 13 s",
1748
+ "steps": [
1749
+ "lipSync"
1750
+ ],
1751
+ "handles": {
1752
+ "lipSync": "audio"
1753
+ },
1754
+ "nodes": [
1755
+ {
1756
+ "id": "u",
1757
+ "type": "upload-video",
1758
+ "data": {
1759
+ "url": "https://cdn.example/up12.mp4",
1760
+ "generatedResults": [
1761
+ {
1762
+ "url": "https://cdn.example/up12.mp4",
1763
+ "duration": 12
1764
+ }
1765
+ ],
1766
+ "activeResultIndex": 0
1767
+ }
1768
+ },
1769
+ {
1770
+ "id": "x",
1771
+ "type": "extract-audio",
1772
+ "data": {}
1773
+ }
1774
+ ],
1775
+ "edges": [
1776
+ {
1777
+ "source": "u",
1778
+ "target": "x",
1779
+ "targetHandle": "in"
1780
+ },
1781
+ {
1782
+ "source": "x",
1783
+ "targetHandle": "@input"
1784
+ }
1785
+ ],
1786
+ "expected": {
1787
+ "whole": {
1788
+ "lipSync": 13
1789
+ },
1790
+ "alone": {
1791
+ "lipSync": 13
1792
+ }
1793
+ }
1794
+ },
1795
+ {
1796
+ "name": "43. Lip Sync on an Audio Isolation of an 8 s MP3 upload: the isolated voice is a new file, read as a Dubbing's, 8 s plus a quarter second (8.25 s), billed as 9 s",
1797
+ "steps": [
1798
+ "lipSync"
1799
+ ],
1800
+ "handles": {
1801
+ "lipSync": "audio"
1802
+ },
1803
+ "nodes": [
1804
+ {
1805
+ "id": "a",
1806
+ "type": "upload-audio",
1807
+ "data": {
1808
+ "url": "https://cdn.example/v8.mp3",
1809
+ "metadata": {
1810
+ "durationSeconds": 8
1811
+ }
1812
+ }
1813
+ },
1814
+ {
1815
+ "id": "i",
1816
+ "type": "audio-isolation",
1817
+ "data": {}
1818
+ }
1819
+ ],
1820
+ "edges": [
1821
+ {
1822
+ "source": "a",
1823
+ "target": "i",
1824
+ "targetHandle": "audio"
1825
+ },
1826
+ {
1827
+ "source": "i",
1828
+ "targetHandle": "@input"
1829
+ }
1830
+ ],
1831
+ "expected": {
1832
+ "whole": {
1833
+ "lipSync": 9
1834
+ },
1835
+ "alone": {
1836
+ "lipSync": 9
1837
+ }
1838
+ }
1839
+ },
1840
+ {
1841
+ "name": "44. Lip Sync on a Trim Audio of the 2–7 s window of a 75 s video upload: the window, 5 s plus the container slack, billed as 6 s",
1842
+ "steps": [
1843
+ "lipSync"
1844
+ ],
1845
+ "handles": {
1846
+ "lipSync": "audio"
1847
+ },
1848
+ "nodes": [
1849
+ {
1850
+ "id": "u",
1851
+ "type": "upload-video",
1852
+ "data": {
1853
+ "url": "https://cdn.example/up75.mp4",
1854
+ "generatedResults": [
1855
+ {
1856
+ "url": "https://cdn.example/up75.mp4",
1857
+ "duration": 75
1858
+ }
1859
+ ],
1860
+ "activeResultIndex": 0
1861
+ }
1862
+ },
1863
+ {
1864
+ "id": "t",
1865
+ "type": "trim-audio",
1866
+ "data": {
1867
+ "startTime": 2,
1868
+ "endTime": 7
1869
+ }
1870
+ }
1871
+ ],
1872
+ "edges": [
1873
+ {
1874
+ "source": "u",
1875
+ "target": "t",
1876
+ "targetHandle": "in"
1877
+ },
1878
+ {
1879
+ "source": "t",
1880
+ "targetHandle": "@input"
1881
+ }
1882
+ ],
1883
+ "expected": {
1884
+ "whole": {
1885
+ "lipSync": 6
1886
+ },
1887
+ "alone": {
1888
+ "lipSync": 6
1889
+ }
1890
+ }
1891
+ },
1892
+ {
1893
+ "name": "48. Transcribe (Nemotron) on a 61.5 s audio upload: its recorded length, 2 started minutes",
1894
+ "steps": [
1895
+ "transcribe"
1896
+ ],
1897
+ "nodes": [
1898
+ {
1899
+ "id": "a",
1900
+ "type": "upload-audio",
1901
+ "data": {
1902
+ "url": "https://cdn.example/a62.mp3",
1903
+ "metadata": {
1904
+ "durationSeconds": 61.5
1905
+ }
1906
+ }
1907
+ }
1908
+ ],
1909
+ "edges": [
1910
+ {
1911
+ "source": "a",
1912
+ "targetHandle": "@input"
1913
+ }
1914
+ ],
1915
+ "expected": {
1916
+ "whole": {
1917
+ "transcribe": 2
1918
+ },
1919
+ "alone": {
1920
+ "transcribe": 2
1921
+ }
1922
+ }
1923
+ },
1924
+ {
1925
+ "name": "49. Transcribe (Nemotron) on a Text to Speech holding a 50 s take: a whole run makes the voice again, read at its take as a minimum (the run charges the minutes it measures); alone, the take — 1 minute",
1926
+ "steps": [
1927
+ "transcribe"
1928
+ ],
1929
+ "nodes": [
1930
+ {
1931
+ "id": "t",
1932
+ "type": "text-to-speech",
1933
+ "data": {
1934
+ "text": "hello there",
1935
+ "generatedResults": [
1936
+ {
1937
+ "url": "https://cdn.example/t.mp3",
1938
+ "duration": 50
1939
+ }
1940
+ ],
1941
+ "activeResultIndex": 0
1942
+ }
1943
+ }
1944
+ ],
1945
+ "edges": [
1946
+ {
1947
+ "source": "t",
1948
+ "targetHandle": "@input"
1949
+ }
1950
+ ],
1951
+ "expected": {
1952
+ "whole": {
1953
+ "transcribe": 1
1954
+ },
1955
+ "alone": {
1956
+ "transcribe": 1
1957
+ }
1958
+ }
1959
+ },
1960
+ {
1961
+ "name": "50. Transcribe (Nemotron) on a Text to Speech holding a 90 s take: 2 minutes, a minimum on a whole run",
1962
+ "steps": [
1963
+ "transcribe"
1964
+ ],
1965
+ "nodes": [
1966
+ {
1967
+ "id": "t",
1968
+ "type": "text-to-speech",
1969
+ "data": {
1970
+ "text": "hello there",
1971
+ "generatedResults": [
1972
+ {
1973
+ "url": "https://cdn.example/t.mp3",
1974
+ "duration": 90
1975
+ }
1976
+ ],
1977
+ "activeResultIndex": 0
1978
+ }
1979
+ }
1980
+ ],
1981
+ "edges": [
1982
+ {
1983
+ "source": "t",
1984
+ "targetHandle": "@input"
1985
+ }
1986
+ ],
1987
+ "expected": {
1988
+ "whole": {
1989
+ "transcribe": 2
1990
+ },
1991
+ "alone": {
1992
+ "transcribe": 2
1993
+ }
1994
+ }
1995
+ },
1996
+ {
1997
+ "name": "51. Transcribe (Nemotron) on a Text to Speech with no take yet: a length nothing knows, the 60-minute price",
1998
+ "steps": [
1999
+ "transcribe"
2000
+ ],
2001
+ "nodes": [
2002
+ {
2003
+ "id": "t",
2004
+ "type": "text-to-speech",
2005
+ "data": {
2006
+ "text": "hello there"
2007
+ }
2008
+ }
2009
+ ],
2010
+ "edges": [
2011
+ {
2012
+ "source": "t",
2013
+ "targetHandle": "@input"
2014
+ }
2015
+ ],
2016
+ "expected": {
2017
+ "whole": {
2018
+ "transcribe": 60
2019
+ },
2020
+ "alone": {
2021
+ "transcribe": 60
2022
+ }
2023
+ }
2024
+ },
2025
+ {
2026
+ "name": "52. Add Captions (Nemotron) on a generation set to 10 s: its planned length, no slack (the hold forgives a second), 1 minute",
2027
+ "steps": [
2028
+ "addCaptions"
2029
+ ],
2030
+ "nodes": [
2031
+ {
2032
+ "id": "g",
2033
+ "type": "generate-video",
2034
+ "data": {
2035
+ "provider": "kling-4",
2036
+ "duration": 10
2037
+ }
2038
+ }
2039
+ ],
2040
+ "edges": [
2041
+ {
2042
+ "source": "g",
2043
+ "targetHandle": "@input"
2044
+ }
2045
+ ],
2046
+ "expected": {
2047
+ "whole": {
2048
+ "addCaptions": 1
2049
+ },
2050
+ "alone": {
2051
+ "addCaptions": 1
2052
+ }
2053
+ }
2054
+ },
2055
+ {
2056
+ "name": "53. Add Captions (Nemotron) on a 61.5 s video upload: 2 started minutes",
2057
+ "steps": [
2058
+ "addCaptions"
2059
+ ],
2060
+ "nodes": [
2061
+ {
2062
+ "id": "u",
2063
+ "type": "upload-video",
2064
+ "data": {
2065
+ "url": "https://cdn.example/up62.mp4",
2066
+ "generatedResults": [
2067
+ {
2068
+ "url": "https://cdn.example/up62.mp4",
2069
+ "duration": 61.5
2070
+ }
2071
+ ],
2072
+ "activeResultIndex": 0
2073
+ }
2074
+ }
2075
+ ],
2076
+ "edges": [
2077
+ {
2078
+ "source": "u",
2079
+ "targetHandle": "@input"
2080
+ }
2081
+ ],
2082
+ "expected": {
2083
+ "whole": {
2084
+ "addCaptions": 2
2085
+ },
2086
+ "alone": {
2087
+ "addCaptions": 2
2088
+ }
2089
+ }
2090
+ },
2091
+ {
2092
+ "name": "54. Add Captions (Nemotron) on a Library clip with no recorded length: the 60-minute price",
2093
+ "steps": [
2094
+ "addCaptions"
2095
+ ],
2096
+ "nodes": [
2097
+ {
2098
+ "id": "u",
2099
+ "type": "upload-video",
2100
+ "data": {
2101
+ "url": "https://cdn.example/nolen.mp4"
2102
+ }
2103
+ }
2104
+ ],
2105
+ "edges": [
2106
+ {
2107
+ "source": "u",
2108
+ "targetHandle": "@input"
2109
+ }
2110
+ ],
2111
+ "expected": {
2112
+ "whole": {
2113
+ "addCaptions": 60
2114
+ },
2115
+ "alone": {
2116
+ "addCaptions": 60
2117
+ }
2118
+ }
2119
+ },
2120
+ {
2121
+ "name": "55. Dubbing on a source link set on the node (no wire): a length nothing knows before the run, quoted at the documented minimum, 1 minute (the run measures the link and charges the span)",
2122
+ "steps": [
2123
+ "dubbing"
2124
+ ],
2125
+ "stepData": {
2126
+ "dubbing": {
2127
+ "sourceUrl": "https://cdn.example/talk.mp4"
2128
+ }
2129
+ },
2130
+ "nodes": [],
2131
+ "edges": [],
2132
+ "expected": {
2133
+ "whole": {
2134
+ "dubbing": 1
2135
+ },
2136
+ "alone": {
2137
+ "dubbing": 1
2138
+ }
2139
+ }
2140
+ },
2141
+ {
2142
+ "name": "56. Topaz on a video link set on the node (no wire, as a workflow written through the API can carry it): the documented minimum, a 10-second clip, 7 units (the run measures the link and holds by it)",
2143
+ "steps": [
2144
+ "topaz",
2145
+ "nodaroUpscale"
2146
+ ],
2147
+ "stepData": {
2148
+ "topaz": {
2149
+ "videoUrl": "https://cdn.example/clip.mp4"
2150
+ },
2151
+ "nodaroUpscale": {
2152
+ "videoUrl": "https://cdn.example/clip.mp4"
2153
+ }
2154
+ },
2155
+ "nodes": [],
2156
+ "edges": [],
2157
+ "expected": {
2158
+ "whole": {
2159
+ "topaz": 7,
2160
+ "nodaroUpscale": 10
2161
+ },
2162
+ "alone": {
2163
+ "topaz": 7,
2164
+ "nodaroUpscale": 10
2165
+ }
2166
+ }
2167
+ },
2168
+ {
2169
+ "name": "57. Topaz \"Same as source\" on a 10 s upload recorded at 2560×1080 (21:9): its known frame, wider than 16:9, 9 units",
2170
+ "steps": [
2171
+ "topaz"
2172
+ ],
2173
+ "nodes": [
2174
+ {
2175
+ "id": "u",
2176
+ "type": "upload-video",
2177
+ "data": {
2178
+ "url": "https://cdn.example/up.mp4",
2179
+ "generatedResults": [
2180
+ {
2181
+ "url": "https://cdn.example/up.mp4",
2182
+ "duration": 10,
2183
+ "width": 2560,
2184
+ "height": 1080
2185
+ }
2186
+ ],
2187
+ "activeResultIndex": 0
2188
+ }
2189
+ }
2190
+ ],
2191
+ "edges": [
2192
+ {
2193
+ "source": "u",
2194
+ "targetHandle": "@input"
2195
+ }
2196
+ ],
2197
+ "expected": {
2198
+ "whole": {
2199
+ "topaz": 9
2200
+ },
2201
+ "alone": {
2202
+ "topaz": 9
2203
+ }
2204
+ }
2205
+ },
2206
+ {
2207
+ "name": "58. Topaz \"Same as source\" on a 10 s 1920×1080 upload that declares 60 fps: its known rate, 13 units",
2208
+ "steps": [
2209
+ "topaz"
2210
+ ],
2211
+ "nodes": [
2212
+ {
2213
+ "id": "u",
2214
+ "type": "upload-video",
2215
+ "data": {
2216
+ "url": "https://cdn.example/up.mp4",
2217
+ "generatedResults": [
2218
+ {
2219
+ "url": "https://cdn.example/up.mp4",
2220
+ "duration": 10,
2221
+ "width": 1920,
2222
+ "height": 1080
2223
+ }
2224
+ ],
2225
+ "activeResultIndex": 0,
2226
+ "fps": 60
2227
+ }
2228
+ }
2229
+ ],
2230
+ "edges": [
2231
+ {
2232
+ "source": "u",
2233
+ "targetHandle": "@input"
2234
+ }
2235
+ ],
2236
+ "expected": {
2237
+ "whole": {
2238
+ "topaz": 13
2239
+ },
2240
+ "alone": {
2241
+ "topaz": 13
2242
+ }
2243
+ }
2244
+ },
2245
+ {
2246
+ "name": "59. Topaz at a set 30 fps on the 21:9 upload: the frame is read whatever the rate, 9 units",
2247
+ "steps": [
2248
+ "topaz"
2249
+ ],
2250
+ "stepData": {
2251
+ "topaz": {
2252
+ "targetFps": 30
2253
+ }
2254
+ },
2255
+ "nodes": [
2256
+ {
2257
+ "id": "u",
2258
+ "type": "upload-video",
2259
+ "data": {
2260
+ "url": "https://cdn.example/up.mp4",
2261
+ "generatedResults": [
2262
+ {
2263
+ "url": "https://cdn.example/up.mp4",
2264
+ "duration": 10,
2265
+ "width": 2560,
2266
+ "height": 1080
2267
+ }
2268
+ ],
2269
+ "activeResultIndex": 0
2270
+ }
2271
+ }
2272
+ ],
2273
+ "edges": [
2274
+ {
2275
+ "source": "u",
2276
+ "targetHandle": "@input"
2277
+ }
2278
+ ],
2279
+ "expected": {
2280
+ "whole": {
2281
+ "topaz": 9
2282
+ },
2283
+ "alone": {
2284
+ "topaz": 9
2285
+ }
2286
+ }
2287
+ },
2288
+ {
2289
+ "name": "60. Topaz on a saved node with only the old 2× factor, over a 10 s 1920×1080 upload: the run's resolver maps it to 4K, 25 units",
2290
+ "steps": [
2291
+ "topaz"
2292
+ ],
2293
+ "stepData": {
2294
+ "topaz": {
2295
+ "targetResolution": null,
2296
+ "upscaleFactor": "2"
2297
+ }
2298
+ },
2299
+ "nodes": [
2300
+ {
2301
+ "id": "u",
2302
+ "type": "upload-video",
2303
+ "data": {
2304
+ "url": "https://cdn.example/up.mp4",
2305
+ "generatedResults": [
2306
+ {
2307
+ "url": "https://cdn.example/up.mp4",
2308
+ "duration": 10,
2309
+ "width": 1920,
2310
+ "height": 1080
2311
+ }
2312
+ ],
2313
+ "activeResultIndex": 0
2314
+ }
2315
+ }
2316
+ ],
2317
+ "edges": [
2318
+ {
2319
+ "source": "u",
2320
+ "targetHandle": "@input"
2321
+ }
2322
+ ],
2323
+ "expected": {
2324
+ "whole": {
2325
+ "topaz": 25
2326
+ },
2327
+ "alone": {
2328
+ "topaz": 25
2329
+ }
2330
+ }
2331
+ },
2332
+ {
2333
+ "name": "61. Topaz \"Same as source\" on a 10 s upload recorded at 1440×1080 (4:3): its known frame, narrower than 16:9, 5 units",
2334
+ "steps": [
2335
+ "topaz"
2336
+ ],
2337
+ "nodes": [
2338
+ {
2339
+ "id": "u",
2340
+ "type": "upload-video",
2341
+ "data": {
2342
+ "url": "https://cdn.example/up.mp4",
2343
+ "generatedResults": [
2344
+ {
2345
+ "url": "https://cdn.example/up.mp4",
2346
+ "duration": 10,
2347
+ "width": 1440,
2348
+ "height": 1080
2349
+ }
2350
+ ],
2351
+ "activeResultIndex": 0
2352
+ }
2353
+ }
2354
+ ],
2355
+ "edges": [
2356
+ {
2357
+ "source": "u",
2358
+ "targetHandle": "@input"
2359
+ }
2360
+ ],
2361
+ "expected": {
2362
+ "whole": {
2363
+ "topaz": 5
2364
+ },
2365
+ "alone": {
2366
+ "topaz": 5
2367
+ }
2368
+ }
2369
+ },
2370
+ {
2371
+ "name": "62. Topaz on a generation holding a 10 s 21:9 take: a whole run makes the clip again, so its frame is not known before it (the 16:9 minimum, 7 units); run alone, the take it hands on, 9 units",
2372
+ "steps": [
2373
+ "topaz"
2374
+ ],
2375
+ "nodes": [
2376
+ {
2377
+ "id": "g",
2378
+ "type": "generate-video",
2379
+ "data": {
2380
+ "provider": "kling-4",
2381
+ "duration": 10,
2382
+ "generatedResults": [
2383
+ {
2384
+ "url": "https://cdn.example/g.mp4",
2385
+ "duration": 10,
2386
+ "width": 2560,
2387
+ "height": 1080
2388
+ }
2389
+ ],
2390
+ "activeResultIndex": 0
2391
+ }
2392
+ }
2393
+ ],
2394
+ "edges": [
2395
+ {
2396
+ "source": "g",
2397
+ "targetHandle": "@input"
2398
+ }
2399
+ ],
2400
+ "expected": {
2401
+ "whole": {
2402
+ "topaz": 7
2403
+ },
2404
+ "alone": {
2405
+ "topaz": 9
2406
+ }
2407
+ }
2408
+ },
2409
+ {
2410
+ "name": "63. Topaz on a Combine Videos of two 5 s 21:9 uploads: the frame both clips share, 9 units",
2411
+ "steps": [
2412
+ "topaz"
2413
+ ],
2414
+ "nodes": [
2415
+ {
2416
+ "id": "a",
2417
+ "type": "upload-video",
2418
+ "data": {
2419
+ "url": "https://cdn.example/a.mp4",
2420
+ "generatedResults": [
2421
+ {
2422
+ "url": "https://cdn.example/a.mp4",
2423
+ "duration": 5,
2424
+ "width": 2560,
2425
+ "height": 1080
2426
+ }
2427
+ ],
2428
+ "activeResultIndex": 0
2429
+ }
2430
+ },
2431
+ {
2432
+ "id": "b",
2433
+ "type": "upload-video",
2434
+ "data": {
2435
+ "url": "https://cdn.example/b.mp4",
2436
+ "generatedResults": [
2437
+ {
2438
+ "url": "https://cdn.example/b.mp4",
2439
+ "duration": 5,
2440
+ "width": 2560,
2441
+ "height": 1080
2442
+ }
2443
+ ],
2444
+ "activeResultIndex": 0
2445
+ }
2446
+ },
2447
+ {
2448
+ "id": "k",
2449
+ "type": "combine-videos",
2450
+ "data": {}
2451
+ }
2452
+ ],
2453
+ "edges": [
2454
+ {
2455
+ "source": "a",
2456
+ "target": "k",
2457
+ "targetHandle": "videos"
2458
+ },
2459
+ {
2460
+ "source": "b",
2461
+ "target": "k",
2462
+ "targetHandle": "videos"
2463
+ },
2464
+ {
2465
+ "source": "k",
2466
+ "targetHandle": "@input"
2467
+ }
2468
+ ],
2469
+ "expected": {
2470
+ "whole": {
2471
+ "topaz": 9
2472
+ },
2473
+ "alone": {
2474
+ "topaz": 9
2475
+ }
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "64. Topaz on a Combine Videos of a 21:9 and a 16:9 upload: no one frame, the 16:9 minimum, 7 units",
2480
+ "steps": [
2481
+ "topaz"
2482
+ ],
2483
+ "nodes": [
2484
+ {
2485
+ "id": "a",
2486
+ "type": "upload-video",
2487
+ "data": {
2488
+ "url": "https://cdn.example/a.mp4",
2489
+ "generatedResults": [
2490
+ {
2491
+ "url": "https://cdn.example/a.mp4",
2492
+ "duration": 5,
2493
+ "width": 2560,
2494
+ "height": 1080
2495
+ }
2496
+ ],
2497
+ "activeResultIndex": 0
2498
+ }
2499
+ },
2500
+ {
2501
+ "id": "b",
2502
+ "type": "upload-video",
2503
+ "data": {
2504
+ "url": "https://cdn.example/b.mp4",
2505
+ "generatedResults": [
2506
+ {
2507
+ "url": "https://cdn.example/b.mp4",
2508
+ "duration": 5,
2509
+ "width": 1920,
2510
+ "height": 1080
2511
+ }
2512
+ ],
2513
+ "activeResultIndex": 0
2514
+ }
2515
+ },
2516
+ {
2517
+ "id": "k",
2518
+ "type": "combine-videos",
2519
+ "data": {}
2520
+ }
2521
+ ],
2522
+ "edges": [
2523
+ {
2524
+ "source": "a",
2525
+ "target": "k",
2526
+ "targetHandle": "videos"
2527
+ },
2528
+ {
2529
+ "source": "b",
2530
+ "target": "k",
2531
+ "targetHandle": "videos"
2532
+ },
2533
+ {
2534
+ "source": "k",
2535
+ "targetHandle": "@input"
2536
+ }
2537
+ ],
2538
+ "expected": {
2539
+ "whole": {
2540
+ "topaz": 7
2541
+ },
2542
+ "alone": {
2543
+ "topaz": 7
2544
+ }
2545
+ }
2546
+ },
2547
+ {
2548
+ "name": "65. Add Captions (Nemotron) with two video wires, a 30 s and a 90 s upload: the longest, 90 s, 2 started minutes, on both sides",
2549
+ "steps": [
2550
+ "addCaptions"
2551
+ ],
2552
+ "nodes": [
2553
+ {
2554
+ "id": "a",
2555
+ "type": "upload-video",
2556
+ "data": {
2557
+ "url": "https://cdn.example/a.mp4",
2558
+ "generatedResults": [
2559
+ {
2560
+ "url": "https://cdn.example/a.mp4",
2561
+ "duration": 30
2562
+ }
2563
+ ],
2564
+ "activeResultIndex": 0
2565
+ }
2566
+ },
2567
+ {
2568
+ "id": "b",
2569
+ "type": "upload-video",
2570
+ "data": {
2571
+ "url": "https://cdn.example/b.mp4",
2572
+ "generatedResults": [
2573
+ {
2574
+ "url": "https://cdn.example/b.mp4",
2575
+ "duration": 90
2576
+ }
2577
+ ],
2578
+ "activeResultIndex": 0
2579
+ }
2580
+ }
2581
+ ],
2582
+ "edges": [
2583
+ {
2584
+ "source": "a",
2585
+ "targetHandle": "@input"
2586
+ },
2587
+ {
2588
+ "source": "b",
2589
+ "targetHandle": "@input"
2590
+ }
2591
+ ],
2592
+ "expected": {
2593
+ "whole": {
2594
+ "addCaptions": 2
2595
+ },
2596
+ "alone": {
2597
+ "addCaptions": 2
2598
+ }
2599
+ }
2600
+ },
2601
+ {
2602
+ "name": "66. Lip Sync on Kling Avatar (a length tier) on a 15.000 s M4A recorded at 16 kHz: its decode runs one AAC frame (0.064 s) past the record, past the tier's 0.05 s edge, so the 30 s tier its hold reads, not 15 s",
2603
+ "steps": [
2604
+ "lipSyncBucket"
2605
+ ],
2606
+ "handles": {
2607
+ "lipSyncBucket": "audio"
2608
+ },
2609
+ "nodes": [
2610
+ {
2611
+ "id": "a",
2612
+ "type": "upload-audio",
2613
+ "data": {
2614
+ "url": "https://cdn.example/a.m4a",
2615
+ "metadata": {
2616
+ "durationSeconds": 15,
2617
+ "codec": "aac",
2618
+ "sampleRate": 16000
2619
+ }
2620
+ }
2621
+ }
2622
+ ],
2623
+ "edges": [
2624
+ {
2625
+ "source": "a",
2626
+ "targetHandle": "@input"
2627
+ }
2628
+ ],
2629
+ "expected": {
2630
+ "whole": {
2631
+ "lipSyncBucket": 30
2632
+ },
2633
+ "alone": {
2634
+ "lipSyncBucket": 30
2635
+ }
2636
+ }
2637
+ },
2638
+ {
2639
+ "name": "66b. Kling Avatar on a 15.000 s M4A at 44.1 kHz: its frame (0.023 s) is inside the tier's edge, the 15 s tier",
2640
+ "steps": [
2641
+ "lipSyncBucket"
2642
+ ],
2643
+ "handles": {
2644
+ "lipSyncBucket": "audio"
2645
+ },
2646
+ "nodes": [
2647
+ {
2648
+ "id": "a",
2649
+ "type": "upload-audio",
2650
+ "data": {
2651
+ "url": "https://cdn.example/a.m4a",
2652
+ "metadata": {
2653
+ "durationSeconds": 15,
2654
+ "codec": "aac",
2655
+ "sampleRate": 44100
2656
+ }
2657
+ }
2658
+ }
2659
+ ],
2660
+ "edges": [
2661
+ {
2662
+ "source": "a",
2663
+ "targetHandle": "@input"
2664
+ }
2665
+ ],
2666
+ "expected": {
2667
+ "whole": {
2668
+ "lipSyncBucket": 15
2669
+ },
2670
+ "alone": {
2671
+ "lipSyncBucket": 15
2672
+ }
2673
+ }
2674
+ },
2675
+ {
2676
+ "name": "66c. Kling Avatar on a 15.000 s MP3 upload: no AAC frame, the 15 s tier",
2677
+ "steps": [
2678
+ "lipSyncBucket"
2679
+ ],
2680
+ "handles": {
2681
+ "lipSyncBucket": "audio"
2682
+ },
2683
+ "nodes": [
2684
+ {
2685
+ "id": "a",
2686
+ "type": "upload-audio",
2687
+ "data": {
2688
+ "url": "https://cdn.example/a.mp3",
2689
+ "metadata": {
2690
+ "durationSeconds": 15,
2691
+ "codec": "mp3",
2692
+ "sampleRate": 44100
2693
+ }
2694
+ }
2695
+ }
2696
+ ],
2697
+ "edges": [
2698
+ {
2699
+ "source": "a",
2700
+ "targetHandle": "@input"
2701
+ }
2702
+ ],
2703
+ "expected": {
2704
+ "whole": {
2705
+ "lipSyncBucket": 15
2706
+ },
2707
+ "alone": {
2708
+ "lipSyncBucket": 15
2709
+ }
2710
+ }
2711
+ },
2712
+ {
2713
+ "name": "67. A 9.85 s upload extended by 5 s on PixVerse V6: 14.85 s, plus a quarter second on every step (a PixVerse V6 extension runs further past its length): 15.1 s, past the 15 s row, second and tier on the container steps and the stream steps alike",
2714
+ "nodes": [
2715
+ {
2716
+ "id": "u",
2717
+ "type": "upload-video",
2718
+ "data": {
2719
+ "url": "https://cdn.example/u.mp4",
2720
+ "generatedResults": [
2721
+ {
2722
+ "url": "https://cdn.example/u.mp4",
2723
+ "duration": 9.85
2724
+ }
2725
+ ],
2726
+ "activeResultIndex": 0
2727
+ }
2728
+ },
2729
+ {
2730
+ "id": "x",
2731
+ "type": "extend-video",
2732
+ "data": {
2733
+ "provider": "pixverse-v6-extend",
2734
+ "duration": 5
2735
+ }
2736
+ }
2737
+ ],
2738
+ "edges": [
2739
+ {
2740
+ "source": "u",
2741
+ "target": "x",
2742
+ "targetHandle": "video"
2743
+ },
2744
+ {
2745
+ "source": "x",
2746
+ "targetHandle": "@input"
2747
+ }
2748
+ ],
2749
+ "expected": {
2750
+ "whole": {
2751
+ "videoSfx": 30,
2752
+ "videoMask": 30,
2753
+ "videoDepth": 16,
2754
+ "pitchTempo": 1,
2755
+ "dubbing": 1,
2756
+ "topaz": 10,
2757
+ "nodaroUpscale": 16
2758
+ },
2759
+ "alone": {
2760
+ "videoSfx": 30,
2761
+ "videoMask": 30,
2762
+ "videoDepth": 16,
2763
+ "pitchTempo": 1,
2764
+ "dubbing": 1,
2765
+ "topaz": 10,
2766
+ "nodaroUpscale": 16
2767
+ }
2768
+ }
2769
+ },
2770
+ {
2771
+ "name": "67b. The same on Seedance 2.5: each step's own slack, 14.95 s (14.89 s on the stream), inside the 15 s row, second and tier",
2772
+ "nodes": [
2773
+ {
2774
+ "id": "u",
2775
+ "type": "upload-video",
2776
+ "data": {
2777
+ "url": "https://cdn.example/u.mp4",
2778
+ "generatedResults": [
2779
+ {
2780
+ "url": "https://cdn.example/u.mp4",
2781
+ "duration": 9.85
2782
+ }
2783
+ ],
2784
+ "activeResultIndex": 0
2785
+ }
2786
+ },
2787
+ {
2788
+ "id": "x",
2789
+ "type": "extend-video",
2790
+ "data": {
2791
+ "provider": "seedance-2-5-extend",
2792
+ "duration": 5
2793
+ }
2794
+ }
2795
+ ],
2796
+ "edges": [
2797
+ {
2798
+ "source": "u",
2799
+ "target": "x",
2800
+ "targetHandle": "video"
2801
+ },
2802
+ {
2803
+ "source": "x",
2804
+ "targetHandle": "@input"
2805
+ }
2806
+ ],
2807
+ "expected": {
2808
+ "whole": {
2809
+ "videoSfx": 15,
2810
+ "videoMask": 15,
2811
+ "videoDepth": 15,
2812
+ "pitchTempo": 1,
2813
+ "dubbing": 1,
2814
+ "topaz": 10,
2815
+ "nodaroUpscale": 15
2816
+ },
2817
+ "alone": {
2818
+ "videoSfx": 15,
2819
+ "videoMask": 15,
2820
+ "videoDepth": 15,
2821
+ "pitchTempo": 1,
2822
+ "dubbing": 1,
2823
+ "topaz": 10,
2824
+ "nodaroUpscale": 15
2825
+ }
2826
+ }
2827
+ },
2828
+ {
2829
+ "name": "68. Pitch & Tempo and Dubbing after a Dubbing of a 59.8 s audio upload: the dub is a new file that runs further past its input, 59.8 s plus a quarter second, 60.05 s: 2 started minutes",
2830
+ "steps": [
2831
+ "pitchTempo",
2832
+ "dubbing"
2833
+ ],
2834
+ "handles": {
2835
+ "dubbing": "audio"
2836
+ },
2837
+ "nodes": [
2838
+ {
2839
+ "id": "a",
2840
+ "type": "upload-audio",
2841
+ "data": {
2842
+ "url": "https://cdn.example/a.mp3",
2843
+ "metadata": {
2844
+ "durationSeconds": 59.8
2845
+ }
2846
+ }
2847
+ },
2848
+ {
2849
+ "id": "r",
2850
+ "type": "dubbing",
2851
+ "data": {}
2852
+ }
2853
+ ],
2854
+ "edges": [
2855
+ {
2856
+ "source": "a",
2857
+ "target": "r",
2858
+ "targetHandle": "audio"
2859
+ },
2860
+ {
2861
+ "source": "r",
2862
+ "targetHandle": "@input"
2863
+ }
2864
+ ],
2865
+ "expected": {
2866
+ "whole": {
2867
+ "pitchTempo": 2,
2868
+ "dubbing": 2
2869
+ },
2870
+ "alone": {
2871
+ "pitchTempo": 2,
2872
+ "dubbing": 2
2873
+ }
2874
+ }
2875
+ },
2876
+ {
2877
+ "name": "68b. The same after an Audio Isolation: read as a Dubbing, 60.05 s, 2 started minutes",
2878
+ "steps": [
2879
+ "pitchTempo",
2880
+ "dubbing"
2881
+ ],
2882
+ "handles": {
2883
+ "dubbing": "audio"
2884
+ },
2885
+ "nodes": [
2886
+ {
2887
+ "id": "a",
2888
+ "type": "upload-audio",
2889
+ "data": {
2890
+ "url": "https://cdn.example/a.mp3",
2891
+ "metadata": {
2892
+ "durationSeconds": 59.8
2893
+ }
2894
+ }
2895
+ },
2896
+ {
2897
+ "id": "r",
2898
+ "type": "audio-isolation",
2899
+ "data": {}
2900
+ }
2901
+ ],
2902
+ "edges": [
2903
+ {
2904
+ "source": "a",
2905
+ "target": "r",
2906
+ "targetHandle": "audio"
2907
+ },
2908
+ {
2909
+ "source": "r",
2910
+ "targetHandle": "@input"
2911
+ }
2912
+ ],
2913
+ "expected": {
2914
+ "whole": {
2915
+ "pitchTempo": 2,
2916
+ "dubbing": 2
2917
+ },
2918
+ "alone": {
2919
+ "pitchTempo": 2,
2920
+ "dubbing": 2
2921
+ }
2922
+ }
2923
+ },
2924
+ {
2925
+ "name": "68c. The same after a Voice Changer: the step's own slack, 59.9 s, 1 started minute",
2926
+ "steps": [
2927
+ "pitchTempo",
2928
+ "dubbing"
2929
+ ],
2930
+ "handles": {
2931
+ "dubbing": "audio"
2932
+ },
2933
+ "nodes": [
2934
+ {
2935
+ "id": "a",
2936
+ "type": "upload-audio",
2937
+ "data": {
2938
+ "url": "https://cdn.example/a.mp3",
2939
+ "metadata": {
2940
+ "durationSeconds": 59.8
2941
+ }
2942
+ }
2943
+ },
2944
+ {
2945
+ "id": "r",
2946
+ "type": "voice-changer",
2947
+ "data": {}
2948
+ }
2949
+ ],
2950
+ "edges": [
2951
+ {
2952
+ "source": "a",
2953
+ "target": "r",
2954
+ "targetHandle": "audio"
2955
+ },
2956
+ {
2957
+ "source": "r",
2958
+ "targetHandle": "@input"
2959
+ }
2960
+ ],
2961
+ "expected": {
2962
+ "whole": {
2963
+ "pitchTempo": 1,
2964
+ "dubbing": 1
2965
+ },
2966
+ "alone": {
2967
+ "pitchTempo": 1,
2968
+ "dubbing": 1
2969
+ }
2970
+ }
2971
+ },
2972
+ {
2973
+ "name": "69. Lip Sync (OmniHuman 2.0) on an Audio Isolation of a 4.8 s MP3 upload: 4.8 s plus a quarter second, 5.05 s, billed as 6 s",
2974
+ "steps": [
2975
+ "lipSync"
2976
+ ],
2977
+ "handles": {
2978
+ "lipSync": "audio"
2979
+ },
2980
+ "nodes": [
2981
+ {
2982
+ "id": "a",
2983
+ "type": "upload-audio",
2984
+ "data": {
2985
+ "url": "https://cdn.example/a.mp3",
2986
+ "metadata": {
2987
+ "durationSeconds": 4.8
2988
+ }
2989
+ }
2990
+ },
2991
+ {
2992
+ "id": "r",
2993
+ "type": "audio-isolation",
2994
+ "data": {}
2995
+ }
2996
+ ],
2997
+ "edges": [
2998
+ {
2999
+ "source": "a",
3000
+ "target": "r",
3001
+ "targetHandle": "audio"
3002
+ },
3003
+ {
3004
+ "source": "r",
3005
+ "targetHandle": "@input"
3006
+ }
3007
+ ],
3008
+ "expected": {
3009
+ "whole": {
3010
+ "lipSync": 6
3011
+ },
3012
+ "alone": {
3013
+ "lipSync": 6
3014
+ }
3015
+ }
3016
+ },
3017
+ {
3018
+ "name": "69b. Lip Sync on a Dubbing of the same 4.8 s MP3: 5.05 s, billed as 6 s",
3019
+ "steps": [
3020
+ "lipSync"
3021
+ ],
3022
+ "handles": {
3023
+ "lipSync": "audio"
3024
+ },
3025
+ "nodes": [
3026
+ {
3027
+ "id": "a",
3028
+ "type": "upload-audio",
3029
+ "data": {
3030
+ "url": "https://cdn.example/a.mp3",
3031
+ "metadata": {
3032
+ "durationSeconds": 4.8
3033
+ }
3034
+ }
3035
+ },
3036
+ {
3037
+ "id": "r",
3038
+ "type": "dubbing",
3039
+ "data": {}
3040
+ }
3041
+ ],
3042
+ "edges": [
3043
+ {
3044
+ "source": "a",
3045
+ "target": "r",
3046
+ "targetHandle": "audio"
3047
+ },
3048
+ {
3049
+ "source": "r",
3050
+ "targetHandle": "@input"
3051
+ }
3052
+ ],
3053
+ "expected": {
3054
+ "whole": {
3055
+ "lipSync": 6
3056
+ },
3057
+ "alone": {
3058
+ "lipSync": 6
3059
+ }
3060
+ }
3061
+ },
3062
+ {
3063
+ "name": "69c. Lip Sync on a Voice Changer of the same 4.8 s MP3: the container slack, 4.9 s, billed as 5 s",
3064
+ "steps": [
3065
+ "lipSync"
3066
+ ],
3067
+ "handles": {
3068
+ "lipSync": "audio"
3069
+ },
3070
+ "nodes": [
3071
+ {
3072
+ "id": "a",
3073
+ "type": "upload-audio",
3074
+ "data": {
3075
+ "url": "https://cdn.example/a.mp3",
3076
+ "metadata": {
3077
+ "durationSeconds": 4.8
3078
+ }
3079
+ }
3080
+ },
3081
+ {
3082
+ "id": "r",
3083
+ "type": "voice-changer",
3084
+ "data": {}
3085
+ }
3086
+ ],
3087
+ "edges": [
3088
+ {
3089
+ "source": "a",
3090
+ "target": "r",
3091
+ "targetHandle": "audio"
3092
+ },
3093
+ {
3094
+ "source": "r",
3095
+ "targetHandle": "@input"
3096
+ }
3097
+ ],
3098
+ "expected": {
3099
+ "whole": {
3100
+ "lipSync": 5
3101
+ },
3102
+ "alone": {
3103
+ "lipSync": 5
3104
+ }
3105
+ }
3106
+ },
3107
+ {
3108
+ "name": "70. Kling Avatar (a length tier) on a Voice Changer of a 14.9 s MP3: the container slack, 15.0 s, inside the 15 s tier's edge — unchanged, the 15 s tier",
3109
+ "steps": [
3110
+ "lipSyncBucket"
3111
+ ],
3112
+ "handles": {
3113
+ "lipSyncBucket": "audio"
3114
+ },
3115
+ "nodes": [
3116
+ {
3117
+ "id": "a",
3118
+ "type": "upload-audio",
3119
+ "data": {
3120
+ "url": "https://cdn.example/a.mp3",
3121
+ "metadata": {
3122
+ "durationSeconds": 14.9
3123
+ }
3124
+ }
3125
+ },
3126
+ {
3127
+ "id": "r",
3128
+ "type": "voice-changer",
3129
+ "data": {}
3130
+ }
3131
+ ],
3132
+ "edges": [
3133
+ {
3134
+ "source": "a",
3135
+ "target": "r",
3136
+ "targetHandle": "audio"
3137
+ },
3138
+ {
3139
+ "source": "r",
3140
+ "targetHandle": "@input"
3141
+ }
3142
+ ],
3143
+ "expected": {
3144
+ "whole": {
3145
+ "lipSyncBucket": 15
3146
+ },
3147
+ "alone": {
3148
+ "lipSyncBucket": 15
3149
+ }
3150
+ }
3151
+ },
3152
+ {
3153
+ "name": "70b. Kling Avatar on an Audio Isolation of the same 14.9 s MP3: a quarter second, 15.15 s, past the 15 s tier's edge: the 30 s tier",
3154
+ "steps": [
3155
+ "lipSyncBucket"
3156
+ ],
3157
+ "handles": {
3158
+ "lipSyncBucket": "audio"
3159
+ },
3160
+ "nodes": [
3161
+ {
3162
+ "id": "a",
3163
+ "type": "upload-audio",
3164
+ "data": {
3165
+ "url": "https://cdn.example/a.mp3",
3166
+ "metadata": {
3167
+ "durationSeconds": 14.9
3168
+ }
3169
+ }
3170
+ },
3171
+ {
3172
+ "id": "r",
3173
+ "type": "audio-isolation",
3174
+ "data": {}
3175
+ }
3176
+ ],
3177
+ "edges": [
3178
+ {
3179
+ "source": "a",
3180
+ "target": "r",
3181
+ "targetHandle": "audio"
3182
+ },
3183
+ {
3184
+ "source": "r",
3185
+ "targetHandle": "@input"
3186
+ }
3187
+ ],
3188
+ "expected": {
3189
+ "whole": {
3190
+ "lipSyncBucket": 30
3191
+ },
3192
+ "alone": {
3193
+ "lipSyncBucket": 30
3194
+ }
3195
+ }
3196
+ },
3197
+ {
3198
+ "name": "71. A Dubbing of a 7.9 s video upload: Video Depth measures the container, which runs further past the input, 8.15 s, 9 s; Topaz and Nodaro Video Upscale measure the video stream, which a dub keeps exactly, so their own frame, 7.94 s: 5 units and 8 s (a quarter second would read 6 units and 9 s)",
3199
+ "steps": [
3200
+ "videoDepth",
3201
+ "topaz",
3202
+ "nodaroUpscale"
3203
+ ],
3204
+ "nodes": [
3205
+ {
3206
+ "id": "u",
3207
+ "type": "upload-video",
3208
+ "data": {
3209
+ "url": "https://cdn.example/u.mp4",
3210
+ "generatedResults": [
3211
+ {
3212
+ "url": "https://cdn.example/u.mp4",
3213
+ "duration": 7.9
3214
+ }
3215
+ ],
3216
+ "activeResultIndex": 0
3217
+ }
3218
+ },
3219
+ {
3220
+ "id": "r",
3221
+ "type": "dubbing",
3222
+ "data": {}
3223
+ }
3224
+ ],
3225
+ "edges": [
3226
+ {
3227
+ "source": "u",
3228
+ "target": "r",
3229
+ "targetHandle": "video"
3230
+ },
3231
+ {
3232
+ "source": "r",
3233
+ "targetHandle": "@input"
3234
+ }
3235
+ ],
3236
+ "expected": {
3237
+ "whole": {
3238
+ "videoDepth": 9,
3239
+ "topaz": 5,
3240
+ "nodaroUpscale": 8
3241
+ },
3242
+ "alone": {
3243
+ "videoDepth": 9,
3244
+ "topaz": 5,
3245
+ "nodaroUpscale": 8
3246
+ }
3247
+ }
1433
3248
  }
1434
3249
  ]
1435
3250
  }