Skip to main content

nodeWriter

warning

Unstable API: This package is experimental. The API may change in the future.
The API for getting video metadata is stable and may be used in production.

A writer for @remotion/media-parser that writes to the local file system using Node.js fs module.

Can be used for downloadAndParseMedia() and convertMedia() (for remuxing only, since Node.js does not implement WebCodecs).

Example

Writing to a local file
tsx
import {downloadAndParseMedia} from '@remotion/media-parser';
import {nodeWriter} from '@remotion/media-parser/node-writer';
 
await downloadAndParseMedia({
src: 'https://www.w3schools.com/html/mov_bbb.mp4',
writer: nodeWriter('output.mp4'),
});

See also