Capítulo 716 de 988

Chapter 716: defaultOnVideoTrackHandler()

Core Idea

:::warning We are phasing out Remotion WebCodecs and are moving to Mediabunny!

Key Concepts

  • Algorithm
  • See also

Code Examples

await convertMedia({
  src: 'https://remotion.media/BigBuckBunny.mp4',
  container: 'webm',
  onAudioTrack: (params) => {
    // Custom logic for handling video tracks
    // ...

    // Fall back to the default behavior
    return defaultOnAudioTrackHandler(params);
  },
});
  • What it demonstrates: Usage pattern for defaultOnVideoTrackHandler() from the official docs.

Key Takeaways

  1. Understand algorithm when working with defaultOnVideoTrackHandler().
  2. Understand see also when working with defaultOnVideoTrackHandler().

Connects To

  • Buffer Writer: related page in the WebCodecs (@remotion/webcodecs) section.
  • can Copy Audio Track: related page in the WebCodecs (@remotion/webcodecs) section.
  • can Copy Video Track: related page in the WebCodecs (@remotion/webcodecs) section.