I would really like extract the each 3D Stereo Photos (left/proper) from a 3D Spatial Video in mv-hevc apple Format. I take advantage of code, iOS, goal c.
`Right here is my code for learn a 2D Video: (Xcode, goal c)
NSURL *inputVideoURL = [NSURL fileURLWithPath:inputVideoPath];
AVURLAsset *inputAsset = [AVURLAsset URLAssetWithURL:inputVideoURL options:nil]; AVAssetImageGenerator *imageGenerator = [AVAssetImageGenerator assetImageGeneratorWithAsset:inputAsset];
for (int i=1;i<=maxx;i++) {
CMTime time = CMTimeMake(i, (int32_t)frameRate); //CMTimeMakeWithSeconds(i * (1.0 / frameRate), CGImageRef imageRef = [imageGenerator copyCGImageAtTime:time actualTime:NULL error:&error];
UIImage *picture=nil;
picture = [UIImage imageWithCGImage:imageRef];
}`