Tuesday, January 9, 2024
HomeiOS Developmentios - Extract the 3D Stereo Photos from a 3D Video in...

ios – Extract the 3D Stereo Photos from a 3D Video in Apple Format mv-hevc


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];
}`



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments