[go: up one dir, main page]

Skip to content

NelloKudo/SimpleWebMtoMP4Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple WebM to MP4 Converter

Convert your WebM videos with ease.

repobanner

Index

Features

convertvideo

Well, the title speaks for itself: given one (or more) WebM videos, the app simply converts them in MP4 using ffmpeg binaries for both Windows and Linux.

This happens to be extremely useful especially with animethemes, catbox or animemusicquiz files, to create Party Rankings or just share those bangers around.

The available presets for converting are ffmpeg's default ones:

  • ultrafast
  • superfast
  • veryfast
  • faster
  • fast – default preset
  • medium
  • slow
  • slower
  • veryslow

A slower compression means a better compression (and, in some cases, quality): just use the one worth your time. You can read more about it at here

You can also set CRF according to your needs: the apps bundles a brief summary of what it is.

Installation

Windows

Windows users can just download the zip file from here or the compressed .exe file and start converting 8)

Linux

Linux users can instead use the install.sh script in the repo (you need wget):

sh -c "$(wget -O- https://raw.githubusercontent.com/NelloKudo/SimpleWebMtoMP4Converter/main/install.sh)"

## You can also reinstall with:
sh -c "$(wget -O- https://raw.githubusercontent.com/NelloKudo/SimpleWebMtoMP4Converter/main/install.sh)" -- --reinstall

## Or uninstall with:
sh -c "$(wget -O- https://raw.githubusercontent.com/NelloKudo/SimpleWebMtoMP4Converter/main/install.sh)" -- --uninstall

Compiling from source

Compiling should be possible pretty much everywhere, but MacOS isn't supported yet (it's coming soon tho).

Windows

Install Python and during installation, make sure to add Python to your PATH environment.

Install Git too as it's needed to properly clone the repository.

Open Powershell and install PyInstaller:

# Install PyInstaller
pip install pyinstaller

# Update pip and install Pillow
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow

Then clone the repository and cd into it:

git clone https://github.com/NelloKudo/SimpleWebMtoMP4Converter.git
cd SimpleWebMtoMP4Converter

Once in the folder, compile your executable with:

# Using pyinstaller to point to binaries, theme and logo (run it as a whole command):

pyinstaller --add-binary "./bin/ffmpeg-2023-04-03-git-windows/bin/ffmpeg.exe;bin/" --add-data "theme/forest-dark/*;theme/forest-dark" --add-data "theme/forest-dark.tcl;theme" --add-data "misc/*;misc" --name=SimpleWebMtoMP4Converter --onefile --noconsole --icon="./misc/logo.ico" --hidden-import=PIL --hidden-import=PIL._imagingtk --hidden-import=PIL._tkinter_finder .\SimpleWebMtoMP4Converter.py

# When it's done, finally finish creating the .exe with:

pyinstaller .\SimpleWebMtoMP4Converter.spec

If you want to compile the portable version instead:

# Using pyinstaller to point to binaries, theme and logo (run it as a whole command):

pyinstaller --add-binary "./bin/ffmpeg-2023-04-03-git-windows/bin/ffmpeg.exe;bin/" --add-data "theme/forest-dark/*;theme/forest-dark" --add-data "theme/forest-dark.tcl;theme" --add-data "misc/*;misc" --name=SimpleWebMtoMP4ConverterPortable --noconsole --icon="./misc/logo.ico" --hidden-import=PIL --hidden-import=PIL._imagingtk --hidden-import=PIL._tkinter_finder .\SimpleWebMtoMP4Converter.py

# When it's done, finally finish creating the .exe with:

pyinstaller .\SimpleWebMtoMP4ConverterPortable.spec

You'll find your builds in the dist folder.

Linux

Install python, python-pip, python-tk and git according to your distro; after that:

# Install PyInstaller
pip install pyinstaller

# Update pip and install Pillow
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow

Then clone the repository and cd into it:

git clone https://github.com/NelloKudo/SimpleWebMtoMP4Converter.git
cd SimpleWebMtoMP4Converter

Once in the folder, compile your executable with:

# Using pyinstaller to point to binaries, theme and logo (run it as a whole command):

pyinstaller --add-binary "./bin/ffmpeg-2023-03-13-git-amd64-linux/ffmpeg:bin/" --add-data "theme/forest-dark/*:theme/forest-dark" --add-data "theme/forest-dark.tcl:theme" --add-data "misc/*:misc" --name=SimpleWebMtoMP4Converter --onefile --noconsole --hidden-import=PIL --hidden-import=PIL._imagingtk --hidden-import=PIL._tkinter_finder ./SimpleWebMtoMP4Converter.py

# When it's done, create your binary:

pyinstaller SimpleWebMtoMP4Converter.spec

If you want to compile the portable version instead:

# Using pyinstaller to point to binaries, theme and logo (run it as a whole command):

pyinstaller --add-binary "./bin/ffmpeg-2023-03-13-git-amd64-linux/ffmpeg:bin/" --add-data "theme/forest-dark/*:theme/forest-dark" --add-data "theme/forest-dark.tcl:theme" --add-data "misc/*:misc" --name=SimpleWebMtoMP4ConverterPortable --noconsole --hidden-import=PIL --hidden-import=PIL._imagingtk --hidden-import=PIL._tkinter_finder ./SimpleWebMtoMP4Converter.py

# When it's done, create your binary:

pyinstaller SimpleWebMtoMP4ConverterPortable.spec

You'll find your builds in the dist folder.

License

This program is licensed under GNU General Public License v3.0, therefore allowed to bundle what needed for it to work.

Huge thanks to: