Retrieving Slow Motion Metadata from Captured Video in iOS

We have a video application that imports video from a user's camera roll. Our problem is to import slo-mo-video made using our own camera application. We can recognize that there is a higher normal frame rate (e.g. 120 or 240 frames per second).

What we cannot find is meta-information indicating when the video falls in slow motion and when it accelerates again. Does anyone know where this information is stored, and / or how to get it? Is it in the file itself or stored in a separate meta file somewhere?

Any help would be greatly appreciated, thanks!

+7
ios avfoundation alassetlibrary
source share
2 answers

Slow motion segments are not technically metadata. They have a type of UITrackSegment , which you can read here here.

The result of the zoom method on the track creates a TimeMapping object that plays the track at the speed of its source.duration / target.duration. You can learn more about this in this blog post .

+1
source share

Unfortunately, the answer is NO. ALAsset video files do not contain any information related to the start and end points of the Slo Mo segment in high FPS video.

Contact: https://devforums.apple.com/message/1025773#1025773

0
source share

All Articles