Skip to content

Conversation

@samohovets
Copy link
Member

@samohovets samohovets commented Dec 31, 2025

Fixes #6047

  • Add audioCodec option to renderMediaOnWeb() with support for 'aac' and 'opus' codecs
  • Add audioBitrate option to control audio quality ('very-low' | 'low' | 'medium' | 'high' | 'very-high')
  • Add Audio Codec and Audio Quality selectors to the Studio's Web Render Modal
  • Automatically detect browser-encodable codecs and disable options accordingly

@vercel
Copy link
Contributor

vercel bot commented Dec 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
bugs Ready Ready Preview, Comment Jan 7, 2026 8:32am
remotion Ready Ready Preview, Comment Jan 7, 2026 8:32am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds audio codec and bitrate customization options to the web renderer, enabling users to choose between AAC and Opus codecs with configurable quality levels.

Key changes:

  • Added audioCodec and audioBitrate options to renderMediaOnWeb() with automatic browser compatibility fallback
  • Implemented UI controls in Studio's Web Render Modal for selecting audio codec and quality
  • Added disabled item support in ComboBox components to show unavailable codec options

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/web-renderer/src/render-media-on-web.tsx Core implementation of audio codec selection with browser capability detection and fallback logic
packages/web-renderer/src/mediabunny-mappings.ts Audio codec type definitions and mapping functions for container-codec compatibility
packages/web-renderer/src/index.ts Exports new audio codec types and helper functions
packages/studio/src/components/RenderModal/quality-options.tsx Reusable quality options helper for audio and video quality selectors
packages/studio/src/components/RenderModal/WebRenderModalPicture.tsx Refactored to use shared quality options helper
packages/studio/src/components/RenderModal/WebRenderModalAudio.tsx Audio tab UI with codec and quality selectors, browser compatibility detection
packages/studio/src/components/RenderModal/WebRenderModal.tsx State management and integration of audio codec options
packages/studio/src/components/NewComposition/MenuContent.tsx Enhanced keyboard navigation to skip disabled items
packages/studio/src/components/NewComposition/ComboBox.tsx Added disabled property to ComboboxValue type
packages/studio/src/components/Menu/MenuSubItem.tsx Visual styling and interaction handling for disabled menu items
packages/docs/docs/web-renderer/render-media-on-web.mdx Documentation for new audioCodec and audioBitrate options

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.

Copy link
Member

@JonnyBurger JonnyBurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

JonnyBurger
JonnyBurger previously approved these changes Jan 7, 2026
Copy link
Member

@JonnyBurger JonnyBurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quality! Thanks a lot 🙌

@JonnyBurger JonnyBurger merged commit 6d20328 into main Jan 7, 2026
22 of 24 checks passed
@JonnyBurger JonnyBurger deleted the feature/web-renderer-audio-codecs branch January 7, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web Renderer: Add option to specify the audio codec

3 participants