Last active
December 3, 2022 18:02
-
-
Save xenodium/219325e4e8244a0018eb7e9fb71350ec to your computer and use it in GitHub Desktop.
dwim-shell-commands-video-to-hevc-mkv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dwim-shell-commands-video-to-hevc-mkv () | |
"Convert all marked videos to hevc mkv." | |
(interactive) | |
(dwim-shell-command-on-marked-files | |
"Convert video to h265 " | |
"REPO_DIR=/tmp/other_video_transcoding | |
if ! [ -d \"$REPO_DIR\" ] | |
then | |
git clone https://github.com/donmelton/other_video_transcoding.git $REPO_DIR | |
fi | |
pushd $REPO_DIR | |
git pull origin master || echo \"skipping repo update...\" | |
popd | |
ruby $REPO_DIR/bin/other-transcode --hevc '<<f>>'" | |
:utils '("git" "ffmpeg" "mkvtoolnix" "mpv"))) |
Oh yes. Thanks. Patched. Also now uses --output '<<fne>>_h265.mkv'
@DivineDominion now using other_video_transcoding.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enquote the paths:
--output '<<fne>>.mkv' '<<f>>'