Skip to content

🎥 Make videos programmatically with React

fix(jonnys-videos): bake 180-degree rotations into video assets

JonnyBurger66d7188d4f67
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx
index 58a497e04e..f269759a4b 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx
@@ -382,14 +382,13 @@ const BestCommuteInner: React.FC = () => {
<Video
name="IMG_0463"
src={
- 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0463.MOV'
+ 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0463-rotated-180-v1.mp4'
}
volume={0.83}
objectFit="cover"
style={{
width: '100%',
height: '100%',
- rotate: '180deg',
scale: interpolate(frame, [442, 451], [1, 1.1], {
easing: Easing.bezier(0.16, 1, 0.3, 1),
output: 'perceptual-scale',
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx
index c3e53ccc6d..a54c572a18 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx
@@ -541,11 +541,11 @@ const UphillInner: React.FC = () => {
<Video
name="IMG_0459"
src={
- 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459.MOV'
+ 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459-rotated-180-v1.mp4'
}
volume={0.8}
objectFit="cover"
- style={{width: '100%', height: '100%', rotate: '180deg'}}
+ style={{width: '100%', height: '100%'}}
/>
<PoppingWordCaptions
combineTokensWithinMilliseconds={null}
@@ -627,14 +627,13 @@ const UphillInner: React.FC = () => {
<Video
name="IMG_0459"
src={
- 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459.MOV'
+ 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459-rotated-180-v1.mp4'
}
volume={0.8}
objectFit="cover"
style={{
width: '100%',
height: '100%',
- rotate: '180deg',
scale: interpolate(frame, [578, 587], [1, 1.1], {
easing: Easing.bezier(0.16, 1, 0.3, 1),
output: 'perceptual-scale',
@@ -723,11 +722,11 @@ const UphillInner: React.FC = () => {
<Video
name="IMG_0459"
src={
- 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459.MOV'
+ 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459-rotated-180-v1.mp4'
}
volume={0.8}
objectFit="cover"
- style={{width: '100%', height: '100%', rotate: '180deg'}}
+ style={{width: '100%', height: '100%'}}
/>
<PoppingWordCaptions
combineTokensWithinMilliseconds={null}
@@ -1065,11 +1064,11 @@ const UphillInner: React.FC = () => {
<Video
name="IMG_0459"
src={
- 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459.MOV'
+ 'https://remotion.media/jonnys-videos/roller-skis/footage/IMG_0459-rotated-180-v1.mp4'
}
volume={0.8}
objectFit="cover"
- style={{width: '100%', height: '100%', rotate: '180deg'}}
+ style={{width: '100%', height: '100%'}}
/>
<PoppingWordCaptions
combineTokensWithinMilliseconds={null}
diff --git a/packages/jonnys-videos/src/roller-skis/Composition.tsx b/packages/jonnys-videos/src/roller-skis/Composition.tsx
index 4899d4536b..b958f5d5e7 100644
--- a/packages/jonnys-videos/src/roller-skis/Composition.tsx
+++ b/packages/jonnys-videos/src/roller-skis/Composition.tsx
@@ -1660,9 +1660,9 @@ const RollerSkiRoughCutInner: React.FC = () => {
durationInFrames={6.7 * FPS}
>
<Video
- src={rollerSkiAsset('footage/IMG_0459.MOV')}
+ src={rollerSkiAsset('footage/IMG_0459-rotated-180-v1.mp4')}
trimBefore={38 * FPS}
- style={{...videoStyle, rotate: '180deg'}}
+ style={videoStyle}
objectFit="cover"
effects={[lut({content: outdoorLut})]}
/>