Skip to content

Implement Faster Encoder/Decoder #10

@josephernest

Description

@josephernest

Congrats for the project!

Import

Adding a MP4 file is very slow: I tried with a 12 MB .mp4 file.

After 2 minutes I am still at "6.45% loading...", so it would require 30+ minutes to load a small 12 MB MP4 file!
What is in your opinion the reason of this slow processing?

Which browser API / algorithm do you use to import MP4 files ? What does it do exactly? Do you think there is room for improvement?
Maybe ffmpeg using WASM?

Suggestion: with this method: https://stackoverflow.com/questions/4429440/html5-display-video-inside-canvas
you can import a HTML5 <video> into a <canvas> with no loading time at all.

Export

Same question for export: which exporting/encoding technique do you use? Is there a ffmpeg or a browser API under the hood?

Or do you use a technique like https://webrtc.github.io/samples/src/content/capture/canvas-record/?
They use here the MediaRecorder API: https://github.com/webrtc/samples/blob/gh-pages/src/content/capture/canvas-record/js/main.js

Tested platform: Windows, Chrome 101

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions