Skip to content

berlyozzy/Simple-AF-Video-Converter

Repository files navigation

Simple AF Video Converter 🔥

This project started as a semi-last resort to convert WebM files to MP4. WebM video file format has a known issue where generated files don't support seeking, meaning that the file metadata is incomplete (Total Frames and duration are unknown). Importing the files in Premiere, Adobe Encoder and Blender results in an error, VLC - crashes. Free online solutions were not an option due to NDA.

After trying different solutions for a couple of hours, I created a script based on FFMPEG node package, allowing to convert files based on provided parameters.

To make this solution more accessible to other potential users, who don't feel comfortable editing the script for every conversion, I created an Electron application as a wrapper for the ffmpeg.wasm

This is a simple wraper application missing some important features to work ffmpeg, like multiple pass support and (possibly) more (as I'm not an ffmpeg expert/enthusiast).

I'm not a master at Electron and Svelte. The source code is not perfect, especially the communication between main context and renderer -> svelte app.


default (default)

render setup (render setup)

render results (render results)

Files can be excluded from the render list


Stack

Limitations

  • Multi-threading need to be configured per external libraries
  • Maximum input file size is 2GB
  • FFMPEG is running in the main context to take advantage of the Node libraries, meaning that there can be delays during render process with displaying ffmpeg logs (I want to move it to a node child process at some point)
  • FFMPEG running in the main context also means that the rendering process stopped separately (either kill the whole app, or wait for the render to complete)

Useful Resources


salem


with ❤️ by berlyozzy / Aleksandrs "Sasha" Domkovs

About

A simple video converter | Electron FFMPEG wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published