I downloaded xenodium's dwim-shell-commands
package a while back, and I added my own little extension:
(defun dwim-shell-commands-mkv-to-mp4 () "Convert to mkv to mp4" (interactive) (dwim-shell-command-on-marked-files "Convert to mov to mp4" ;; https://stackoverflow.com/questions/63664953/converting-mkv-to-mp4 "ffmpeg -i '<<f>>' -map 0 -c copy -c:a aac '<<fne>>'.mp4" :utils "ffmpeg"))
I'm trying to record more video lately and I use OBS. I like outputting in mkv format as it allows OBS to pause recordings. But mkv
isn't web-friendly, and mp4
enjoys universal support by browsers as a MIME type.
Instead of slapping my video into kdenlive each time and rendering into mp4, it's quicker for me (and less context switching) to hit M-x dwim-shell-commands-mkv-to-mp4
from a dired buffer.
Just as easily of course, you could attach a command line tool to dired without dwim-shell-commands.
I'll still use kdenlive for when I need to cut and splice.
Have a good weekend!