Rendering
Look at single frames while you work, check the project, and render it to an MP4 or a sequence of images.
Look at frames with still and strip, check them with lint and doctor, then render the video. Every command takes the entry file, and an HTML page works the same way.
npx kinetograph strip src/index.tsx -n 12
npx kinetograph render src/index.tsxnpx kinetograph strip html/index.html -n 12
npx kinetograph render html/index.htmlThe video goes to out/renders/<composition id>.mp4. Pass -o to choose another path.
Look at frames
npx kinetograph still src/index.tsx 15
npx kinetograph strip src/index.tsx -n 12
npx kinetograph onion src/index.tsx 0..60 -n 6npx kinetograph still html/index.html 15
npx kinetograph strip html/index.html -n 12
npx kinetograph onion html/index.html 0..60 -n 6stillwrites one frame as a PNG.stripwrites evenly spaced frames on one sheet, labelled with the frame and the time. Start here: it shows the whole animation.onionblends the frames of a range over one another, to show a motion path.
A frame is a whole number from 0. A range 10..40 is frames 10 to 39.
Check the project
npx kinetograph inspect src/index.tsx --frame 30
npx kinetograph lint src/index.tsx
npx kinetograph check src/index.tsx
npx kinetograph doctor src/index.tsxnpx kinetograph inspect html/index.html --frame 30
npx kinetograph lint html/index.html
npx kinetograph doctor html/index.htmllintreports overflowing text, layers off the canvas, and missing fonts and assets.checkfinds type errors, such as a misspelled prop. It needs a TypeScript project, so an HTML page has none.doctorlists what the engine cannot draw, and on which frames. Run it before a long render. See What works.
Render
npx kinetograph render src/index.tsx --draft
npx kinetograph render src/index.tsx --range 0..90 --strictnpx kinetograph render html/index.html --draft
npx kinetograph render html/index.html --range 0..90 --strict--draftrenders at half size, for a quick look.--range a..brenders only those frames, and the audio for them.--strictstops at the first frame with something the engine cannot draw, and leaves no file. Use it for final renders and in CI.--comp <id>and--props '{"title":"Hello"}'pick the composition and its props in a Remotion project. An HTML page is one composition, with no props from the command line.
Check the render
The command prints a summary: size, codec, encoder, pixel format, frames, how many were repeated (identical to the one before, so not drawn again), and a renderer: line. Skia GPU is fast. Skia CPU means the GPU was not used and the render will be slow; doctor says why. With --json, output is the file and compat lists what was left out.
For a long film, strip a range or render with --draft --range first. Check the sound with audio analyze, and check transparency by opening a --sequence PNG.
Transparent video
A video keeps transparency only with an alpha pixel format, and only where the frame has no opaque background. A composition with no background is transparent.
- ProRes:
--codec prores --prores-profile 4444 --pixel-format yuva444p10le, to a.mov. The 4444 profiles drop alpha unless the pixel format asks for it. - VP9:
--codec vp9 --pixel-format yuva420p, to a.webm.
Alpha is written straight, not premultiplied. Players handle alpha, 4:2:2, 4:4:4 and 10-bit unevenly, and 8-bit 4:2:0 plays everywhere.
Export options
--codec h264|h265|prores|vp9|gif and the extension (.mp4, .mov, .webm or .gif) set the format. The other flags are in the CLI reference.
--sequence writes one image per frame into the -o folder instead of a video, as png (with alpha) or jpeg. A sequence has no audio.
Suggested prompt
/kinetograph-markupRender a half-size draft with --strict, show me the strip, and fix anything doctor reports.
What works
- Drawn natively: everything listed under Making videos, on the GPU with no browser.
- Approximated or left out: a frame with content the engine cannot draw is drawn without it, or close, and the command prints one warning line for each kind of problem.
--strictmakes it an error. - Not supported: a render in a cloud function. There is no cloud renderer, so run
renderon a machine with a GPU. - See What works for the full list.