Skip to content

Instantly share code, notes, and snippets.

@xenodium
Last active December 3, 2022 18:02
Show Gist options
  • Save xenodium/219325e4e8244a0018eb7e9fb71350ec to your computer and use it in GitHub Desktop.
Save xenodium/219325e4e8244a0018eb7e9fb71350ec to your computer and use it in GitHub Desktop.
dwim-shell-commands-video-to-hevc-mkv
(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")))
@DivineDominion
Copy link

Enquote the paths: --output '<<fne>>.mkv' '<<f>>'

@xenodium
Copy link
Author

xenodium commented Dec 3, 2022

Oh yes. Thanks. Patched. Also now uses --output '<<fne>>_h265.mkv'

@xenodium
Copy link
Author

xenodium commented Dec 3, 2022

@DivineDominion now using other_video_transcoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment