(command line interface)
which you can find on own from the official website
or
specifically at:
https://handbrake.fr/downloads2.php
or
flatpak install fr.handbrake.ghb
which comes with ffmpeg
which you can find on own from the official website
or
specifically at:
https://ffmpeg.org/download.html
both requirements are shipped with releases.
You must point the program to installed dependencies:
| Linux | Windows | ||
|---|---|---|---|
| HandBrakeCLI | the output fromwhich fr.handbrake.ghb |
location ofHandBrakeCLI.exe |
via line 1 ofresources/path_handbrake.md |
| ffprobe | the output fromwhich ffprobe |
location offfprobe.exe |
via line 1 ofresources/path_ffprobe.md |
Windows is not currently supported.
I moved to Linux, and I haven't figured out how to get Mingw working for Windows builds.
Until such at time as I do, or someone let's me use their Windows machine dev/build, releases will be Linux only.
Sorry.
While the new source code is left out,
the program is now entirely cpp,
using
SDL3
and
Changes:
- press Escape, Alt+F4 or right-click the taskbar entry and choose 'close' to exit.
- you can also just open with Discorder now
if you set the default to Discorder then change it back to whatever it was before,
Discorder should show up in the open with menu. - if the video you're converting is less than ~9MB Discorder will use the slowpreset otherwise it'll use the normal one.
The reasoning is if a video is that small it won't take that long to re-encode it anyway,
so might as well ensure the best quality possible. - Not really a change, but worth noting that all files will be converted to
.mp4for maximum compatibility however,
options for this can be added in the future. - Lastly, you can replace the preset files with your own, just export a preset from handbrake.
(or copy thepreset.jsoncontents intoslowpreset.json)
for Linux, I tried just reading the `which` cmd output but flatpak installs to a non-path directory,
so using the user-pointed method is still the best option.
I couldn't figure out how to display progress through AHK,
so I just made in write up a powershell script and then execute it.
The full process is:
- display drop UI
- wait for dropped item
- get ffprobe path and ask it for the duration of the file
- calculate the needed average bitrate to ensure a filesize less than 10MB
- get handbrakecli path
and set up the powershell script ('ReEncode.ps1') with the parameters - parameters are set inside a premade
preset.json&slowpreset.json - a final param is added at the end to overwrite the bitrate option in
preset.json - then we just run
the powershell script which just runshandbrakecli and display progress - wait until it finishes and exit
- blank