Open slevente opened 12 years ago
Does anyone have a suggestion for my problem?
I have the same problem too
Is this fixed with the latest code in the repository? Some updates were made regarding recorded movie orientation.
I still see this issue. I have a landscape app and the movie written to disk is inverted. I double checked when I play it in quicktime. Can someone confirm if this is fixed?
Thanks
Is this issue fixed? I am experiencing the same problem. Portrait movies come out fine while landscape movies are sideways
I am using your framework and stumbled in the following problem: recording videos with the GPUImageMovieWriter I could not determine in which orientation was the video recorded, landscape left or landscape right. I am using the following function to determine the orientation of a recorded video:
(UIInterfaceOrientation)orientationForTrack:(AVAsset )asset { AVAssetTrack videoTrack = [[asset tracksWithMediaType:AVMediaTypeVideo] objectAtIndex:0]; CGSize size = [videoTrack naturalSize]; CGAffineTransform txf = [videoTrack preferredTransform];
if (size.width == txf.tx && size.height == txf.ty) return UIInterfaceOrientationLandscapeRight; else if (txf.tx == 0 && txf.ty == 0) return UIInterfaceOrientationLandscapeLeft; else if (txf.tx == 0 && txf.ty == size.width) return UIInterfaceOrientationPortraitUpsideDown; else return UIInterfaceOrientationPortrait; }
This method works fine for videos recorded with the default camera application, but it fails detecting correct landscape orientation for videos recorded with the GPUImage framework. The preferredTransform of the videoTrack is different for GPUImage videos as for videos recorded with the default application. I double checked that I set the outputImageOrientation of the videocamera, so that is not the problem. Please fix this bug or try to guess where else can the problem be.
Thank you, Levi