Code Monkey home page Code Monkey logo

simple-af-video-converter's Introduction

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

simple-af-video-converter's People

Contributors

berlyozzy avatar

Stargazers

fadhlu avatar Noviclos avatar Agustinus Nathaniel avatar Max Justus Spransy avatar Gabriel de Jesus avatar Alex Thomsen avatar Johannes Farmer Knudsen avatar Devansh Parapalli avatar  avatar Marc Guiselin avatar  avatar İnanç Dokurel avatar Sawyer Click avatar Doug MacMillan avatar Antonio Forgione avatar Rodrigo França Silva avatar Riel CFB avatar Jes Gonzalez avatar delanyo agbenyo avatar volodymyr.sakharov avatar Vladimir avatar dmitriym09 avatar  avatar Morgan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.