Skip to content

Client-side media: Add video transcoding to web-safe formats - #79375

Open
adamsilverstein wants to merge 44 commits into
trunkfrom
add/video-transcoding-mediabunny
Open

adamsilverstein wants to merge 44 commits into
trunkfrom
add/video-transcoding-mediabunny

Conversation

@adamsilverstein

@adamsilverstein adamsilverstein commented Jun 20, 2026 •

Copy link
Copy Markdown
Member

What?

Adds client-side video transcoding to web-safe formats for the client-side media feature, implementing #79363. When a video that is not already web-safe is uploaded, it is transcoded in the browser (via mediabunny / WebCodecs) to MP4/H.264 (or WebM/VP9) before it is served, mirroring what we already do for images and the GIF-to-video conversion in #78410.

Fixes #79363.

Note

This PR is stacked on #78410 (add/gif-to-video-mediabunny) and reuses its @wordpress/video-conversion package, worker boundary, and companion-file infrastructure. It targets that branch and should be rebased onto trunk once #78410 lands. Review the last 6 commits.

Why?

WordPress accepts video uploads in any format (.mov, .mkv, high-bitrate .mp4) and never transcodes them, because server-side transcoding needs FFmpeg, which most hosts lack. The result is slow page loads, high bandwidth/storage cost, and clips that won't play in some browsers. This is one of the capabilities called out for the 7.1 cycle and was only a roadmap bullet on #76756.

How?

Keep the original, serve a web-safe companion. WordPress always preserves the original upload (so it can be linked to or used to regenerate later, like the -scaled and HEIC originals). So the original video is stored as the attachment and the transcoded, web-safe version is sideloaded as a companion file (recorded in attachment metadata under optimized_video). The core/video block points its playback src at the companion; a toolbar control lets authors switch back to the original.

Pipeline. Detection and transcoding reuse the @wordpress/upload-media queue:

  • prepareItem probes the video metadata (getVideoMetadata, a cheap header read) and needsVideoTranscode decides eligibility (non-web-safe container/codec, oversized past the 1920px threshold, or over an optional bitrate budget) — already-optimized small files are skipped.
  • Eligible videos get Upload → GenerateVideoCompanion → Finalize; the companion is transcoded off the main thread via mediabunny's high-level Conversion API with hardwareAcceleration: 'prefer-hardware', then sideloaded.
  • Video encoding shares the single-concurrency WebCodecs gate with GIF conversion.
  • Graceful fallback: if the browser cannot encode, the companion is silently skipped (original stays); in replace-primary mode the original is uploaded unchanged so the user never loses their file.

Developer opt-out. The gutenberg_video_transcoding_keep_original PHP filter (default true) flips the pipeline to transcode-before-upload, storing only the optimized file. Since video files can be very large, this affords the ability to reduce storage requirements with the tradeoff that the original video is no longer available for download or regeneration.

Testing Instructions

Test in WordPress Playground

  1. Enable client-side media processing and open the editor in a Chromium 137+ browser.
  2. Add a Video block and upload a non-web-safe video (e.g. a .mov, an .mkv, or a large/high-bitrate .mp4).
  3. Confirm the block plays a transcoded .mp4 once the upload finishes, while the Media Library still holds the original upload.
  4. Use the "Use original video" / "Use optimized video" toolbar toggle to switch the playback source.
  5. Upload an already-web-safe, small .mp4 and confirm it is left untouched.
  6. Add add_filter( 'gutenberg_video_transcoding_keep_original', '__return_false' ); and confirm only the optimized file is stored.

Automated tests

  • Unit: npm run test:unit packages/upload-media packages/video-conversion
  • PHP: vendor/bin/phpunit phpunit/media/video-transcoding-test.php
  • e2e: npm run test:e2e -- test/e2e/specs/editor/various/video-transcoding.spec.js

Part of #76756.

AI use

This PR was written by Claude after careful prompting, planning and review from me. I also plan to manually review the code and test the feature directly.

@github-actions github-actions Bot added [Package] Block library /packages/block-library [Package] Block editor /packages/block-editor labels Jun 20, 2026
@adamsilverstein adamsilverstein added [Feature] Client Side Media Media processing in the browser with WASM [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement. labels Jun 20, 2026
Comment thread lib/media/load.php Resolved
@adamsilverstein adamsilverstein self-assigned this Jun 20, 2026
@adamsilverstein
adamsilverstein marked this pull request as ready for review June 20, 2026 19:57
@github-actions

github-actions Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Size Change: +130 kB (+1.65%)

Total Size: 8.05 MB

📦 View Changed
Filename Size Change
build/modules/video-conversion/worker.min.js 213 kB +129 kB (+154.16%) 🆘
build/scripts/block-editor/index.min.js 477 kB +19 B (0%)
build/scripts/block-library/index.min.js 371 kB +409 B (+0.11%)
build/scripts/core-data/index.min.js 37.4 kB +13 B (+0.03%)
build/scripts/editor/index.min.js 580 kB +43 B (+0.01%)
build/scripts/upload-media/index.min.js 16.9 kB +627 B (+3.85%)

compressed-size-action

@github-actions

github-actions Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Flaky tests detected in 34667e1.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/33114972868
📝 Reported tests:

three users concurrently edit a large post with diverse blocks in /test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts, passed after 1 failed attempt.
TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
Call log:
  - waiting for getByRole('button', { name: 'Dismiss this notice' }).filter({ hasText: 'Draft saved' }) to be visible

    at Editor.saveDraft (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/save-draft.ts:16:4)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts:407:3

@adamsilverstein adamsilverstein linked an issue Jun 24, 2026 that may be closed by this pull request
9 tasks
Base automatically changed from add/gif-to-video-mediabunny to trunk June 29, 2026 18:44
Detect uploaded videos that are not web-safe (non-MP4/WebM container,
non-web-safe codec, oversized, or over a bitrate budget) and transcode
them to MP4/H.264 (or WebM/VP9) in the browser before they are served,
mirroring the GIF-to-video flow.

The original upload is preserved as the attachment (consistent with how
WordPress keeps the `-scaled` and HEIC originals); the transcoded,
web-safe version is sideloaded as a companion file and is what plays.
A `videoKeepOriginal` setting flips the pipeline to replace-primary so
only the optimized file is stored.

Transcoding runs off the main thread in the existing
@wordpress/video-conversion worker via mediabunny's Conversion API, with
hardware acceleration where available and graceful fallback to the
original when the browser cannot encode. Video encoding shares the
single-concurrency WebCodecs gate with GIF conversion.

Part of #76756. Implements #79363.
Add server-side support for the `optimized-video` sideload size: the
transcoded, web-safe video is stored as a companion file recorded in
attachment metadata under `optimized_video` (surfaced to the editor via
media_details), the original stays the attachment, and the companion is
cleaned up on delete_attachment.

Add the `gutenberg_video_transcoding_keep_original` filter (default
true). When a developer returns false, the resolved value is exposed as
window.__videoTranscodingKeepOriginal and read by the block editor's
media upload settings, flipping the pipeline to transcode-before-upload
so only the optimized file is stored.

Part of #76756. Implements #79363.
The setting is read from the REST index into the block editor settings,
but the base entity only requests an explicit _fields list, so it was
never returned. Add it to the entity fields and the matching preload path.
@github-actions github-actions Bot added the [Package] Core data /packages/core-data label Aug 29, 2026
adamsilverstein added a commit to adamsilverstein/wordpress-develop that referenced this pull request Aug 31, 2026
…ideo upload.

Add server-side support for the client-side video transcoding flow. When client-side media processing is enabled, the editor transcodes an uploaded video that is not already web-safe to MP4/WebM in the browser and sideloads the result as a companion of the original video attachment, which remains the attachment itself.

- Accept a video attachment as the sideload parent for the new `optimized_video` companion size, and only for that size; every other size still requires an image or PDF parent.
- Record the companion under the `optimized_video` attachment metadata key on finalize, and treat it as a name the request is allowed to store.
- Delete the companion file alongside the attachment in `wp_delete_attachment_files()`.
- Expose the new `wp_video_transcoding_keep_original` filter (default `true`) on the REST API index as `video_keep_original`, so the editor knows whether to keep the original upload or transcode before uploading, and preload it with the other media processing settings.

See WordPress/gutenberg#79375.
@adamsilverstein

Copy link
Copy Markdown
Member Author

Core backport: WordPress/wordpress-develop#13323 (Trac https://core.trac.wordpress.org/ticket/65998)

Claude prepared the backport and pushed two small fixes here along the way:

Two things came up while mapping the PHP onto Core. The sideload size token was optimized-video with a hyphen, while every other special size (animated_video, source_original) uses underscores; it is now optimized_video on both sides. And video_keep_original was read from the REST index in useBlockEditorSettings but never requested, since the base site entity asks for an explicit _fields list; it is now in that list and in the preload path.

@andrewserong

Copy link
Copy Markdown
Contributor

Thanks for summarizing, Adam! It's been a while since I've looked at this, so just sharing some thoughts after having not looked at it for a while. Please know that I think as a long-term goal being able to support video conversion is a great idea, so my thoughts here are in the spirit of supporting the effort!

Now, onto the approach. I think there are a lot of assumptions here, and this problem space is more complex than a single PR can capture succinctly.

Transcoding can take a lot of time, and depending on the computer, is computationally expensive. Will it slow down the editor for some users while it's happening? What if a user saves their post and closes the window, or closes their laptop lid. Where will they be in the transcoding process? What if they're in the site editor and switch to a different view from the post they were working on?

What is the baseline configuration that we should use for a single video? How can a user preview what it looks like and make choices about how they want it to look? What if the video is too compressed, or not compressed enough? The differences for an individual image can be marginal, but on a bigger video can be significant. And what about audio codecs? What if the video looks fine, but an indie artist's music video doesn't sound right?

If we're using the current image pipeline as an example, users can currently choose from a range of sub-sizes or select "full" to show the original, after the conversion has happened. This is easy to do because generating sub-sizes for images is quick, so the UI to make that selection can kind of happen after the conversion has happened. Whereas transcoding video is typically slow.

All of this is why I'm skeptical of transcoding behind the scenes being the right path for this feature. Especially if one of the goals is to ultimately not upload the original file for the case of very large media. It isn't clear to me in the linked issue (#79363) if the goal is to solve the storage problem or not, as it's used as one of the reasons we should do this feature, but it's also mentioned that we're preserving the file that the user uploaded. There are good arguments either way, but in its current form, I wasn't sure where we're trying to land.

So, my recommendation here would be to consider (and maybe this is more a discussion for the linked issue): what's the best UX we'd like to provide a user for this feature? Unlike client-side image processing which can fall back to a server-side approach, this is a new feature with no fallback. Once it's announced "WordPress can automatically convert your videos", we're committed to supporting it, so there's a bit less wriggle room IMO than for the still image processing.


Alrighty, those are my first impressions. I think overall it's a good feature idea, but also a project in and of itself to make it feel seamless and polished. Would it be worth introducing it behind an experiment to begin with so that many of these questions can be explored after the initial foundations have landed?

I like asking all these questions, but I'm sure there's much of this PR that is infrastructural that doesn't needed to be blocked by thinking through all the particulars. (I.e. I'm trying to figure out how I can best be supportive here without needlessly blocking good work!)

…g-mediabunny

# Conflicts:
#	packages/core-data/CHANGELOG.md
#	packages/editor/CHANGELOG.md
#	packages/upload-media/CHANGELOG.md
#	packages/upload-media/src/store/test/actions.ts
#	packages/upload-media/src/store/test/private-actions.js
#	packages/video-conversion/CHANGELOG.md
@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +129 kB (+1.48%)

Total Size: 8.86 MB

📦 View Changed
Filename Size Change
build/modules/video-conversion/worker.min.js 214 kB +128 kB (+149.13%) 🆘
build/scripts/block-editor/index.min.js 562 kB +17 B (0%)
build/scripts/block-library/index.min.js 432 kB +366 B (+0.08%)
build/scripts/core-data/index.min.js 78.1 kB +12 B (+0.02%)
build/scripts/editor/index.min.js 576 kB +35 B (+0.01%)
build/scripts/upload-media/index.min.js 17 kB +649 B (+3.97%)

ea3c444 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 64d44b7 trunk % Change
timeToFirstByte 44.85 ms +11.93% -3.23% 45.4 ms +6.06% -2.97% -1.21%
largestContentfulPaint 70 ms +8.57% -2.86% 68 ms +11.76% -0% 2.94%
lcpMinusTtfb 24.45 ms +8.59% -10.02% 23.95 ms +23.38% -5.85% 2.09%
wpBeforeTemplate 23.67 ms +6.34% -2.79% 23.57 ms +3.35% -3.14% 0.42%
wpTemplate 17.9 ms +7.37% -5.53% 18.12 ms +3.53% -3.37% -1.21%
wpTotal 41.57 ms +12.15% -3.99% 41.83 ms +4.14% -2.75% -0.62%
wpMemoryUsage 7.76 MB +0% -0% 7.72 MB +0% -0% 0.46%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 64d44b7 trunk % Change
timeToFirstByte 36.7 ms +9.4% -1.91% 37.7 ms +7.82% -2.79% -2.65%
largestContentfulPaint 66 ms +6.06% -3.03% 68 ms +2.94% -2.94% -2.94%
lcpMinusTtfb 28.3 ms +4.06% -1.41% 29.55 ms +4.74% -3.55% -4.23%
wpBeforeTemplate 20.47 ms +9.82% -2.3% 20.7 ms +3% -2.51% -1.11%
wpTemplate 13.11 ms +3.66% -1.3% 14.14 ms +4.88% -4.81% -7.28%
wpTotal 33.9 ms +7.73% -1.98% 35 ms +5.23% -3.2% -3.14%
wpMemoryUsage 6.44 MB +0% -0% 6.41 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 64d44b7 trunk % Change
mediaProcessingJpeg 332.64 ms +0.12% -0.38% 334.46 ms +0.04% -2.15% -0.54%
mediaProcessingAvif 4897.17 ms +0.45% -0.54% 4930.27 ms +0.24% -1.36% -0.67%
mediaProcessingJpegToAvif 3414.83 ms +0.21% -0.29% 3405.66 ms +0.04% -0.15% 0.27%

media-upload

Metric 64d44b7 trunk % Change
jpegUploadProcessing 1466.72 ms +2.22% -0.96% 1461.78 ms +0.97% -0.45% 0.34%
pngUploadProcessing 242.27 ms +5.26% -5.2% 253.26 ms +2.65% -6.19% -4.34%
largeJpegUploadProcessing 1449.65 ms +0.81% -0.92% 1450.82 ms +0.72% -1.34% -0.08%
multipleImageUploadProcessing 1544.19 ms +3.89% -1.74% 1524.27 ms +2.04% -0.61% 1.31%

post-editor

Metric 64d44b7 trunk % Change
serverResponse 416.4 ms +2.79% -2.11% 407.86 ms +0.9% -2.5% 2.09%
firstPaint 421.58 ms +6.96% -4.64% 411.96 ms +6.64% -11.09% 2.34%
domContentLoaded 807.86 ms +9.47% -2.22% 806.11 ms +3.31% -1.33% 0.22%
loaded 808.95 ms +9.46% -2.21% 807.15 ms +3.28% -1.33% 0.22%
firstContentfulPaint 465.81 ms +11.27% -4.75% 454.8 ms +5.94% -1.8% 2.42%
firstBlock 2061.94 ms +4.75% -0.24% 2064.45 ms +2.24% -0.69% -0.12%
type 17.13 ms +1.52% -11.27% 17.24 ms +6.21% -7.25% -0.64%
typeWithoutInspector 16.66 ms +5.46% -10.32% 17.68 ms +4.19% -12.16% -5.77%
typeWithTopToolbar 22.66 ms +2.78% -10.81% 23.88 ms +4.27% -8.96% -5.11%
typeContainer 7.51 ms +10.92% -12.52% 8.67 ms +2.31% -12.11% -13.38%
focus 105.64 ms +4.36% -8.93% 109.62 ms +1.7% -5.28% -3.63%
firstFocus 242.84 ms +0% -0% 249.25 ms +0% -0% -2.57%
selectAll 328.8 ms +0.12% -1.68% 311.53 ms +7.45% -0.45% 5.54%
undo 29.7 ms +3.37% -8.42% 29.58 ms +5.58% -6.52% 0.41%
listViewOpen 34.64 ms +16.66% -2.42% 35.49 ms +9.21% -4.9% -2.4%
inserterOpen 38.71 ms +15.45% -8.29% 39.7 ms +14.61% -6.7% -2.49%
inserterHover 12.04 ms +6.31% -5.81% 11.68 ms +6.76% -8.48% 3.08%
inserterSearch 8.28 ms +2.66% -3.62% 8.4 ms +6.31% -2.14% -1.43%
loadPatterns 684.65 ms +3.83% -4.71% 665.92 ms +2.62% -1.11% 2.81%
wpTotal 405.92 ms +3% -2% 397.86 ms +0.93% -2.52% 2.03%
wpMemoryUsage 14.80 MB +0% -0% 14.77 MB +0% -0% 0.25%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 64d44b7 trunk % Change
serverResponse 476.98 ms +0.68% -8.4% 478.71 ms +0.93% -8.33% -0.36%
firstPaint 476.6 ms +7.34% -2.23% 467.99 ms +1.94% -12.59% 1.84%
domContentLoaded 857.84 ms +4.22% -1.59% 847.1 ms +2.05% -0.92% 1.27%
loaded 858.85 ms +4.22% -1.6% 848.08 ms +2.07% -0.91% 1.27%
firstContentfulPaint 494.39 ms +3.48% -2.96% 480.79 ms +3.62% -1.89% 2.83%
firstBlock 2653.66 ms +2.32% -2.85% 2638.73 ms +1.02% -1.16% 0.57%
type 18.1 ms +8.12% -13.7% 18.33 ms +1.58% -10.2% -1.25%
navigate 108.67 ms +4.82% -0.09% 118.85 ms +2.46% -8.32% -8.57%
loadPatterns 1391.69 ms +9.3% -6.14% 1416.7 ms +5.7% -6.06% -1.77%
loadPages 975.44 ms +2.6% -2.51% 988.2 ms +0.63% -2.79% -1.29%
wpTotal 467.54 ms +0.45% -8.6% 469.18 ms +0.94% -8.54% -0.35%
wpMemoryUsage 12.84 MB +0% -0% 12.80 MB +0% -0% 0.29%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

ea3c444 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

As a user I want to be able to add multiple close buttons so that users can close the overlay from different positions in /test/e2e/specs/site-editor/navigation-overlay-template-part.spec.js, passed after 1 failed attempt.
Error: expect(locator).toHaveCount(expected) failed

Locator:  getByRole('button', { name: 'Close' })
Expected: 2
Received: 1
Timeout:  5000ms

Call log:
  - Expect "toHaveCount" getByRole('button', { name: 'Close' }) with timeout 5000ms
  - waiting for getByRole('button', { name: 'Close' })
    14 × locator resolved to 1 element
       - unexpected value "1"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-overlay-template-part.spec.js:228:33

ea3c444 Run

@manzoorwanijk
manzoorwanijk removed their request for review September 15, 2026 07:41
adamsilverstein and others added 5 commits September 15, 2026 09:01
Vitest runs with `globals: false`, so the test helpers have to be imported
rather than picked up from the environment as they were under Jest.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RtZdDWdC33cNHfY4U238A5
…g-mediabunny

# Conflicts:
#	packages/core-data/CHANGELOG.md
`cancelItem` reports through the console when the item carries no onError
handler, so the concurrency-gate test has to expect that rather than let it
surface as an unexpected console call.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RtZdDWdC33cNHfY4U238A5
…ss/gutenberg into add/video-transcoding-mediabunny
@adamsilverstein

Copy link
Copy Markdown
Member Author

@andrewserong you raise some good points about the challenges of video transcoding.

The overall goal would be to help users server video successfully on their websites. The idea is generally to detect an uploaded video that is in a format web browsers may not support. This would work similar to uploading a HEIC image where we automatically convert it to JPEG because HEICs aren't very well supported.

Transcoding can take a lot of time, and depending on the computer, is computationally expensive. Will it slow down the editor for some users while it's happening? What if a user saves their post and closes the window, or closes their laptop lid. Where will they be in the transcoding process? What if they're in the site editor and switch to a different view from the post they were working on?

it shouldn't slow does the editor because it would happen in a worker thread. Closing a window would leave the transcoding incomplete, but it could resume the next time the editor loaded.

What is the baseline configuration that we should use for a single video? How can a user preview what it looks like and make choices about how they want it to look? What if the video is too compressed, or not compressed enough? The differences for an individual image can be marginal, but on a bigger video can be significant. And what about audio codecs? What if the video looks fine, but an indie artist's music video doesn't sound right?

The configuration for the output video would match that of the uploaded video. For example lets say I upload an old 640x480 30fps AVI or file. My intent is to insert a video on my website, but unfortunately I don't know that browsers don't support the AVI format. WordPress automatically converts my upload into a 640x480 30fps mp4 file so my video plays fine.

I realize this is easier said than done, I'm mostly trying to describe the overall goal.

Audio only uploads may deserve a similar transformation if we know some formats aren't web safe.

We might also need guardrails about what we try to convert, or offer more user control over the conversion, or a more explicit conversion interface similar to what was proposed for GIF->Video conversion - for example a modal that pops up offering to convert an uploaded file to a web safe format, then a progress bar showing conversion progress.

Good point on the storage issue - videos are huge, so maybe if the user accepts the conversion we would only upload the transcoded version.

In summary: I hear your concerns and understand this PR isn't ready for prime time. We need more thinking about UX and the scope of the feature. I'll leave this open for now to keep iterating.

adamsilverstein and others added 5 commits September 15, 2026 10:52
The Vitest conventions validator requires TypeScript tests to pass a
dynamic import to vi.mock(). The partial factory needs a cast because
it only stands in for the exports transcodeVideo touches.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JhfpWLne9QuiM4SzMYLLTg
transcodeVideo now resolves to a File, so the never-settling mock
promise has to be typed or the vi.mock factory no longer matches the
module surface.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JhfpWLne9QuiM4SzMYLLTg
…g-mediabunny

# Conflicts:
#	packages/block-editor/CHANGELOG.md
#	packages/core-data/CHANGELOG.md
#	packages/upload-media/CHANGELOG.md
The trunk merge brought Prettier 3.9.6, which adds wp-prettier paren
spacing inside `import()` type positions.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AGarM6qGwHbEknVuo9tTHS
Trunk's docgen emits `- ` list markers; the sections this branch did not
touch still carried the old `-   ` form, so check-local-changes saw a diff.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AGarM6qGwHbEknVuo9tTHS
Type the transcoding tests merged into the TypeScript private actions
tests and use the console matchers for expected errors. Swap a Media
Library pick to its companion from the select handler instead of an
effect, which trunk no longer allows in blocks, and convert the new e2e
spec to TypeScript.
@github-actions
github-actions Bot requested a review from ramonjd November 29, 2026 06:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Client Side Media Media processing in the browser with WASM [Package] Block editor /packages/block-editor [Package] Block library /packages/block-library [Package] Core data /packages/core-data [Package] Editor /packages/editor [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Projects

Status: 🔎 Needs Review

Development

Successfully merging this pull request may close these issues.

Video transcoding to web-safe formats

3 participants