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

Improve videos encoding quality and size #54

Open
edouard-lopez opened this issue Feb 16, 2024 · 2 comments
Open

Improve videos encoding quality and size #54

edouard-lopez opened this issue Feb 16, 2024 · 2 comments
Labels
feature New feature or request question Further information is requested
Milestone

Comments

@edouard-lopez
Copy link

Not sure that the right place to put it, feel free to copy/paste.

Comparison

Videos uploaded by Lingua Libre are approximately 5-10 times larger than the one I extracted and encoded from Laura Jauvert video (for the same duration and with a lower resolution).

Source Example Duration Resolution Size (Kb)
Lingua Libre LL-Q33302 (fsl)-Taliba31-comédien.webm 2.0 s 640 × 480 622 KB
LSF-data Adolescent.webm 2.0 s 1,280 × 720 123 KB

Increase Quality

When I worked on the project I played a bit with FFMPEG options to get video as light and sharp as possible, i.e. with minimal blur on movement and small size as I targeted mobile usage.

My encoding script used the libvpx-vp9 codec and a bunch of other option for mobile (640x480) and desktop (1280x720).

Hope this could help

@hugolpz
Copy link
Member

hugolpz commented Mar 12, 2024

We are recording with vp9 too so this is a bit weird :

mimeType = 'video/webm;codecs="vp9,opus"';

@hugolpz hugolpz added feature New feature or request question Further information is requested labels Mar 12, 2024
@edouard-lopez
Copy link
Author

With what options? Default are not great, but the VP9 doc is really well done

@hugolpz hugolpz added this to the Far away milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants