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 filetsx
import {downloadAndParseMedia } from '@remotion/media-parser';import {nodeWriter } from '@remotion/media-parser/node-writer';awaitdownloadAndParseMedia ({src : 'https://www.w3schools.com/html/mov_bbb.mp4',writer :nodeWriter ('output.mp4'),});