Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies:

handbrakecli

(command line interface) which you can find on own from the official website
or
specifically at:
https://handbrake.fr/downloads2.php
or

Linux

flatpak install fr.handbrake.ghb

ffprobe

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.

Note:

You must point the program to installed dependencies:

Linux Windows
HandBrakeCLI the output from
which fr.handbrake.ghb
location of
HandBrakeCLI.exe
via line 1 of
resources/path_handbrake.md
ffprobe the output from
which ffprobe
location of
ffprobe.exe
via line 1 of
resources/path_ffprobe.md



v1.0.7 Update:


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

Dear ImGui,

SDL3 and

Vulkan.


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 .mp4 for 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 the preset.json contents into slowpreset.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.

Extra Details:

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 runs handbrakecli and display progress
  • wait until it finishes and exit

- blank

About

Simple drag'n'drop to converts videos to a filesize under 10MB

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors