Promote to production: Video Recorder effects (filters, bg blur/replace, green screen) - #392
Merged
Conversation
…en screen Phase 2 of the Video Recorder: switch recording to a canvas-composited pipeline (record the effects canvas + camera audio) and add effects that bake into the file: - colour filters (grayscale/sepia/vivid/cool/warm/invert) - background blur and background replace (colour or image) via an on-device MediaPipe selfie segmenter (VIDEO mode, per-frame) - real green-screen chroma key (adjustable key colour + tolerance) Pure, unit-tested video-effects.lib (filter presets, hex parse, chroma key). Stages the selfie-segmenter model (stage-models.mjs); it is served same-origin from /models like the face model. E2E records through the filter path with the fake camera. EN + ID SEO updated. NOTE: production serves /models from R2 — run `npm run sync:r2:prod` (with Cloudflare auth) to upload selfie_segmenter.tflite, or the background-blur/replace effects 404 the model in prod (filters and green screen need no model).
feat(video-recorder): effects — filters, background blur/replace, green screen
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.
Promotes PR #391. Canvas-composited effects: colour filters, background blur/replace (MediaPipe selfie segmenter), green screen. CI green on develop. NOTE: background blur/replace need selfie_segmenter.tflite uploaded to R2 (npm run sync:r2:prod) — they degrade gracefully until then; filters + green screen need no model.