Skip to content

Convert webm videos to something that can be posted on X / Twitter, using ffmepg running in the browser

Notifications You must be signed in to change notification settings

jtpio/webm2XTwitter

Repository files navigation

webm2xtwitter

a screenshot showing the app

Usage

  1. Record your WebM video, for example with the built-in GNOME Screen Recorder on Linux
  2. Go to https://jtp.io/webm2XTwitter/
  3. Drop your .webm video
  4. Click on Convert
  5. Click on Download when ready to download the converted video

Motivation

There are several motivations for this project:

  • X / Twitter does not support .webm files
  • The tool I was using before (Peek) does not support Wayland (the default on recent Linux distributions). And it is also not maintained anymore (phw/peek#1191)
  • The default Gnome screen recorder tool works on Wayland, but it does not support exporting to anything else other than .webm

This small projects tries to address the gap of recording a screencast on Wayland in .webm, and be able to post it as a video on X / Twitter.

It's possible to achieve the same by just running ffmpeg manually locally in a terminal. But this is tedious and the command should be saved somewhere. Now that ffmpeg can run in the browser via WebAssembly, this small app should make it more convenient to handle this process in a browser directly in a more user-friendly way.

Contributing

Please feel free to contribute! For now the app is pretty barebone and was quickly put together to fullfill the motivation described above.

Development setup

# install dependencies
npm i

# download the ffmpeg assets
npm run download

# run the Tailwind watch script
npm run watch:css

# start the server
npm run start

About

Convert webm videos to something that can be posted on X / Twitter, using ffmepg running in the browser

Resources

Stars

Watchers

Forks