mirror of
https://github.com/hanzoai/video.git
synced 2026-11-03 04:21:39 +00:00
11 production pipelines, 47 tools, 124 agent skills. Supports cloud APIs (fal.ai, OpenAI, ElevenLabs, Suno, HeyGen, Runway) and free local providers (diffusers, Piper TTS, WAN 2.1, Hunyuan, CogVideo). Co-authored-by: Hanzo Dev <[email protected]>
998 B
998 B
name, description, metadata
| name | description | metadata | ||
|---|---|---|---|---|
| ffmpeg | Using FFmpeg and FFprobe in Remotion |
|
FFmpeg in Remotion
ffmpeg and ffprobe do not need to be installed. They are available via the bunx remotion ffmpeg and bunx remotion ffprobe:
bunx remotion ffmpeg -i input.mp4 output.mp3
bunx remotion ffprobe input.mp4
Trimming videos
You have 2 options for trimming videos:
- Use the FFMpeg command line. You MUST re-encode the video to avoid frozen frames at the start of the video.
# Re-encodes from the exact frame
bunx remotion ffmpeg -ss 00:00:05 -i public/input.mp4 -to 00:00:10 -c:v libx264 -c:a aac public/output.mp4
- Use the
trimBeforeandtrimAfterprops of the<Video>component. The benefit is that this is non-destructive 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}
/>;