Skip to content

fix: adjust default encoder options depending on chosen codec#24

Merged
juliendargelos merged 1 commit into
mainfrom
fix/adjust-default-encoder-options
May 1, 2026
Merged

fix: adjust default encoder options depending on chosen codec#24
juliendargelos merged 1 commit into
mainfrom
fix/adjust-default-encoder-options

Conversation

@juliendargelos
Copy link
Copy Markdown
Member

Summary

  • Store codec-specific defaults in DEFAULT_ENCODER_OPTIONS map at the top of Converter.ts
  • H.264 uses profile:'baseline', level:'5.1', preset:'slower'; H.265 uses preset:'slower' without profile/level
  • Remove H.265 workaround from tests since defaults now work correctly out of the box
  • Document encoder options and performance rationale in README

fixes #22

Store codec-specific defaults in DEFAULT_ENCODER_OPTIONS map so that
H.264 and H.265 each use appropriate options (e.g., no profile/level
for x265). Removes need for manual overrides when converting with
different codecs.

fixes #22
@juliendargelos juliendargelos added the Type: Bug Something isn't working label May 1, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
fsv Ignored Ignored May 1, 2026 5:04pm

Request Review

@juliendargelos juliendargelos merged commit cad7a1a into main May 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust default encoder options depending on the chosen output codec

1 participant