Giter Club home page Giter Club logo

ffmpeg-trim-and-compress's Introduction

FFMPEG Trim And Compress

Deployment

https://ffmpeg-trim-and-compress.vercel.app/

Why did I make this?

I have been using ffmpeg as a command line tool for years to trim and convert my gaming clips from large files, which are roughly 2GB for 5 minute clips, to h.264 encoded clips. Resulting in much smaller file sizes that can be easily shared online. However the person I play most frequently with doesn't do this and his current method of sharing his best gaming moments is to use his phone to record his screen as the clip plays in a media player.

Call of Duty recorded with phone

With this web app he is able to easily trim and convert his clips to a filesize that can be sent over facebook, google drive, etc and my life is more pleasant because of it.

Technology

ffmpeg.wasm

React.js

TailwindCSS

Usage

  • Drag and drop or select an mp4 file
  • Change the trim inputs to the start and end points for the clip
  • Select the desired quality
  • Hit convert and wait for the conversion
  • Look at the results and save the video

Advantages

It's free and it's easy to use.

Your data never leaves your computer.

The WebAssembly package creates a temporary filesystem in your computer's memory. When you click save you are getting the file from this temporary filesystem and saving it to your hard drive.

Limitations

It does not work on mobile. There is an issue with using SharedArrayBuffer on mobile browsers and older versions of desktop browsers.

There is a 2GB file size limit as WebAssembly cannot currently handle anything bigger.

Conversion can take a looooong time.


TODO

  • Make it a PWA

  • Progress bar for conversion

  • Trim only option

  • Solve mobile compatibility issue

ffmpeg-trim-and-compress's People

Contributors

jezzabell91 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.