Lurker News
Hey everyone, for the past like six months I've been working on a portfolio project. I got tired of doing easy projects, so I decided to tackle something bigger and more challenging. That's when I came up with the idea of a video editor. This piece of work is intended to showcase my skills and land me a job, but I like to think when working on projects that my idea is so cool that people will like to use it, and I treat every project like a startup idea. Also I havent seen many open source video editors especially on web so that was one of the points why I decided to make that and not something else, but in the end its learning experience and im not expecting much if at all.

A bit about the video editor itself:
-website: https://omniclip.app/
-its free
-its open source (MIT Licensed)
-its using Webcodecs API for quick rendering
-works fully inside browser, client side, no private data is kept
-I made some readme with more details, im not expecting contributions but I added bit about it: https://github.com/aegir-assembly/omni-clip
Features:
-Trimming
-Splitting
-Supports - Text, Audio, Video (mp4) and Images
-Clip editing on preview - rotating, resizing, text styling and more
-Undo/Redo
-Render in different resolutions, up to 4k.
Things to know before using this editor:
-it is simple editor, but its my main project im working on and improving it.
-right now it only works with videos 25 fps and more but not less
-only 4 tracks -- its something I could improve quickly but forgot
-bug here and there (eg. filmstrip not rendering until timeline scroll moved)
-its not working on phones yet (drag and drop API problems)
I'd love to hear your thoughts and feedback on it.

Comments (90) 40 threads

Show all comments

Showing thread 11 of 40

chompychop1 reply#
Awesome work! Could you tell us a little about how you went about building this? What resources would you recommend for learning to build something like this?
zenkyu#
honestly when starting this project I knew that the rendering is most expensive, thats what I started digging into first and I found webcodecs API, it was like dream come true for my project, but that was just a start of my painful journey :D theres little tutorials how to use it, fortunately most of the issues I faced I could find solution on just github issues. Webcodecs is just decoding and encoding, but part of rendering is also muxing and demuxing, I recommend using ffmpeg wasm for that, or build your own webassembly version which should be leaner if you really need that. Generally the rendering process consists of a canvas that you need to draw things on in right order and place and time. First you demux your video file and decode its frames using webcodecs decoder, decoder is doing its work inside worker, you push those frames as they are decoded to some array and in the same time you draw those frames and other stuff on canvas and dispose/close the frames that are already drawn and are not needed, at the end of each canvas draw you send that canvas to another worker with encoder, encoder is doing its work encoding frames, and you push those encoded frames to some binary array, at the end of the work you just mux those frames and save the file :) I dont know if it makes sense, might not because i know those stuff may sound confusing .. but If you take it bit by bit i assure you will make it

I did watched this video to get some broad idea how all that works, https://portal.gitnation.org/contents/pushing-the-limits-of-...