Capítulo 677 de 988

Chapter 677: Download and Parse Videos or Audio simultaneously

Core Idea

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

Key Concepts

  • See also

Code Examples

const {durationInSeconds, tracks} = await downloadAndParseMedia({
  src: 'https://s3.amazonaws.com/bucket/uploaded-asset.mp4',
  writer: nodeWriter('output.mp4'),
  fields: {
    durationInSeconds: true,
    tracks: true,
  },
});
// If here was reached, file is downloaded!
console.log(durationInSeconds);
console.log(tracks);
  • What it demonstrates: Usage pattern for Download and Parse Videos or Audio simultaneously from the official docs.

Key Takeaways

  1. Understand see also when working with Download and Parse Videos or Audio simultaneously.

Connects To

  • Download and Parse Media: related page in the Media Parser (@remotion/media-parser) section.
  • Fast and Slow: related page in the Media Parser (@remotion/media-parser) section.
  • Fields: related page in the Media Parser (@remotion/media-parser) section.