0
votes

Recorded video from system device camera. Then picking recorded video from gallery using UIImagePickerController. Actual recorded video frame size is (720(w), 1280(h)). that means full screen video with portrait mode. Once I upload video using image picker, getting video size as (1280(w), 720(h)). I am finding video size using below code

    AVURLAsset *asset = [AVURLAsset URLAssetWithURL:videoURL options:nil];
    AVAssetTrack *videoTrack = [[asset tracksWithMediaType:AVMediaTypeVideo] lastObject];
    CGSize nSize = [videoTrack naturalSize];

How to check original video from gallery with out size changes?

1

1 Answers

0
votes

The upload is unrelated. Video rotation is handled by adding a flag the the video metadata. Whatever you are using to read the resolution after the upload is not checking for that flag.