Setting the file. One moment.
Subchapter 7.12
ffmpeg.mdMarkdown1 KBView on GitHub
ffmpeg and ffprobe do not need to be installed. They are available via the npx remotion ffmpeg and npx remotion ffprobe:
npx remotion ffmpeg -i input.mp4 output.mp3
npx remotion ffprobe input.mp4You have 2 options for trimming videos:
trimBefore and trimAfter props of the <Video> component. This is non-destructive, requires no re-encoding, and you can change the trim at any time.import {Video} from '@remotion/media';
<Video
src={staticFile('video.mp4')}
trimBefore={5 * fps}
trimAfter={10 * fps}
/>;# Re-encodes from the exact frame
npx remotion ffmpeg -ss 00:00:05 -i public/input.mp4 -to 00:00:10 -c:v libx264 -c:a aac public/output.mp4