Skip to main content

Excuse the weird background audio – got TheRadBrad playing Spiderman 2 on in the background 😉

Okay – quick vid of Sock, filmed on iPhone 15 Pro Max in Cinematic mode. Nice depth of field effect. Wish Apple didn’t keep referring to defocus in general as “bokeh”; it’s not. Bokeh is the pattern of circles/iris shapes you see when there are point hilights out of focus, not the overall defocus look. Hey ho.

This is the video with no depth / defocus applied:

… and this is the depth map, extracted using MP4Box and ffmpeg:

OK – to extract the depth map, you need the video file in unprocessed state. From the Photos app in iOS, hit the Share button and choose Export unmodified original. The only destination option I was given was iCloud Drive, but that’s better than nothing.

Then (and this process is straight from the remarkable Jan Kaiser – https://twitter.com/jankais3r or @jankais3r@defcon.social on Mastodon) …

MP4Box -add self#2:hdlr=vide MYCATVIDEO.mov -out remux.mp4 
ffmpeg -vcodec hevc -i remux.mp4 -map 0:1 map.mp4

The MP4Box utility is part of the GPAC app for Macs; install GPAC and you’ll find MP4Box appears in your Applications folder.

Leave a Reply