After many trips and vacations, my Apple Photos library was more than 500 gigabytes big. What can I do to make my library smaller? I start to use H265 (HEVC) for my videos.
My big Apple Photos Library
Apple Photos is my main media storage application where I store all my videos and photos. All my media is synced to the Apple cloud with iCloud. If I make a picture with my iPhone it will automatically appear on my MacBook Pro. But it also happens vice
Slowly my Apple Photos library is growing bigger and bigger. You go on a trip and shoot a lot of videos. You found an old folder filled with old vacation photos and videos on an external drive. Your parents send you old pictures they scanned. All those media files I collect in Apple Photos. Before you know the library is around 550

A couple of months ago I decided that its time to take control of my media collection. I did every day a
HEVC
In the autumn of 2017, Apple released its new operating systems. OSX 10.13 for Apple computers and IOS 11 for mobile devices. In this software, Apple introduced a new codec for video and photos. Let’s talk about this new codec for video. HEVC. What stands for High-Efficiency-Video-Coding. It is a better compression for storing video. Apple claims that it can make your video twice as small as the previous video codec they used: H264. I can tell you this is true. But videos I shot with my Canon, Sony, and SJCAM cameras even become smaller.
I made a short youtube video to show the difference in quality between H264 and HEVC. You see the change in quality is negligible. But the saving in disk space is huge!!!
The original video is 34 seconds long and is 224MB big. It’s recorded with a 50Mbit bitrate on a Sony Cybershot RX100 Mark 3 camera. After I encoded the video to HEVC it’s only 17MB big. That’s only 7,5 percent of the original. You will lose some color and sharpness. But for private videos, I don’t have a problem encoding it to HEVC.
I started to encode all my old videos in HEVC format. In the table, you can see some examples of
Camera | Length of the video clip | Size in H264 format | Size in H265 format | Percentage |
SJCAM SJ4000WIFI | 31 seconds | 64.8 MB | 15.1 MB | 23.3 percent |
Apple iPhone 7 | 18 seconds | 195.1 MB | 8.9 MB | 4.6 percent |
Canon Powershot S100 | 160 seconds | 702.5 MB | 85.5 MB | 12.2 percent |
Sony Cybershot RX100 Mark 3 | 37 second | 242.8 MB | 20 MB | 8.2 percent |
Why would I want to make my videos smaller?
Using Permute to encode the videos
When I wrote this blog post there are two good video encoders for making HEVC files for OSX. Handbrake and Permute. Handbrake is free, faster, and offers way more settings than Permute. But I choose to use Permute because of a better workflow. Plus Permute conserve the metadata of the video file. I can tell you that this is super important. Apple Photos is using the date and time metadata in the video for the correct place in the timeline. If your video is shot on 04 January 2013. And you encode it with Handbrake on 08 August 2018. Then Apple Photos will not place that video in the timeline on 04 January 2013 but on 08 August 2018. So your timeline will be messed up. Permute keeps the correct recording date in the encoded video file. Using Permute is too simple to fail. With Handbrake, you can make easy a mistake. There are just
How did I configured Permute?
I made a custom preset for my encoding work. I want to keep the same video and audio quality as the source video. If a video is 4K, it will be downscaled to 1080P.
I have a folder on my desktop with the name “IMPORT APPLE PHOTOS” where Permute automatically saves the encoded videos. I put CPU usage on low so I can use my computer when Permute is busy. Disable previews is also good advice. Otherwise, Permute can spend minutes on making small previews of the videos. For me, that’s not important. It only costs a lot of time.
This is important. You need to tell Permute that you want to preserve the creation date of your video. Otherwise, the encoded
My workflow
In Apple Photos I made an album with the name “To Permute”. When I’m doing my Pomodoro and I find a video which I want to encode to HEVC I just drag that video to the “To Permute album. Before I will sleep or I don’t want to use the computer for a long time I will select all the videos files in the “To Permute” album and do right-click on the files. I choose then edit with Permute.
Apple Photos will prepare all the selected videos and send them to Permute. Check in the left-top bar if you choose the correct preset. The only thing you then need to do is press the start button. Now you need to wait. Some videos are encoded in a couple of minutes. But I also had some long videos that took two days. My MacBook is not that fast. Read my
When Permute is done with encoding I just drag all the video files in the “IMPORT APPLE PHOTOS” to Apple Photos. Do a quick check if the videos are oke. After that
In the near future, I want to use an Apple Script that will import the videos
Three weeks later
In three weeks’ time, my Apple Photo library shrunk from 550 GB to 300 GB. It’s still a work in progress. I hope to get my library under 200 GB. I also hope to find
Happy encoding.
5 Comments
Add Yours →This is exactly the program I was looking for to take my Fuji XH-1 “home movies” and make them smaller. Permute is awesome. Thanks for this article!
Thanks for your tip! I reduced my library size by quite a lot using your Permute workflow. The ability to keep the date is a game changer and something that Handbrake does not offer. Notice that it does not keep the date that you modified in the Photos app itself. If you never changed the date of a video then the date will be fine 🙂
One important issue: There are two different library sizes. The one that you get when you select all photos/videos and click on the info button and the one that you get in Finder when you select the Photos library (usually the latter is quite a lot bigger than the former). I noticed that the actual library size does not get much smaller because many of the old videos are stille stored in Photos library (Package) -> private -> com.apple.photos -> ExternalEditSessions. I deleted these old videos, so far nothing has happened to my library. Proceed with caution and have a backup, but if you really want to save disk space, then get rid of the old videos (meaning the videos that have not been encoded with HEVC) there.
[…] For videos, I haven’t test anything solid yet. However, I found a blog post https://rienkjanschurer.nl/how-to-make-your-apple-photos-library-smaller-use-h265-hevc-for-your-vide… […]
A few years later I stumbled over your description. Permute doesn’t do keep quality anymore – it has video quality low/medium/high/ultra. I’m testing to see the difference but it is unclear what would be the “keep quality setting”. It still does the job and it’s amazing there’s no app yet that can compress inside the photos library without all the import/export steps.
This is a nice workflow! Thanks for sharing!
What I would need additionally, is to shrink already existing videos in my library.
The issue there: they are already edited, ranked eg with a “heart” or sorted in Albums. I’d like to keep this metadata, but replacing the videos your way, would actually be like “importing them new”. So photos places them in the library, but forgets about the previous albums and added metadata of Photos. So all my sorting in albums is gone.
Is there a way to replace movies “in-place” with a reduced version?