Skip to content

🎥 Make videos programmatically with React

trim audio to first 5 seconds

umungobungo290272203b01
diff --git a/packages/docs/public/Utope-nature-5s.mp3 b/packages/docs/public/Utope-nature-5s.mp3
new file mode 100644
index 0000000000..23f5e2de20
Binary files /dev/null and b/packages/docs/public/Utope-nature-5s.mp3 differ
diff --git a/packages/docs/public/Utope-nature.mp3 b/packages/docs/public/Utope-nature.mp3
deleted file mode 100644
index f476e7b2d2..0000000000
Binary files a/packages/docs/public/Utope-nature.mp3 and /dev/null differ
diff --git a/packages/docs/src/remotion/HomepageVideo/Comp.tsx b/packages/docs/src/remotion/HomepageVideo/Comp.tsx
index 14e7035e2f..f1fb7b345d 100644
--- a/packages/docs/src/remotion/HomepageVideo/Comp.tsx
+++ b/packages/docs/src/remotion/HomepageVideo/Comp.tsx
@@ -151,7 +151,7 @@ export const HomepageVideoComp: React.FC<z.infer<typeof schema> & Props> = ({
/>
{audioRequested ? (
<Audio
- src={staticFile('Utope-nature.mp3')}
+ src={staticFile('Utope-nature-5s.mp3')}
muted={audioVolume.isMuted || audioVolume.volume === 0}
volume={(f) =>
interpolate(
diff --git a/packages/docs/static/Utope-nature-5s.mp3 b/packages/docs/static/Utope-nature-5s.mp3
new file mode 100644
index 0000000000..23f5e2de20
Binary files /dev/null and b/packages/docs/static/Utope-nature-5s.mp3 differ
diff --git a/packages/docs/static/Utope-nature.mp3 b/packages/docs/static/Utope-nature.mp3
deleted file mode 100644
index f476e7b2d2..0000000000
Binary files a/packages/docs/static/Utope-nature.mp3 and /dev/null differ