Skip to content

Instantly share code, notes, and snippets.

@hleroy
Last active March 28, 2020 14:23
Show Gist options
  • Save hleroy/375196216024adfb4f3e8b97b3efd4cf to your computer and use it in GitHub Desktop.
Save hleroy/375196216024adfb4f3e8b97b3efd4cf to your computer and use it in GitHub Desktop.
A KDE service menu to compress *.MOV files (e.g. taken from Canon 5d Mark II) to MP4 720p. Copy this script to one of the directory listed by `kf5-config --path services`
[Desktop Action compressVideo]
Exec=konsole --noclose -e HandBrakeCLI -i "%u" -t 1 --angle 1 -c 1 -o "`FILE="%u"; echo ${FILE%%.*}"_720p.MP4"`" -f m4v -O --decomb -w 1280 --loose-anamorphic --modulus 2 -e x264 -q 19 --vfr -a 1 -E faac -6 dpl2 -R 48 -B 128 -D 0 --gain 0 --audio-fallback ffac3 --x264-preset=placebo --x264-profile=high --x264-tune="film" --h264-level="4.1" --verbose=1
Icon=/home/hleroy/Images/Divers/Icones/handbrake-icon.png
Name=Conversion en MP4 720p
[Desktop Entry]
Actions=compressVideo;
MimeType=
ServiceTypes=
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin,,video/quicktime,video/mp4
X-KDE-Submenu=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment