I know this sounds complicated but I was wondering if it would be possible to get and extract frames of a particular short 4 second video in a temp directory (or else where). thanks for the help
How to get button to open video and extract the video in frames to temp directory
If what you want is to have each frame decompressed individually, it is complicated. I do some frame-by-frame video processing, and quick look at some of my code reveals use of the following:
- AVURLAsset
- AVAssetReader
- AVAssetReaderTrackOutput
- .copyNextSampleBuffer()
- CMSampleBufferGetImageBuffer
- CVPixelBufferGetBaseAddressOfPlane
- CVPixelBufferLockBaseAddress
- etc.
It's easy to get lost in the weeds...