Skip to content

png

How to extract video (mp4) and photos (png) from moving photos (HEIC) using Python3

Overview

Much like other mobile users, I have come to enjoy the feature referred to as moving photos. For those of you who might not be familiar, it is a feature which adds a short video to your photos as you take the photo. When viewing the photo, it gives you the option to also view the short video clip associated with that photo. The challenge I was facing was related to what happens to the video portion after the photos has been edited, or more specifically, how to get the video out of the photo before losing it.