Back to Remotion

Use Audio from video

packages/docs/docs/audio/from-video.mdx

4.0.467755 B
Original Source

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Audio from <Video>, <Html5Video> and <OffthreadVideo> tags are also included in the output.

The same principles apply as for audio - you may trim, delay, mute, speed up and reduce the volume of your videos.

tsx
import {AbsoluteFill, OffthreadVideo, staticFile} from 'remotion';

export const MyComposition = () => {
  return (
    <AbsoluteFill>
      <OffthreadVideo src={staticFile('video.mp4')} playbackRate={2} volume={0.5} />
    </AbsoluteFill>
  );
};