Adds (my) commonly used FFmpeg commands to the right click context menu in Windows.
- You need FFmpeg downloaded and included in your path.
- Have Rust installed.
- Clone or download this repo
- While in the folder run
cargo build --release
. - Add the binary path and values (listed below) to the registry so they appear on a right click in File Explorer (tutorial coming soon).
You can either add the binary path and values to the registry to have it on your right click context menu when you click on a file.
Alternatively, you can add the binary to your path and run it like this from command line:
ffmpeg-context-menu <full-path-to-file> <value>
Example:
ffmpeg-context-menu "C:\Users\<username>\Videos\video.mp4" "new"
All of these make a new video file, the original isn't edited in any way. These are the accepted values and what they do:
"new"
- new file, uses the flag-crf 28
"half_size"
- new file, half the width of the original, and with the flag-crf 28
"audio"
- new .mp3 file from the audio (currently only pulls audio from the first audio track)"mp4"
- new .mp4 file"no_audio"
- new file, all audio tracks removed, and with the-crf 28
flag"fix"
- new file with the-err_detect ignore_err
flag"265"
- new file in the 265 format"remove_border"
- Coming soon, finds and removes the black borders / space around the video, and crops it
Here is the documentation on FFmpeg flags, if you would like to make your own commands.
- finding and cropping out black borders from videos
- make the
"audio"
command pull audio from all audio tracks and not just the first one - writing install script in Rust that will add all these commands to registry in Windows
- writing uninstall script in Rust that will remove all these commands from the registry in Windows
- add tutorial on how to add and remove these values from the registry manually
- add support for Linux?
There's some FFmpeg commands I frequently use and I found it helpful to have them easily available from the right click context menu, rather than have to type everything out in command line, or use a GUI like HandBrake or Shutter Encoder.
I originally made this in Python but I would like to learn Rust so I decided rewriting this simple command line program would be a good way to learn.