Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lfrc - Added hotkey which compresses selected videos (webm,mkv,mp4) via ffmpeg #1375

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

TheYellowArchitect
Copy link
Contributor

@TheYellowArchitect TheYellowArchitect commented Nov 18, 2023

It is essentially a glorified ffmpeg -i input.video -vcodec libx265 -crf "$compressionRatio" output.mp4

  1. It checks if a non-video file is selected (skips it)
  2. It properly parses .mp4 to .mp4 (by temporarily renaming the original file)
  3. Automatically deletes the original file, but only if it finished conversion (so you can safely interrupt this operation)
  4. Notifies the user on completion (so you can mass-compress some olde folder and Super+Shift+9 and continue your work)

Mapped into a hotkey (Alt+x) because it fits near the extract. But change freely. Keep in mind it must not conflict the keymaps added in #1374 and #1373

Basically it is the following command but with proper checks and for multiple files: ffmpeg -i input.video -vcodec libx265 -crf  output.mp4
@TheYellowArchitect TheYellowArchitect changed the title Added lfrc hotkey which compresses videos (webm,mkv,mp4) via ffmpeg lfrc - Added hotkey which compresses videos (webm,mkv,mp4) via ffmpeg Nov 18, 2023
@TheYellowArchitect TheYellowArchitect changed the title lfrc - Added hotkey which compresses videos (webm,mkv,mp4) via ffmpeg lfrc - Added hotkey which compresses selected videos (webm,mkv,mp4) via ffmpeg Nov 18, 2023
… now is split between header and body (so title gets automatically bold and is cleanly seperated from the list). Removed the check for compressionRate because of a bizzare lf bug.
…t was commented out. Now it's fixed, just had to remove quotations from regex.
…nters on entering the 2nd character. No need to press 2 digits then press enter. Now you write 2 digits and the enter is pressed automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant