Hi, I would like read the left and right image from an apple 3D Spatioal Video (mv-hevc). I have a code for read 2D Videos with AVAssetImageGenerator. Can you help me with Xcode, Objective 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 *image=nil;
image = [UIImage imageWithCGImage:imageRef];
}