Add video compressor tool using ffmpeg.wasm - #331
Merged
Conversation
Opens a video and encodes several smaller MP4 versions of it entirely in the browser so the smallest acceptable one can be picked. Every output is H.264 (Main profile by default) + AAC in a faststart MP4 with yuv420p, even dimensions and a 1080p cap, for maximum mobile compatibility. Vendors the two small @ffmpeg/ffmpeg 0.12.15 wrapper files into ffmpeg-wasm/ because the Web Worker must be same-origin; the 32 MB @ffmpeg/core is loaded from jsDelivr at runtime. Includes Playwright tests with a small H.264/AAC fixture and a pure Python MP4 box parser that checks the profile, level, audio codec and faststart layout of the encoded files. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QHTdJZ4xg6TZfDXCmuvAE9
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Drops the sound track from every generated version (-an, no audio stream mapped), greys out the per-version audio bitrate inputs while it is on, and notes "no audio" on the result cards. The sample-mode test now also checks the option and confirms the output has no audio track. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QHTdJZ4xg6TZfDXCmuvAE9
Deploying tools with
|
| Latest commit: |
75e79c5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c9f40925.tools-b1q.pages.dev |
| Branch Preview URL: | https://claude-video-compression-was.tools-b1q.pages.dev |
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opens a video and encodes several smaller MP4 versions of it entirely in
the browser so the smallest acceptable one can be picked. Every output is
H.264 (Main profile by default) + AAC in a faststart MP4 with yuv420p,
even dimensions and a 1080p cap, for maximum mobile compatibility.
Vendors the two small @ffmpeg/ffmpeg 0.12.15 wrapper files into
ffmpeg-wasm/ because the Web Worker must be same-origin; the 32 MB
@ffmpeg/core is loaded from jsDelivr at runtime.
Includes Playwright tests with a small H.264/AAC fixture and a pure
Python MP4 box parser that checks the profile, level, audio codec and
faststart layout of the encoded files.
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01QHTdJZ4xg6TZfDXCmuvAE9