🎥 Make videos programmatically with React
Add lights tutorial draft with synchronized narration
JonnyBurgerd25199c8b544
diff --git a/packages/jonnys-videos/src/Root.tsx b/packages/jonnys-videos/src/Root.tsxindex a4e679cf4d..08d2f2e2e4 100644--- a/packages/jonnys-videos/src/Root.tsx+++ b/packages/jonnys-videos/src/Root.tsx@@ -41,6 +41,9 @@ import {ForkDrop} from './disco-light-show/ForkDrop';import {ForkSound} from './disco-light-show/ForkSound';import {GetThemToDance} from './disco-light-show/GetThemToDance';import {HuggingFace} from './disco-light-show/HuggingFace';+import {AnimateTheLights} from './disco-light-show/lights/AnimateTheLights';+import {LightsFootage} from './disco-light-show/lights/LightsFootage';+import {LIGHTS_DURATION_IN_FRAMES} from './disco-light-show/lights/voiceover';import {MasterWithEffect} from './disco-light-show/MasterWithEffect';import {Mediabunny} from './disco-light-show/Mediabunny';import {OneShot} from './disco-light-show/OneShot';@@ -112,6 +115,31 @@ export const RemotionRoot: React.FC = () => {<><Folder name="DiscoLightShow"><MyComposition />+ <Folder name="AnimatingTheLights">+ <Composition+ id="AnimateTheLights"+ component={AnimateTheLights}+ durationInFrames={LIGHTS_DURATION_IN_FRAMES}+ fps={30}+ width={1080}+ height={1920}+ />+ <Folder name="Scenes">+ <Composition+ id="LightsShowFootage"+ component={LightsFootage}+ durationInFrames={211}+ fps={30}+ width={1080}+ height={1920}+ defaultProps={{+ src: 'https://remotion.media/jonnys-videos/disco-light-show/solo-dmx-light-show-8c06c9856456.mp4',+ footageRate: 1,+ style: {backgroundColor: '#141414'},+ }}+ />+ </Folder>+ </Folder><Folder name="Chapters"><Compositionid="OpeningScene"diff --git a/packages/jonnys-videos/src/disco-light-show/lights/AnimateTheLights.tsx b/packages/jonnys-videos/src/disco-light-show/lights/AnimateTheLights.tsxnew file mode 100644index 0000000000..8b7b6bec3d--- /dev/null+++ b/packages/jonnys-videos/src/disco-light-show/lights/AnimateTheLights.tsx@@ -0,0 +1,85 @@+import {Audio} from '@remotion/media';+import {Interactive, interpolate, Sequence, Track} from 'remotion';+import {asset} from '../assets';+import {DiscoBallBg} from '../DiscoBallBg';+import {SocialSafeZones} from '../SocialSafeZones';+import {LightsCaptions} from './LightsCaptions';+import {LightsFootage} from './LightsFootage';+import {LIGHTS_DURATION_IN_FRAMES, LIGHTS_VOICEOVER_SRC} from './voiceover';++const AnimateTheLightsInner = () => (+ <>+ <DiscoBallBg+ name="Same dark paper background"+ width={1080}+ height={1920}+ durationInFrames={LIGHTS_DURATION_IN_FRAMES}+ />+ <Track name="Footage">+ <LightsFootage+ name="Solo light-show footage"+ from={0}+ durationInFrames={LIGHTS_DURATION_IN_FRAMES}+ width={1080}+ height={1920}+ src={asset('solo-dmx-light-show-8c06c9856456.mp4')}+ footageRate={1}+ />+ </Track>+ <Track name="Music">+ <Audio+ name="Kein Kokain — instrumental"+ src={asset('kein-kokain-instrumental-fad54dabc4a4.mp3')}+ trimBefore={0.95075 * 30}+ durationInFrames={LIGHTS_DURATION_IN_FRAMES}+ volume={(frame) =>+ interpolate(+ frame,+ [+ 0,+ 7,+ LIGHTS_DURATION_IN_FRAMES - 25,+ LIGHTS_DURATION_IN_FRAMES - 1,+ ],+ [0, 0.07, 0.07, 0],+ {extrapolateLeft: 'clamp', extrapolateRight: 'clamp'},+ )+ }+ />+ </Track>+ <SocialSafeZones+ name="Social safe zones — toggle visibility"+ width={1080}+ height={1920}+ durationInFrames={LIGHTS_DURATION_IN_FRAMES}+ platform="instagram"+ hidden+ style={{pointerEvents: 'none', zIndex: 2147483647}}+ />+ <Sequence+ name="Narration and captions"+ durationInFrames={LIGHTS_DURATION_IN_FRAMES}+ width={1080}+ height={1920}+ style={{zIndex: 2147483647, pointerEvents: 'none'}}+ >+ <Audio name="ElevenLabs — Derek" src={LIGHTS_VOICEOVER_SRC} />+ <LightsCaptions+ name="Word-synchronized captions"+ width={1080}+ height={360}+ style={{+ position: 'absolute',+ translate: '0px 1260px',+ scale: 0.9,+ transformOrigin: '50% 0%',+ }}+ />+ </Sequence>+ </>+);++export const AnimateTheLights = Interactive.create({+ Component: AnimateTheLightsInner,+ layout: 'absolute-fill',+});diff --git a/packages/jonnys-videos/src/disco-light-show/lights/LightsCaptions.tsx b/packages/jonnys-videos/src/disco-light-show/lights/LightsCaptions.tsxnew file mode 100644index 0000000000..59e37ca23b--- /dev/null+++ b/packages/jonnys-videos/src/disco-light-show/lights/LightsCaptions.tsx@@ -0,0 +1,1326 @@+import {Interactive} from 'remotion';+import {AnimatedCaptions} from '../../components/AnimatedCaptions';++const LightsCaptionsInner = () => (+ <AnimatedCaptions+ theme="dark"+ captionsSrc={null}+ voiceoverSrc={null}+ captions={[+ {+ text: 'I',+ startMs: 280.0,+ endMs: 500.0,+ timestampMs: 390.0,+ confidence: null,+ },+ {+ text: ' vibe-coded',+ startMs: 500.0,+ endMs: 1000,+ timestampMs: 750.0,+ confidence: null,+ },+ {+ text: ' my',+ startMs: 1000,+ endMs: 1300.0,+ timestampMs: 1150.0,+ confidence: null,+ },+ {+ text: ' own',+ startMs: 1300.0,+ endMs: 1600.0,+ timestampMs: 1450.0,+ confidence: null,+ },+ {+ text: ' DJ',+ startMs: 1600.0,+ endMs: 2120.0,+ timestampMs: 1860.0,+ confidence: null,+ },+ {+ text: ' show.',+ startMs: 2120.0,+ endMs: 2460.0,+ timestampMs: 2290.0,+ confidence: null,+ },+ {+ text: ' Claude',+ startMs: 2460.0,+ endMs: 2660.0,+ timestampMs: 2560.0,+ confidence: null,+ },+ {+ text: ' helped',+ startMs: 2660.0,+ endMs: 2820.0,+ timestampMs: 2740.0,+ confidence: null,+ },+ {+ text: ' me',+ startMs: 2820.0,+ endMs: 3220.0,+ timestampMs: 3020.0,+ confidence: null,+ },+ {+ text: ' animate',+ startMs: 3220.0,+ endMs: 3400.0,+ timestampMs: 3310.0,+ confidence: null,+ },+ {+ text: ' the',+ startMs: 3400.0,+ endMs: 3660.0,+ timestampMs: 3530.0,+ confidence: null,+ },+ {+ text: ' lights,',+ startMs: 3660.0,+ endMs: 3920.0,+ timestampMs: 3790.0,+ confidence: null,+ },+ {+ text: ' and',+ startMs: 3980.0,+ endMs: 4000,+ timestampMs: 3990.0,+ confidence: null,+ },+ {+ text: ' Remotion',+ startMs: 4120.0,+ endMs: 4680.0,+ timestampMs: 4400.0,+ confidence: null,+ },+ {+ text: ' came',+ startMs: 4680.0,+ endMs: 4940.0,+ timestampMs: 4810.0,+ confidence: null,+ },+ {+ text: ' in',+ startMs: 4940.0,+ endMs: 5280.0,+ timestampMs: 5110.0,+ confidence: null,+ },+ {+ text: ' clutch',+ startMs: 5280.0,+ endMs: 5580.0,+ timestampMs: 5430.0,+ confidence: null,+ },+ {+ text: ' for',+ startMs: 5580.0,+ endMs: 5740.0,+ timestampMs: 5660.0,+ confidence: null,+ },+ {+ text: ' the',+ startMs: 5740.0,+ endMs: 6120.0,+ timestampMs: 5930.0,+ confidence: null,+ },+ {+ text: ' visuals.',+ startMs: 6120.0,+ endMs: 6720.0,+ timestampMs: 6420.0,+ confidence: null,+ },+ {+ text: ' Today,',+ startMs: 7040.0,+ endMs: 7300.0,+ timestampMs: 7170.0,+ confidence: null,+ },+ {+ text: " let's",+ startMs: 7300.0,+ endMs: 7520.0,+ timestampMs: 7410.0,+ confidence: null,+ },+ {+ text: ' talk',+ startMs: 7520.0,+ endMs: 7720.0,+ timestampMs: 7620.0,+ confidence: null,+ },+ {+ text: ' about',+ startMs: 7720.0,+ endMs: 7940.0,+ timestampMs: 7830.0,+ confidence: null,+ },+ {+ text: ' how',+ startMs: 7940.0,+ endMs: 8100.0,+ timestampMs: 8020.0,+ confidence: null,+ },+ {+ text: ' you',+ startMs: 8100.0,+ endMs: 8240.0,+ timestampMs: 8170.0,+ confidence: null,+ },+ {+ text: ' can',+ startMs: 8240.0,+ endMs: 8240.0,+ timestampMs: 8240.0,+ confidence: null,+ },+ {+ text: ' program',+ startMs: 8580.0,+ endMs: 8940.0,+ timestampMs: 8760.0,+ confidence: null,+ },+ {+ text: ' lights',+ startMs: 8940.0,+ endMs: 9320.0,+ timestampMs: 9130.0,+ confidence: null,+ },+ {+ text: ' with',+ startMs: 9320.0,+ endMs: 9840.0,+ timestampMs: 9580.0,+ confidence: null,+ },+ {+ text: ' agents.',+ startMs: 9840.0,+ endMs: 11300.0,+ timestampMs: 10570.0,+ confidence: null,+ },+ {+ text: ' You',+ startMs: 11660.0,+ endMs: 11840.0,+ timestampMs: 11750.0,+ confidence: null,+ },+ {+ text: ' need',+ startMs: 11840.0,+ endMs: 12080.0,+ timestampMs: 11960.0,+ confidence: null,+ },+ {+ text: ' any',+ startMs: 12080.0,+ endMs: 12420.0,+ timestampMs: 12250.0,+ confidence: null,+ },+ {+ text: ' device',+ startMs: 12420.0,+ endMs: 12660.0,+ timestampMs: 12540.0,+ confidence: null,+ },+ {+ text: ' that',+ startMs: 12660.0,+ endMs: 12940.0,+ timestampMs: 12800.0,+ confidence: null,+ },+ {+ text: ' speaks',+ startMs: 12940.0,+ endMs: 13220.0,+ timestampMs: 13080.0,+ confidence: null,+ },+ {+ text: ' the',+ startMs: 13220.0,+ endMs: 13480.0,+ timestampMs: 13350.0,+ confidence: null,+ },+ {+ text: ' DMX',+ startMs: 13480.0,+ endMs: 13680.0,+ timestampMs: 13580.0,+ confidence: null,+ },+ {+ text: ' protocol.',+ startMs: 13940.0,+ endMs: 14440.0,+ timestampMs: 14190.0,+ confidence: null,+ },+ {+ text: ' To',+ startMs: 14440.0,+ endMs: 14680.0,+ timestampMs: 14560.0,+ confidence: null,+ },+ {+ text: ' connect',+ startMs: 14680.0,+ endMs: 14820.0,+ timestampMs: 14750.0,+ confidence: null,+ },+ {+ text: ' it',+ startMs: 14820.0,+ endMs: 14940.0,+ timestampMs: 14880.0,+ confidence: null,+ },+ {+ text: ' to',+ startMs: 14940.0,+ endMs: 15040.0,+ timestampMs: 14990.0,+ confidence: null,+ },+ {+ text: ' your',+ startMs: 15040.0,+ endMs: 15360.0,+ timestampMs: 15200.0,+ confidence: null,+ },+ {+ text: ' computer,',+ startMs: 15360.0,+ endMs: 15660.0,+ timestampMs: 15510.0,+ confidence: null,+ },+ {+ text: ' you',+ startMs: 15660.0,+ endMs: 15860.0,+ timestampMs: 15760.0,+ confidence: null,+ },+ {+ text: ' need',+ startMs: 15860.0,+ endMs: 16080.0,+ timestampMs: 15970.0,+ confidence: null,+ },+ {+ text: ' an',+ startMs: 16080.0,+ endMs: 16160.0,+ timestampMs: 16120.0,+ confidence: null,+ },+ {+ text: ' Enttec',+ startMs: 16400.0,+ endMs: 17220.0,+ timestampMs: 16810.0,+ confidence: null,+ },+ {+ text: ' DMX',+ startMs: 17220.0,+ endMs: 17940.0,+ timestampMs: 17580.0,+ confidence: null,+ },+ {+ text: ' USB',+ startMs: 17940.0,+ endMs: 18320.0,+ timestampMs: 18130.0,+ confidence: null,+ },+ {+ text: ' Pro',+ startMs: 18320.0,+ endMs: 18840.0,+ timestampMs: 18580.0,+ confidence: null,+ },+ {+ text: ' Interface.',+ startMs: 18840.0,+ endMs: 19500.0,+ timestampMs: 19170.0,+ confidence: null,+ },+ {+ text: ' To',+ startMs: 19780.0,+ endMs: 20060.0,+ timestampMs: 19920.0,+ confidence: null,+ },+ {+ text: ' connect',+ startMs: 20060.0,+ endMs: 20460.0,+ timestampMs: 20260.0,+ confidence: null,+ },+ {+ text: ' multiple',+ startMs: 20460.0,+ endMs: 20860.0,+ timestampMs: 20660.0,+ confidence: null,+ },+ {+ text: ' devices,',+ startMs: 20860.0,+ endMs: 21120.0,+ timestampMs: 20990.0,+ confidence: null,+ },+ {+ text: ' you',+ startMs: 21120.0,+ endMs: 21120.0,+ timestampMs: 21120.0,+ confidence: null,+ },+ {+ text: ' directly',+ startMs: 21560.0,+ endMs: 21840.0,+ timestampMs: 21700.0,+ confidence: null,+ },+ {+ text: ' daisy-chain',+ startMs: 21840.0,+ endMs: 22420.0,+ timestampMs: 22130.0,+ confidence: null,+ },+ {+ text: ' them',+ startMs: 22420.0,+ endMs: 22800.0,+ timestampMs: 22610.0,+ confidence: null,+ },+ {+ text: ' using',+ startMs: 22800.0,+ endMs: 23100.0,+ timestampMs: 22950.0,+ confidence: null,+ },+ {+ text: ' DMX',+ startMs: 23100.0,+ endMs: 23720.0,+ timestampMs: 23410.0,+ confidence: null,+ },+ {+ text: ' cables.',+ startMs: 23720.0,+ endMs: 24520.0,+ timestampMs: 24120.0,+ confidence: null,+ },+ {+ text: ' At',+ startMs: 24600.0,+ endMs: 24700.0,+ timestampMs: 24650.0,+ confidence: null,+ },+ {+ text: ' the',+ startMs: 24700.0,+ endMs: 24880.0,+ timestampMs: 24790.0,+ confidence: null,+ },+ {+ text: ' end',+ startMs: 24880.0,+ endMs: 24980.0,+ timestampMs: 24930.0,+ confidence: null,+ },+ {+ text: ' of',+ startMs: 24980.0,+ endMs: 25100.0,+ timestampMs: 25040.0,+ confidence: null,+ },+ {+ text: ' your',+ startMs: 25100.0,+ endMs: 25300.0,+ timestampMs: 25200.0,+ confidence: null,+ },+ {+ text: ' daisy',+ startMs: 25300.0,+ endMs: 25680.0,+ timestampMs: 25490.0,+ confidence: null,+ },+ {+ text: ' chain,',+ startMs: 25720.0,+ endMs: 25780.0,+ timestampMs: 25750.0,+ confidence: null,+ },+ {+ text: ' you',+ startMs: 25920.0,+ endMs: 26120.0,+ timestampMs: 26020.0,+ confidence: null,+ },+ {+ text: ' add',+ startMs: 26120.0,+ endMs: 26460.0,+ timestampMs: 26290.0,+ confidence: null,+ },+ {+ text: ' this',+ startMs: 26460.0,+ endMs: 26820.0,+ timestampMs: 26640.0,+ confidence: null,+ },+ {+ text: ' -',+ startMs: 26820.0,+ endMs: 26820.0,+ timestampMs: 26820.0,+ confidence: null,+ },+ {+ text: ' a',+ startMs: 26820.0,+ endMs: 27160.0,+ timestampMs: 26990.0,+ confidence: null,+ },+ {+ text: ' DMX',+ startMs: 27160.0,+ endMs: 27720.0,+ timestampMs: 27440.0,+ confidence: null,+ },+ {+ text: ' terminator.',+ startMs: 27720.0,+ endMs: 28420.0,+ timestampMs: 28070.0,+ confidence: null,+ },+ {+ text: ' Make',+ startMs: 28700.0,+ endMs: 28860.0,+ timestampMs: 28780.0,+ confidence: null,+ },+ {+ text: ' sure',+ startMs: 28860.0,+ endMs: 29020.0,+ timestampMs: 28940.0,+ confidence: null,+ },+ {+ text: ' that',+ startMs: 29020.0,+ endMs: 29220.0,+ timestampMs: 29120.0,+ confidence: null,+ },+ {+ text: ' each',+ startMs: 29220.0,+ endMs: 29560.0,+ timestampMs: 29390.0,+ confidence: null,+ },+ {+ text: ' device',+ startMs: 29560.0,+ endMs: 29840.0,+ timestampMs: 29700.0,+ confidence: null,+ },+ {+ text: ' has',+ startMs: 29840.0,+ endMs: 30000,+ timestampMs: 29920.0,+ confidence: null,+ },+ {+ text: ' a',+ startMs: 30000,+ endMs: 30380.0,+ timestampMs: 30190.0,+ confidence: null,+ },+ {+ text: ' unique',+ startMs: 30380.0,+ endMs: 30760.0,+ timestampMs: 30570.0,+ confidence: null,+ },+ {+ text: ' DMX',+ startMs: 30760.0,+ endMs: 31280.0,+ timestampMs: 31020.0,+ confidence: null,+ },+ {+ text: ' address',+ startMs: 31280.0,+ endMs: 31540.0,+ timestampMs: 31410.0,+ confidence: null,+ },+ {+ text: ' so',+ startMs: 31540.0,+ endMs: 31680.0,+ timestampMs: 31610.0,+ confidence: null,+ },+ {+ text: ' they',+ startMs: 31720.0,+ endMs: 31840.0,+ timestampMs: 31780.0,+ confidence: null,+ },+ {+ text: " don't",+ startMs: 31940.0,+ endMs: 32500.0,+ timestampMs: 32220.0,+ confidence: null,+ },+ {+ text: ' conflict.',+ startMs: 32500.0,+ endMs: 33220.0,+ timestampMs: 32860.0,+ confidence: null,+ },+ {+ text: ' Once',+ startMs: 33520.0,+ endMs: 33740.0,+ timestampMs: 33630.0,+ confidence: null,+ },+ {+ text: ' that',+ startMs: 33740.0,+ endMs: 33880.0,+ timestampMs: 33810.0,+ confidence: null,+ },+ {+ text: ' is',+ startMs: 33880.0,+ endMs: 34120.0,+ timestampMs: 34000.0,+ confidence: null,+ },+ {+ text: ' setup,',+ startMs: 34120.0,+ endMs: 34480.0,+ timestampMs: 34300.0,+ confidence: null,+ },+ {+ text: ' you',+ startMs: 34480.0,+ endMs: 34600.0,+ timestampMs: 34540.0,+ confidence: null,+ },+ {+ text: ' would',+ startMs: 34600.0,+ endMs: 34920.0,+ timestampMs: 34760.0,+ confidence: null,+ },+ {+ text: ' normally',+ startMs: 34920.0,+ endMs: 35280.0,+ timestampMs: 35100.0,+ confidence: null,+ },+ {+ text: ' control',+ startMs: 35280.0,+ endMs: 35420.0,+ timestampMs: 35350.0,+ confidence: null,+ },+ {+ text: ' it',+ startMs: 35420.0,+ endMs: 35600.0,+ timestampMs: 35510.0,+ confidence: null,+ },+ {+ text: ' using',+ startMs: 35600.0,+ endMs: 35760.0,+ timestampMs: 35680.0,+ confidence: null,+ },+ {+ text: ' a',+ startMs: 35760.0,+ endMs: 36040.0,+ timestampMs: 35900.0,+ confidence: null,+ },+ {+ text: ' program',+ startMs: 36040.0,+ endMs: 36380.0,+ timestampMs: 36210.0,+ confidence: null,+ },+ {+ text: ' like',+ startMs: 36380.0,+ endMs: 36740.0,+ timestampMs: 36560.0,+ confidence: null,+ },+ {+ text: ' QLC+,',+ startMs: 36740.0,+ endMs: 37640.0,+ timestampMs: 37190.0,+ confidence: null,+ },+ {+ text: ' BUT',+ startMs: 38420.0,+ endMs: 38600.0,+ timestampMs: 38510.0,+ confidence: null,+ },+ {+ text: ' here',+ startMs: 38600.0,+ endMs: 38840.0,+ timestampMs: 38720.0,+ confidence: null,+ },+ {+ text: ' comes',+ startMs: 38840.0,+ endMs: 39120.0,+ timestampMs: 38980.0,+ confidence: null,+ },+ {+ text: ' the',+ startMs: 39120.0,+ endMs: 39740.0,+ timestampMs: 39430.0,+ confidence: null,+ },+ {+ text: ' 100x',+ startMs: 39740.0,+ endMs: 40320.0,+ timestampMs: 40030.0,+ confidence: null,+ },+ {+ text: ' speedup.',+ startMs: 40320.0,+ endMs: 41080.0,+ timestampMs: 40700.0,+ confidence: null,+ },+ {+ text: ' Use',+ startMs: 41260.0,+ endMs: 41500.0,+ timestampMs: 41380.0,+ confidence: null,+ },+ {+ text: ' an',+ startMs: 41500.0,+ endMs: 41740.0,+ timestampMs: 41620.0,+ confidence: null,+ },+ {+ text: ' agent',+ startMs: 41740.0,+ endMs: 42000,+ timestampMs: 41870.0,+ confidence: null,+ },+ {+ text: ' to',+ startMs: 42000,+ endMs: 42400.0,+ timestampMs: 42200.0,+ confidence: null,+ },+ {+ text: ' implement',+ startMs: 42400.0,+ endMs: 42660.0,+ timestampMs: 42530.0,+ confidence: null,+ },+ {+ text: ' the',+ startMs: 42660.0,+ endMs: 42940.0,+ timestampMs: 42800.0,+ confidence: null,+ },+ {+ text: ' DMX',+ startMs: 42940.0,+ endMs: 43500.0,+ timestampMs: 43220.0,+ confidence: null,+ },+ {+ text: ' protocol',+ startMs: 43500.0,+ endMs: 43800.0,+ timestampMs: 43650.0,+ confidence: null,+ },+ {+ text: ' via',+ startMs: 43800.0,+ endMs: 44120.0,+ timestampMs: 43960.0,+ confidence: null,+ },+ {+ text: ' Web',+ startMs: 44120.0,+ endMs: 44440.0,+ timestampMs: 44280.0,+ confidence: null,+ },+ {+ text: ' Serial',+ startMs: 44440.0,+ endMs: 44640.0,+ timestampMs: 44540.0,+ confidence: null,+ },+ {+ text: ' and',+ startMs: 44900.0,+ endMs: 45100.0,+ timestampMs: 45000.0,+ confidence: null,+ },+ {+ text: ' now',+ startMs: 45100.0,+ endMs: 45260.0,+ timestampMs: 45180.0,+ confidence: null,+ },+ {+ text: ' you',+ startMs: 45260.0,+ endMs: 45420.0,+ timestampMs: 45340.0,+ confidence: null,+ },+ {+ text: ' can',+ startMs: 45420.0,+ endMs: 45680.0,+ timestampMs: 45550.0,+ confidence: null,+ },+ {+ text: ' control',+ startMs: 45740.0,+ endMs: 45800.0,+ timestampMs: 45770.0,+ confidence: null,+ },+ {+ text: ' your',+ startMs: 45940.0,+ endMs: 46120.0,+ timestampMs: 46030.0,+ confidence: null,+ },+ {+ text: ' lights',+ startMs: 46120.0,+ endMs: 46580.0,+ timestampMs: 46350.0,+ confidence: null,+ },+ {+ text: ' using',+ startMs: 46580.0,+ endMs: 47140.0,+ timestampMs: 46860.0,+ confidence: null,+ },+ {+ text: ' JavaScript.',+ startMs: 47140.0,+ endMs: 47960.0,+ timestampMs: 47550.0,+ confidence: null,+ },+ {+ text: ' I',+ startMs: 48280.0,+ endMs: 48400.0,+ timestampMs: 48340.0,+ confidence: null,+ },+ {+ text: ' hooked',+ startMs: 48400.0,+ endMs: 48540.0,+ timestampMs: 48470.0,+ confidence: null,+ },+ {+ text: ' it',+ startMs: 48540.0,+ endMs: 48660.0,+ timestampMs: 48600.0,+ confidence: null,+ },+ {+ text: ' up',+ startMs: 48660.0,+ endMs: 48900.0,+ timestampMs: 48780.0,+ confidence: null,+ },+ {+ text: ' to',+ startMs: 48900.0,+ endMs: 49040.0,+ timestampMs: 48970.0,+ confidence: null,+ },+ {+ text: ' Remotion,',+ startMs: 49040.0,+ endMs: 49720.0,+ timestampMs: 49380.0,+ confidence: null,+ },+ {+ text: ' so',+ startMs: 49720.0,+ endMs: 49840.0,+ timestampMs: 49780.0,+ confidence: null,+ },+ {+ text: ' that',+ startMs: 49840.0,+ endMs: 49960.0,+ timestampMs: 49900.0,+ confidence: null,+ },+ {+ text: ' when',+ startMs: 49960.0,+ endMs: 50080.0,+ timestampMs: 50020.0,+ confidence: null,+ },+ {+ text: ' I',+ startMs: 50080.0,+ endMs: 50300.0,+ timestampMs: 50190.0,+ confidence: null,+ },+ {+ text: ' press',+ startMs: 50300.0,+ endMs: 50600.0,+ timestampMs: 50450.0,+ confidence: null,+ },+ {+ text: ' play,',+ startMs: 50600.0,+ endMs: 50880.0,+ timestampMs: 50740.0,+ confidence: null,+ },+ {+ text: ' it',+ startMs: 50880.0,+ endMs: 51080.0,+ timestampMs: 50980.0,+ confidence: null,+ },+ {+ text: ' plays',+ startMs: 51080.0,+ endMs: 51200.0,+ timestampMs: 51140.0,+ confidence: null,+ },+ {+ text: ' a',+ startMs: 51280.0,+ endMs: 51400.0,+ timestampMs: 51340.0,+ confidence: null,+ },+ {+ text: ' prerecorded',+ startMs: 51500.0,+ endMs: 52220.0,+ timestampMs: 51860.0,+ confidence: null,+ },+ {+ text: ' light',+ startMs: 52220.0,+ endMs: 52740.0,+ timestampMs: 52480.0,+ confidence: null,+ },+ {+ text: ' sequence.',+ startMs: 52740.0,+ endMs: 53240.0,+ timestampMs: 52990.0,+ confidence: null,+ },+ {+ text: ' I',+ startMs: 53480.0,+ endMs: 53640.0,+ timestampMs: 53560.0,+ confidence: null,+ },+ {+ text: ' even',+ startMs: 53640.0,+ endMs: 53820.0,+ timestampMs: 53730.0,+ confidence: null,+ },+ {+ text: ' made',+ startMs: 53820.0,+ endMs: 53980.0,+ timestampMs: 53900.0,+ confidence: null,+ },+ {+ text: ' my',+ startMs: 53980.0,+ endMs: 54260.0,+ timestampMs: 54120.0,+ confidence: null,+ },+ {+ text: ' own',+ startMs: 54260.0,+ endMs: 54660.0,+ timestampMs: 54460.0,+ confidence: null,+ },+ {+ text: ' recorder',+ startMs: 54660.0,+ endMs: 55100.0,+ timestampMs: 54880.0,+ confidence: null,+ },+ {+ text: ' inside',+ startMs: 55100.0,+ endMs: 55300.0,+ timestampMs: 55200.0,+ confidence: null,+ },+ {+ text: ' Remotion,',+ startMs: 55300.0,+ endMs: 55800.0,+ timestampMs: 55550.0,+ confidence: null,+ },+ {+ text: ' which',+ startMs: 55800.0,+ endMs: 56040.0,+ timestampMs: 55920.0,+ confidence: null,+ },+ {+ text: ' allows',+ startMs: 56040.0,+ endMs: 56240.0,+ timestampMs: 56140.0,+ confidence: null,+ },+ {+ text: ' me',+ startMs: 56240.0,+ endMs: 56400.0,+ timestampMs: 56320.0,+ confidence: null,+ },+ {+ text: ' to',+ startMs: 56400.0,+ endMs: 56680.0,+ timestampMs: 56540.0,+ confidence: null,+ },+ {+ text: ' jam',+ startMs: 56680.0,+ endMs: 56680.0,+ timestampMs: 56680.0,+ confidence: null,+ },+ {+ text: ' and',+ startMs: 56920.0,+ endMs: 57220.0,+ timestampMs: 57070.0,+ confidence: null,+ },+ {+ text: ' record',+ startMs: 57220.0,+ endMs: 57520.0,+ timestampMs: 57370.0,+ confidence: null,+ },+ {+ text: ' light',+ startMs: 57520.0,+ endMs: 58080.0,+ timestampMs: 57800.0,+ confidence: null,+ },+ {+ text: ' sequences.',+ startMs: 58080.0,+ endMs: 58700.0,+ timestampMs: 58390.0,+ confidence: null,+ },+ {+ text: ' Then,',+ startMs: 59020.0,+ endMs: 59220.0,+ timestampMs: 59120.0,+ confidence: null,+ },+ {+ text: ' to',+ startMs: 59220.0,+ endMs: 59440.0,+ timestampMs: 59330.0,+ confidence: null,+ },+ {+ text: ' play',+ startMs: 59440.0,+ endMs: 59560.0,+ timestampMs: 59500.0,+ confidence: null,+ },+ {+ text: ' it',+ startMs: 59560.0,+ endMs: 59740.0,+ timestampMs: 59650.0,+ confidence: null,+ },+ {+ text: ' during',+ startMs: 59740.0,+ endMs: 59960.0,+ timestampMs: 59850.0,+ confidence: null,+ },+ {+ text: ' my',+ startMs: 59960.0,+ endMs: 60460.0,+ timestampMs: 60210.0,+ confidence: null,+ },+ {+ text: ' 75',+ startMs: 60460.0,+ endMs: 60760.0,+ timestampMs: 60610.0,+ confidence: null,+ },+ {+ text: ' minute',+ startMs: 60760.0,+ endMs: 61020.0,+ timestampMs: 60890.0,+ confidence: null,+ },+ {+ text: ' DJ',+ startMs: 61020.0,+ endMs: 61440.0,+ timestampMs: 61230.0,+ confidence: null,+ },+ {+ text: ' set,',+ startMs: 61440.0,+ endMs: 61660.0,+ timestampMs: 61550.0,+ confidence: null,+ },+ {+ text: ' I',+ startMs: 61660.0,+ endMs: 61920.0,+ timestampMs: 61790.0,+ confidence: null,+ },+ {+ text: ' simply',+ startMs: 61920.0,+ endMs: 62140.0,+ timestampMs: 62030.0,+ confidence: null,+ },+ {+ text: ' hit',+ startMs: 62140.0,+ endMs: 62440.0,+ timestampMs: 62290.0,+ confidence: null,+ },+ {+ text: ' play',+ startMs: 62440.0,+ endMs: 62660.0,+ timestampMs: 62550.0,+ confidence: null,+ },+ {+ text: ' in',+ startMs: 62660.0,+ endMs: 62840.0,+ timestampMs: 62750.0,+ confidence: null,+ },+ {+ text: ' Remotion.',+ startMs: 62840.0,+ endMs: 63680.0,+ timestampMs: 63260.0,+ confidence: null,+ },+ {+ text: ' Aaand',+ startMs: 64220.0,+ endMs: 64460.0,+ timestampMs: 64340.0,+ confidence: null,+ },+ {+ text: " that's",+ startMs: 64460.0,+ endMs: 64720.0,+ timestampMs: 64590.0,+ confidence: null,+ },+ {+ text: ' how',+ startMs: 64780.0,+ endMs: 64800.0,+ timestampMs: 64790.0,+ confidence: null,+ },+ ]}+ />+);++export const LightsCaptions = Interactive.create({+ Component: LightsCaptionsInner,+ layout: 'absolute-fill',+});diff --git a/packages/jonnys-videos/src/disco-light-show/lights/LightsFootage.tsx b/packages/jonnys-videos/src/disco-light-show/lights/LightsFootage.tsxnew file mode 100644index 0000000000..a0cc050a1f--- /dev/null+++ b/packages/jonnys-videos/src/disco-light-show/lights/LightsFootage.tsx@@ -0,0 +1,40 @@+import {Video} from '@remotion/media';+import {Interactive} from 'remotion';++const LightsFootageInner = ({+ src,+ footageRate,+}: {+ readonly src: string;+ readonly footageRate: number;+}) => (+ <Video+ name="Light-show footage"+ src={src}+ muted+ loop+ playbackRate={footageRate}+ style={{+ position: 'absolute',+ left: 54,+ top: 416,+ width: 972,+ height: 546.75,+ outline: '2px solid #2684ff',+ }}+ />+);++export const LightsFootage = Interactive.create({+ Component: LightsFootageInner,+ layout: 'absolute-fill',+ schema: {+ src: {type: 'string', default: '', description: 'Footage URL'},+ footageRate: {+ type: 'number',+ hiddenFromList: false,+ default: 1,+ description: 'Footage speed',+ },+ },+});diff --git a/packages/jonnys-videos/src/disco-light-show/lights/README.md b/packages/jonnys-videos/src/disco-light-show/lights/README.mdnew file mode 100644index 0000000000..e6b6fdb230--- /dev/null+++ b/packages/jonnys-videos/src/disco-light-show/lights/README.md@@ -0,0 +1,41 @@+# Animating the lights++Open **DiscoLightShow → AnimatingTheLights → AnimateTheLights** in Studio.+The 1080 × 1920, 30 fps draft lasts 1,947 frames (64.9 seconds).++The narration follows the current `../script-lights-draft.md`, including its+loop-back ending. Generated with ElevenLabs v4, Derek – Fun & Energetic+(`Q0Et7LOU7VpeoeCRQAVS`), first take from flow+`3OSn8zFOqJQ2uiuNbWS8`, generation `K0REcNWqTNptDinnoEA3`.++`LightsCaptions.tsx` contains editable, word-timed captions. Timings were+transcribed from this exact take, then matched to all 187 script tokens so+names such as ENTTEC, DMX, QLC+, and Web Serial retain the supplied spelling.+Narration and captions share one sequence; all footage is muted.+The music track reuses Master's “Kein Kokain” instrumental at the same 7%+volume and source offset, with a short fade in and a fade out at the end.++The visual track contains only the clean solo footage, looping continuously+through the narration. Its square corners and 2px blue outline match the+TextBehindVideo stack. The existing dark paper background remains underneath.+There are no added titles, logos, diagrams, code cards, or recorder graphics.++The friends-dancing shots and the original clip’s opening with background+guests are excluded. The solo excerpt shows only the presenter and equipment.++## Assets added++- Solo footage: `solo-dmx-light-show-8c06c9856456.mp4`+ - Trim: 2.25–6.00 seconds of the existing light-show recording, audio removed.+ - SHA-256: `8c06c9856456ed94764f64ee98ef857b6566329c0a69d6c1448d17955b399284`++- Narration: `elevenlabs-lights-web-serial-57e3c1ea2341.mp3`+ - SHA-256: `57e3c1ea23418aa1401097f0d085f356dde50be4ba4b2170da678ebb45a22611`++All are hosted at `https://remotion.media/jonnys-videos/disco-light-show/` and+verified against the source bytes. No new long video recording was uploaded.++## Protocol wording++The narration and captions use **Web Serial**, matching+`navigator.serial.requestPort()` in `birthday-bash/src/enttec.ts`.diff --git a/packages/jonnys-videos/src/disco-light-show/lights/voiceover.ts b/packages/jonnys-videos/src/disco-light-show/lights/voiceover.tsnew file mode 100644index 0000000000..7900451ee4--- /dev/null+++ b/packages/jonnys-videos/src/disco-light-show/lights/voiceover.ts@@ -0,0 +1,6 @@+import {asset} from '../assets';++export const LIGHTS_VOICEOVER_SRC = asset(+ 'elevenlabs-lights-web-serial-57e3c1ea2341.mp3',+);+export const LIGHTS_DURATION_IN_FRAMES = 1947;diff --git a/packages/jonnys-videos/src/disco-light-show/script-lights-draft.md b/packages/jonnys-videos/src/disco-light-show/script-lights-draft.mdindex dc324acab0..bc890734d7 100644--- a/packages/jonnys-videos/src/disco-light-show/script-lights-draft.md+++ b/packages/jonnys-videos/src/disco-light-show/script-lights-draft.md@@ -1,15 +1,19 @@# Animating the lights — script draft-I vibe-coded my own DJ show. Claude helped me animate the lights, and my visuals were done in Remotion.+I vibe-coded my own DJ show. Claude helped me animate the lights, and Remotion came in clutch for the visuals.-Each light has a bunch of controls: color, brightness, and, for these moving heads, where it points. They're controlled through DMX, which is basically sending numbers to the lights.+Today, let's talk about how you can program lights with agents.+You need any device that speaks the DMX protocol.-So I made those numbers part of my Remotion timeline.+To connect it to your computer, you need an Enttec DMX USB Pro Interface.+To connect multiple devices, you directly daisy-chain them using DMX cables.-Now a beat can trigger a flash, a chorus can change the colors, and the light bar can chase from left to right.+At the end of your daisy chain, you add this - a DMX terminator.+Make sure that each device has a unique DMX address so they don't conflict.-I can ask Claude for a pattern, play it back, and adjust the timing until it feels right. For specific hits, I can tap along to the song and save those moments.+Once that is setup, you would normally control it using a program like QLC+, BUT here comes the 100x speedup. Use an agent to implement the DMX protocol via Web Serial and now you can control your lights using JavaScript.-Then I connect the lights through a USB adapter. As the timeline plays, my browser sends out the values for each frame, keeping the lights and visuals together.+I hooked it up to Remotion, so that when I press play, it plays a prerecorded light sequence.+I even made my own recorder inside Remotion, which allows me to jam and record light sequences.-The fun part is combining simple patterns. Suddenly, my birthday party has its own programmed light show.+Then, to play it during my 75 minute DJ set, I simply hit play in Remotion. Aaand that's how