Skip to content

Add WMV (Windows Media Video) support#499

Open
StoneCotton wants to merge 1 commit intop2r3:masterfrom
StoneCotton:wmv-support
Open

Add WMV (Windows Media Video) support#499
StoneCotton wants to merge 1 commit intop2r3:masterfrom
StoneCotton:wmv-support

Conversation

@StoneCotton
Copy link

Adds support for WMV input and output by mapping it to the ASF container
format already handled by FFmpeg.

Changes:

  • Add WMV FormatDefinition in CommonFormats.ts
  • Add asf → "Windows Media Video (WMV)" friendly name mapping in FFmpeg handler
  • Add manual WMV format entry using internal: "asf" (same pattern as QTA)
  • Add video/x-ms-wmvvideo/x-ms-asf MIME normalization
  • Set encode bitrate to 15 Mbps video / 192 kbps audio (FFmpeg's default ~200 kbps is too low for the older WMV codecs)

Map WMV to the ASF container format already supported by FFmpeg,
with friendly naming, MIME normalization, and a higher encode bitrate
(15 Mbps video / 192 kbps audio) suitable for the older WMV codecs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
internal: "asf",
category: "video"
});

Copy link
Contributor

@ConnorTippets ConnorTippets Mar 5, 2026

Choose a reason for hiding this comment

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

You added CommonFormats.WMV, why not use it?

Ah, I see what's happening here. Admittedly figuring this out myself was a bit difficult too, but FormatDefinition.builder takes a string that is the internal. So CommonFormats.WMV.builder("asf").allowFrom().allowTo() would produce the same thing.

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.

2 participants