Back to Remotion

nodeWriter

packages/docs/docs/media-parser/node-writer.mdx

4.0.462970 B
Original Source

:::warning We are phasing out Media Parser and are moving to Mediabunny! :::

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

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