Skip to main content

nodeWriter

warning

Unstable API: The writer interface is experimental. The API may change in the future.

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
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​