🎥 Make videos programmatically with React
import type {Caption} from '@remotion/captions';
export const closingThoughtsCaptions: Caption[] = [
{
text: 'So',
startMs: 840,
endMs: 1040,
timestampMs: 940,
confidence: null,
},
{
text: ' far',
startMs: 1040,
endMs: 1180,
timestampMs: 1110,
confidence: null,
},
{
text: " I've",
startMs: 1180,
endMs: 1440,
timestampMs: 1310,
confidence: null,
},
{
text: ' only',
startMs: 1440,
endMs: 1620,
timestampMs: 1530,
confidence: null,
},
{
text: ' done',
startMs: 1620,
endMs: 1920,
timestampMs: 1770,
confidence: null,
},
{
text: ' about',
startMs: 1920,
endMs: 2280,
timestampMs: 2100,
confidence: null,
},
{
text: ' four',
startMs: 2280,
endMs: 2560,
timestampMs: 2420,
confidence: null,
},
{
text: ' rides',
startMs: 2560,
endMs: 2740,
timestampMs: 2650,
confidence: null,
},
{
text: ' with',
startMs: 2740,
endMs: 2980,
timestampMs: 2860,
confidence: null,
},
{
text: ' them',
startMs: 2980,
endMs: 3140,
timestampMs: 3060,
confidence: null,
pageBreakAfter: true,
},
{
text: ' and',
startMs: 3140,
endMs: 3340,
timestampMs: 3240,
confidence: null,
},
{
text: ' they',
startMs: 3340,
endMs: 3500,
timestampMs: 3420,
confidence: null,
},
{
text: ' have',
startMs: 3500,
endMs: 3680,
timestampMs: 3590,
confidence: null,
},
{
text: ' been',
startMs: 3680,
endMs: 4080,
timestampMs: 3880,
confidence: null,
},
{
text: ' rather',
startMs: 4080,
endMs: 4480,
timestampMs: 4280,
confidence: null,
},
{
text: ' slow.',
startMs: 4480,
endMs: 5020,
timestampMs: 4750,
confidence: null,
pageBreakAfter: true,
},
{
text: ' The',
startMs: 5180,
endMs: 5400,
timestampMs: 5290,
confidence: null,
},
{
text: ' first',
startMs: 5400,
endMs: 5600,
timestampMs: 5500,
confidence: null,
},
{
text: ' one',
startMs: 5600,
endMs: 5760,
timestampMs: 5680,
confidence: null,
},
{
text: ' was',
startMs: 5760,
endMs: 6020,
timestampMs: 5890,
confidence: null,
},
{
text: ' only',
startMs: 6020,
endMs: 6280,
timestampMs: 6150,
confidence: null,
},
{
text: ' like',
startMs: 6280,
endMs: 6680,
timestampMs: 6480,
confidence: null,
},
{
text: ' 4',
startMs: 6680,
endMs: 7040,
timestampMs: 6860,
confidence: null,
},
{
text: ' km',
startMs: 7040,
endMs: 7460,
timestampMs: 7250,
confidence: null,
},
{
text: ' an',
startMs: 7460,
endMs: 7680,
timestampMs: 7570,
confidence: null,
},
{
text: ' hour,',
startMs: 7680,
endMs: 8320,
timestampMs: 8000,
confidence: null,
pageBreakAfter: true,
},
{
text: ' which',
startMs: 8420,
endMs: 8600,
timestampMs: 8510,
confidence: null,
},
{
text: ' is',
startMs: 8600,
endMs: 8740,
timestampMs: 8670,
confidence: null,
},
{
text: ' like',
startMs: 8740,
endMs: 9060,
timestampMs: 8900,
confidence: null,
},
{
text: ' slower',
startMs: 9060,
endMs: 9400,
timestampMs: 9230,
confidence: null,
},
{
text: ' than',
startMs: 9400,
endMs: 9800,
timestampMs: 9600,
confidence: null,
},
{
text: ' walking,',
startMs: 9800,
endMs: 10740,
timestampMs: 10270,
confidence: null,
pageBreakAfter: true,
},
{
text: ' because',
startMs: 11360,
endMs: 11560,
timestampMs: 11460,
confidence: null,
},
{
text: ' I',
startMs: 11580,
endMs: 11720,
timestampMs: 11650,
confidence: null,
},
{
text: ' was',
startMs: 11720,
endMs: 12020,
timestampMs: 11870,
confidence: null,
},
{
text: ' so',
startMs: 12020,
endMs: 12740,
timestampMs: 12380,
confidence: null,
},
{
text: ' afraid',
startMs: 12740,
endMs: 13280,
timestampMs: 13010,
confidence: null,
},
{
text: ' whenever',
startMs: 13280,
endMs: 13740,
timestampMs: 13510,
confidence: null,
},
{
text: ' there',
startMs: 13740,
endMs: 14080,
timestampMs: 13910,
confidence: null,
},
{
text: ' was',
startMs: 14080,
endMs: 14440,
timestampMs: 14260,
confidence: null,
pageBreakAfter: true,
},
{
text: ' a',
startMs: 14440,
endMs: 15040,
timestampMs: 14740,
confidence: null,
},
{
text: ' decline.',
startMs: 15040,
endMs: 16700,
timestampMs: 15870,
confidence: null,
pageBreakAfter: true,
},
{
text: ' Now',
startMs: 17000,
endMs: 17320,
timestampMs: 17160,
confidence: null,
},
{
text: ' I',
startMs: 17320,
endMs: 17600,
timestampMs: 17460,
confidence: null,
},
{
text: ' am',
startMs: 17600,
endMs: 18620,
timestampMs: 18110,
confidence: null,
},
{
text: ' up',
startMs: 18620,
endMs: 18840,
timestampMs: 18730,
confidence: null,
},
{
text: ' to',
startMs: 18840,
endMs: 19180,
timestampMs: 19010,
confidence: null,
},
{
text: ' speed',
startMs: 19180,
endMs: 19400,
timestampMs: 19290,
confidence: null,
},
{
text: ' a',
startMs: 19400,
endMs: 19620,
timestampMs: 19510,
confidence: null,
},
{
text: ' bit',
startMs: 19620,
endMs: 19900,
timestampMs: 19760,
confidence: null,
pageBreakAfter: true,
},
{
text: ' with',
startMs: 19900,
endMs: 20300,
timestampMs: 20100,
confidence: null,
},
{
text: ' about',
startMs: 20300,
endMs: 20660,
timestampMs: 20480,
confidence: null,
},
{
text: ' 6',
startMs: 20660,
endMs: 20940,
timestampMs: 20800,
confidence: null,
},
{
text: ' km',
startMs: 20940,
endMs: 21340,
timestampMs: 21140,
confidence: null,
},
{
text: ' an',
startMs: 21360,
endMs: 21740,
timestampMs: 21550,
confidence: null,
},
{
text: ' hour,',
startMs: 21740,
endMs: 22400,
timestampMs: 22070,
confidence: null,
},
{
text: ' but',
startMs: 22940,
endMs: 23140,
timestampMs: 23040,
confidence: null,
pageBreakAfter: true,
},
{
text: ' that',
startMs: 23140,
endMs: 23300,
timestampMs: 23220,
confidence: null,
},
{
text: ' is',
startMs: 23300,
endMs: 23560,
timestampMs: 23430,
confidence: null,
},
{
text: ' still',
startMs: 23560,
endMs: 24000,
timestampMs: 23780,
confidence: null,
},
{
text: ' really',
startMs: 24000,
endMs: 24280,
timestampMs: 24140,
confidence: null,
},
{
text: ' slow',
startMs: 24280,
endMs: 24460,
timestampMs: 24370,
confidence: null,
},
{
text: ' and',
startMs: 24460,
endMs: 24740,
timestampMs: 24600,
confidence: null,
},
{
text: ' barely',
startMs: 24740,
endMs: 25020,
timestampMs: 24880,
confidence: null,
},
{
text: ' faster',
startMs: 25020,
endMs: 25300,
timestampMs: 25160,
confidence: null,
},
{
text: ' than',
startMs: 25320,
endMs: 25560,
timestampMs: 25440,
confidence: null,
pageBreakAfter: true,
},
{
text: ' walking.',
startMs: 25560,
endMs: 26840,
timestampMs: 26200,
confidence: null,
pageBreakAfter: true,
},
{
text: ' I',
startMs: 27240,
endMs: 27340,
timestampMs: 27290,
confidence: null,
},
{
text: ' will',
startMs: 27340,
endMs: 27540,
timestampMs: 27440,
confidence: null,
},
{
text: ' also',
startMs: 27540,
endMs: 27720,
timestampMs: 27630,
confidence: null,
},
{
text: ' get',
startMs: 27720,
endMs: 28480,
timestampMs: 28100,
confidence: null,
},
{
text: ' a',
startMs: 28480,
endMs: 29680,
timestampMs: 29080,
confidence: null,
},
{
text: ' brake',
startMs: 29680,
endMs: 29940,
timestampMs: 29810,
confidence: null,
},
{
text: ' that',
startMs: 29940,
endMs: 30180,
timestampMs: 30060,
confidence: null,
pageBreakAfter: true,
},
{
text: ' I',
startMs: 30180,
endMs: 30360,
timestampMs: 30270,
confidence: null,
},
{
text: ' can',
startMs: 30360,
endMs: 30660,
timestampMs: 30510,
confidence: null,
},
{
text: ' mount',
startMs: 30660,
endMs: 30980,
timestampMs: 30820,
confidence: null,
},
{
text: ' onto',
startMs: 30980,
endMs: 31180,
timestampMs: 31080,
confidence: null,
},
{
text: ' my',
startMs: 31180,
endMs: 31380,
timestampMs: 31280,
confidence: null,
},
{
text: ' shoes',
startMs: 31380,
endMs: 31640,
timestampMs: 31510,
confidence: null,
},
{
text: ' so',
startMs: 31640,
endMs: 31680,
timestampMs: 31660,
confidence: null,
},
{
text: ' I',
startMs: 31680,
endMs: 31800,
timestampMs: 31740,
confidence: null,
},
{
text: ' can',
startMs: 31800,
endMs: 31960,
timestampMs: 31880,
confidence: null,
},
{
text: ' lean',
startMs: 31960,
endMs: 32220,
timestampMs: 32090,
confidence: null,
},
{
text: ' back',
startMs: 32220,
endMs: 32360,
timestampMs: 32290,
confidence: null,
},
{
text: ' a',
startMs: 32360,
endMs: 32540,
timestampMs: 32450,
confidence: null,
},
{
text: ' bit,',
startMs: 32540,
endMs: 32840,
timestampMs: 32690,
confidence: null,
pageBreakAfter: true,
},
{
text: ' then',
startMs: 33220,
endMs: 33500,
timestampMs: 33360,
confidence: null,
},
{
text: ' hopefully',
startMs: 33500,
endMs: 33680,
timestampMs: 33590,
confidence: null,
},
{
text: ' I',
startMs: 33680,
endMs: 33780,
timestampMs: 33730,
confidence: null,
},
{
text: ' will',
startMs: 33780,
endMs: 33940,
timestampMs: 33860,
confidence: null,
},
{
text: ' get',
startMs: 33940,
endMs: 34180,
timestampMs: 34060,
confidence: null,
},
{
text: ' more',
startMs: 34180,
endMs: 34680,
timestampMs: 34430,
confidence: null,
},
{
text: ' comfortable',
startMs: 34680,
endMs: 35360,
timestampMs: 35020,
confidence: null,
},
{
text: ' with',
startMs: 35360,
endMs: 35480,
timestampMs: 35420,
confidence: null,
pageBreakAfter: true,
},
{
text: ' the',
startMs: 35480,
endMs: 35800,
timestampMs: 35640,
confidence: null,
},
{
text: ' time',
startMs: 35800,
endMs: 36000,
timestampMs: 35900,
confidence: null,
},
{
text: ' and',
startMs: 36000,
endMs: 36220,
timestampMs: 36110,
confidence: null,
},
{
text: ' then',
startMs: 36220,
endMs: 36600,
timestampMs: 36410,
confidence: null,
},
{
text: ' also',
startMs: 36600,
endMs: 37700,
timestampMs: 37150,
confidence: null,
},
{
text: ' eventually',
startMs: 37700,
endMs: 38320,
timestampMs: 38010,
confidence: null,
},
{
text: ' get',
startMs: 38320,
endMs: 38480,
timestampMs: 38400,
confidence: null,
pageBreakAfter: true,
},
{
text: ' up',
startMs: 38480,
endMs: 38620,
timestampMs: 38550,
confidence: null,
},
{
text: ' to',
startMs: 38620,
endMs: 38860,
timestampMs: 38740,
confidence: null,
},
{
text: ' speed.',
startMs: 38860,
endMs: 39160,
timestampMs: 39010,
confidence: null,
pageBreakAfter: true,
},
{
text: ' Overall,',
startMs: 39640,
endMs: 39720,
timestampMs: 39680,
confidence: null,
},
{
text: ' these',
startMs: 39900,
endMs: 40040,
timestampMs: 39970,
confidence: null,
},
{
text: ' are',
startMs: 40040,
endMs: 40200,
timestampMs: 40120,
confidence: null,
},
{
text: ' pretty',
startMs: 40200,
endMs: 40500,
timestampMs: 40350,
confidence: null,
},
{
text: ' fun.',
startMs: 40500,
endMs: 40780,
timestampMs: 40640,
confidence: null,
pageBreakAfter: true,
},
{
text: ' I',
startMs: 40880,
endMs: 40980,
timestampMs: 40930,
confidence: null,
},
{
text: ' would',
startMs: 40980,
endMs: 41260,
timestampMs: 41120,
confidence: null,
},
{
text: ' say',
startMs: 41260,
endMs: 41980,
timestampMs: 41620,
confidence: null,
},
{
text: ' you',
startMs: 41960,
endMs: 42180,
timestampMs: 42070,
confidence: null,
},
{
text: ' do',
startMs: 42180,
endMs: 42420,
timestampMs: 42300,
confidence: null,
},
{
text: ' look',
startMs: 42420,
endMs: 43000,
timestampMs: 42710,
confidence: null,
},
{
text: ' super',
startMs: 43000,
endMs: 43400,
timestampMs: 43200,
confidence: null,
},
{
text: ' goofy',
startMs: 43400,
endMs: 43800,
timestampMs: 43600,
confidence: null,
pageBreakAfter: true,
},
{
text: ' if',
startMs: 43800,
endMs: 43960,
timestampMs: 43880,
confidence: null,
},
{
text: " you're",
startMs: 43960,
endMs: 44600,
timestampMs: 44280,
confidence: null,
},
{
text: ' riding',
startMs: 44600,
endMs: 44760,
timestampMs: 44680,
confidence: null,
},
{
text: ' around',
startMs: 45040,
endMs: 45960,
timestampMs: 45500,
confidence: null,
},
{
text: ' your',
startMs: 46340,
endMs: 47160,
timestampMs: 46750,
confidence: null,
pageBreakAfter: true,
},
{
text: ' neighborhood',
startMs: 47160,
endMs: 47600,
timestampMs: 47380,
confidence: null,
},
{
text: ' with',
startMs: 47600,
endMs: 47980,
timestampMs: 47790,
confidence: null,
},
{
text: ' them',
startMs: 47980,
endMs: 49120,
timestampMs: 48550,
confidence: null,
},
{
text: ' and',
startMs: 49120,
endMs: 49400,
timestampMs: 49260,
confidence: null,
},
{
text: ' you',
startMs: 49400,
endMs: 49680,
timestampMs: 49540,
confidence: null,
},
{
text: ' will',
startMs: 49680,
endMs: 49920,
timestampMs: 49800,
confidence: null,
},
{
text: ' get',
startMs: 49920,
endMs: 50040,
timestampMs: 49980,
confidence: null,
},
{
text: ' a',
startMs: 50040,
endMs: 50200,
timestampMs: 50120,
confidence: null,
pageBreakAfter: true,
},
{
text: ' lot',
startMs: 50200,
endMs: 50440,
timestampMs: 50320,
confidence: null,
},
{
text: ' of',
startMs: 50440,
endMs: 50800,
timestampMs: 50620,
confidence: null,
},
{
text: ' stares',
startMs: 50800,
endMs: 51160,
timestampMs: 50980,
confidence: null,
},
{
text: ' and',
startMs: 52020,
endMs: 52800,
timestampMs: 52410,
confidence: null,
pageBreakAfter: true,
},
{
text: ' not',
startMs: 53680,
endMs: 54960,
timestampMs: 54320,
confidence: null,
},
{
text: ' in',
startMs: 54960,
endMs: 55040,
timestampMs: 55000,
confidence: null,
},
{
text: ' a',
startMs: 55040,
endMs: 55160,
timestampMs: 55100,
confidence: null,
},
{
text: ' good',
startMs: 55160,
endMs: 55320,
timestampMs: 55240,
confidence: null,
},
{
text: ' way',
startMs: 55460,
endMs: 56460,
timestampMs: 55960,
confidence: null,
},
{
text: ' but',
startMs: 57240,
endMs: 57980,
timestampMs: 57610,
confidence: null,
pageBreakAfter: true,
},
{
text: ' hey',
startMs: 57980,
endMs: 58380,
timestampMs: 58180,
confidence: null,
},
{
text: ' if',
startMs: 58380,
endMs: 58660,
timestampMs: 58520,
confidence: null,
},
{
text: ' you',
startMs: 58660,
endMs: 59120,
timestampMs: 58890,
confidence: null,
},
{
text: ' are',
startMs: 59120,
endMs: 59260,
timestampMs: 59190,
confidence: null,
},
{
text: ' the',
startMs: 59260,
endMs: 59400,
timestampMs: 59330,
confidence: null,
},
{
text: ' type',
startMs: 59400,
endMs: 59540,
timestampMs: 59470,
confidence: null,
},
{
text: ' of',
startMs: 59540,
endMs: 59960,
timestampMs: 59750,
confidence: null,
},
{
text: ' person',
startMs: 59960,
endMs: 60720,
timestampMs: 60340,
confidence: null,
},
{
text: ' who',
startMs: 60940,
endMs: 62140,
timestampMs: 61540,
confidence: null,
pageBreakAfter: true,
},
{
text: ' who',
startMs: 62540,
endMs: 63160,
timestampMs: 62850,
confidence: null,
},
{
text: ' does',
startMs: 63820,
endMs: 63980,
timestampMs: 63900,
confidence: null,
},
{
text: ' not',
startMs: 63980,
endMs: 64240,
timestampMs: 64110,
confidence: null,
},
{
text: ' take',
startMs: 64240,
endMs: 64360,
timestampMs: 64300,
confidence: null,
},
{
text: ' it',
startMs: 64360,
endMs: 64500,
timestampMs: 64430,
confidence: null,
},
{
text: ' too',
startMs: 64500,
endMs: 64900,
timestampMs: 64700,
confidence: null,
},
{
text: ' seriously',
startMs: 64900,
endMs: 65200,
timestampMs: 65050,
confidence: null,
},
{
text: ' and',
startMs: 65300,
endMs: 65700,
timestampMs: 65500,
confidence: null,
pageBreakAfter: true,
},
{
text: ' is',
startMs: 65700,
endMs: 65960,
timestampMs: 65830,
confidence: null,
},
{
text: ' also',
startMs: 65960,
endMs: 66320,
timestampMs: 66140,
confidence: null,
},
{
text: ' not',
startMs: 66320,
endMs: 67020,
timestampMs: 66670,
confidence: null,
},
{
text: ' afraid',
startMs: 67020,
endMs: 67480,
timestampMs: 67250,
confidence: null,
},
{
text: ' to',
startMs: 67480,
endMs: 68220,
timestampMs: 67850,
confidence: null,
},
{
text: ' make',
startMs: 68220,
endMs: 68380,
timestampMs: 68300,
confidence: null,
},
{
text: ' a',
startMs: 68380,
endMs: 68800,
timestampMs: 68590,
confidence: null,
pageBreakAfter: true,
},
{
text: ' conversation',
startMs: 68800,
endMs: 69160,
timestampMs: 68980,
confidence: null,
},
{
text: ' out',
startMs: 69160,
endMs: 69300,
timestampMs: 69230,
confidence: null,
},
{
text: ' of',
startMs: 69300,
endMs: 69580,
timestampMs: 69440,
confidence: null,
},
{
text: ' it,',
startMs: 69580,
endMs: 70120,
timestampMs: 69850,
confidence: null,
},
{
text: ' then',
startMs: 70680,
endMs: 71100,
timestampMs: 70890,
confidence: null,
},
{
text: ' I',
startMs: 71100,
endMs: 71260,
timestampMs: 71180,
confidence: null,
},
{
text: ' think',
startMs: 71260,
endMs: 71460,
timestampMs: 71360,
confidence: null,
},
{
text: ' this',
startMs: 71460,
endMs: 71660,
timestampMs: 71560,
confidence: null,
},
{
text: ' is',
startMs: 71660,
endMs: 71800,
timestampMs: 71730,
confidence: null,
pageBreakAfter: true,
},
{
text: ' like',
startMs: 71800,
endMs: 72220,
timestampMs: 72010,
confidence: null,
},
{
text: ' actually',
startMs: 72220,
endMs: 72920,
timestampMs: 72570,
confidence: null,
},
{
text: ' an',
startMs: 72920,
endMs: 73440,
timestampMs: 73180,
confidence: null,
},
{
text: ' added',
startMs: 73440,
endMs: 73860,
timestampMs: 73650,
confidence: null,
},
{
text: ' bonus',
startMs: 73860,
endMs: 73940,
timestampMs: 73900,
confidence: null,
},
{
text: ' that',
startMs: 74220,
endMs: 74940,
timestampMs: 74580,
confidence: null,
pageBreakAfter: true,
},
{
text: ' you',
startMs: 74940,
endMs: 75120,
timestampMs: 75030,
confidence: null,
},
{
text: ' get',
startMs: 75120,
endMs: 75300,
timestampMs: 75210,
confidence: null,
},
{
text: ' to',
startMs: 75300,
endMs: 75560,
timestampMs: 75430,
confidence: null,
},
{
text: ' talk',
startMs: 75560,
endMs: 75840,
timestampMs: 75700,
confidence: null,
},
{
text: ' with',
startMs: 75840,
endMs: 76140,
timestampMs: 75990,
confidence: null,
},
{
text: ' other',
startMs: 76140,
endMs: 76500,
timestampMs: 76320,
confidence: null,
},
{
text: ' people',
startMs: 76500,
endMs: 76780,
timestampMs: 76640,
confidence: null,
},
{
text: ' who',
startMs: 76800,
endMs: 77720,
timestampMs: 77260,
confidence: null,
},
{
text: ' look',
startMs: 77720,
endMs: 77880,
timestampMs: 77800,
confidence: null,
pageBreakAfter: true,
},
{
text: ' at',
startMs: 77880,
endMs: 78120,
timestampMs: 78000,
confidence: null,
},
{
text: ' you',
startMs: 78120,
endMs: 78640,
timestampMs: 78380,
confidence: null,
},
{
text: ' curiously.',
startMs: 78640,
endMs: 79140,
timestampMs: 78890,
confidence: null,
pageBreakAfter: true,
},
];
const splitMs = (817 / 30) * 1000;
export const closingThoughtsBeforeCaptions = closingThoughtsCaptions.filter(
(caption) => caption.startMs < splitMs,
);
export const closingThoughtsAfterCaptions: Caption[] = closingThoughtsCaptions
.filter((caption) => caption.endMs > splitMs)
.map((caption) => ({
...caption,
startMs: Math.max(0, caption.startMs - splitMs),
endMs: caption.endMs - splitMs,
timestampMs:
caption.timestampMs === null
? null
: Math.max(0, caption.timestampMs - splitMs),
}));