• 2 Posts
  • 434 Comments
Joined 6 months ago
cake
Cake day: October 7th, 2025

help-circle







  • I tried gnome when I first tried Linux, because everyone said how much like macOS it is.

    It is not, in fact, anything like macOS. I very quickly got pissed off with having to install extensions to match what I was used to, so gave up and left Linux alone for a few years. Now I use KDE on everything and I couldn’t be happier.













  • In the process of shifting my entire iCloud photo library over to Immich, I’ve discovered that a huge amount of the videos I’ve shot over the years with various iPhones are ridiculously huge x264 .MOVs. So I’ve been fiddling about with ffmpeg this morning, and have landed upon this script that re-encodes them to around 10% of their original size with no visible loss of quality, and retains EXIF metadata. One video I have is 90 seconds long, and is of bats filmed at twilight over a large pond in the New Forest. The original is 132mb, but because most of the clip is basically black, it’s been able to compress it to 2mb. Which is mad.

    Anyway.

    Navigate your terminal to a folder that contains a bunch of videos and paste this in, then sit back and let ffmpeg work its magic:

    for i in *.MOV; do ffmpeg -i "$i" -map_metadata 0 -vcodec libx265 -crf 30 -tag:v hvc1 -movflags use_metadata_tags "${i%.*}.mp4"; done
    

    For just the odd one or two videos, here’s the basic ffmpeg command:

    ffmpeg -i input.mp4 -map_metadata 0 -vcodec libx265 -crf 30 -tag:v hvc1 -movflags use_metadata_tags ouput.mp4
    

    God, I love ffmpeg.