-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Hello,
First of all, thank you for building and supporting this library. It saved me a significant amount of time.
Unfortunately, lately, I discovered the following issue – when I try to export the landscape video as a portrait video with the AVVideoScalingModeResizeAspectFill, it correctly crops the video horizontally, but doesn't scale it vertically. Please see the images attached below.
The expected result of compression:

The configuration used:
let compression = [
AVVideoAverageBitRateKey: NSNumber(integerLiteral: 1500000),
AVVideoProfileLevelKey: AVVideoProfileLevelH264BaselineAutoLevel as String
] as [String: Any]
exporter.videoOutputConfiguration = [
AVVideoCodecKey: AVVideoCodecType.h264,
AVVideoWidthKey: NSNumber(integerLiteral: 720),
AVVideoHeightKey: NSNumber(integerLiteral: 1280),
AVVideoScalingModeKey: AVVideoScalingModeResizeAspectFill,
AVVideoCompressionPropertiesKey: compression
]
Has anyone faced this issue or does a know a way around it?
Thank you!
sjmueller
Metadata
Metadata
Assignees
Labels
No labels


