Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed-caption support #93

Open
sendn0des opened this issue Sep 1, 2024 · 1 comment
Open

Closed-caption support #93

sendn0des opened this issue Sep 1, 2024 · 1 comment
Labels
mvp you da most valuable playa new feature
Milestone

Comments

@sendn0des
Copy link
Collaborator

Simple closed captioning is a must for social.

This can be done lots of ways and quickly, but "animated" ones akin to Captions.ai would be a big deal

@sendn0des sendn0des added this to Clapper Sep 1, 2024
@sendn0des sendn0des converted this from a draft issue Sep 1, 2024
@sendn0des sendn0des added the mvp you da most valuable playa label Sep 9, 2024
@jbilcke-hf
Copy link
Owner

jbilcke-hf commented Sep 11, 2024

There are multiple solutions for this (python or c++ libraries running on server side etc)

But the approach I would propose for Clapper is to generate transparent images and use them as layers (segments of type ClapSegmentCategory.INTERFACE).

They can then be used as overlays when rendering the video preview but also generating actual videos using FFmpeg, or when exporting the project to 3rdparty software (if they support overlay images).

To draw those images we can either use a simple canvas (or html using SVG <foreignObject> eg with this lib)

What is great about this pipeline is that it only bakes (closes) the captions at the very last minute (leaving room to dynamically customize the font family, size, color etc until the user is happy with the result) and it can be extended in the future by generating frames (eg. from a invisible WebGL rendering canvas, to create cool shader effects) to be used as an animated/video overlay.

@jbilcke-hf jbilcke-hf added this to the 1.0.0 (MVP) milestone Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mvp you da most valuable playa new feature
Projects
Status: Todo
Development

No branches or pull requests

2 participants