Skip to content

Video importer into asset library + extra video import formats - #191

Open
Alani25 wants to merge 10 commits into
developmentfrom
alani-mp4-importer
Open

Video importer into asset library + extra video import formats#191
Alani25 wants to merge 10 commits into
developmentfrom
alani-mp4-importer

Conversation

@Alani25

@Alani25 Alani25 commented Aug 16, 2026

Copy link
Copy Markdown
Member

Users can now import MP4s through the asset library and do not need to open MP4s as a completely separate project, allowing them to add videos as assets into an existing project.

I believe the original MP4 import code I was able to get through stack overflow, but it wasn't optimized enough for our use case. So, while working on this I also added multiple workers for the MP4 importer to speed up the process, and also had the audio extraction work in parallel as well… no idea if this would improve the audio quality but the speed difference is noticable.

Importing a test video of length 1 minute 42.5 seconds at an framerate of 12 FPS resulting in up to ~1230 frames, using a stopwatch to record the import time we get:

  • Old MP4 importer: 3 minutes 17 seconds
  • With 4 workers: 1 minute 49 seconds (1.8x faster)
    ^ I mean zero surprises here it only makes sense

Theoretically we can go for more workers on better devices, specifically with the tauri builds, but 4 workers seems to be the right bar for all devices so far (especially Linux). This may come at a later time.

One last improvement— "MP4" importer now accepts other video formats (mov, webm, mkv, avi, 3gp, ogv, m4v, wmv).
Thanks to the way the current MP4 importer system is set up this was just a matter of allowing the user to select another format. Haven't tested on all formats, but mov and MP4 work (mov is the same format used by apple devices by default, making video import on iphones a lot easier as well).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant