mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -920,7 +920,7 @@ extension CodableToolValue: Codable {
|
||||
}
|
||||
}
|
||||
|
||||
public func recommendedVideoExportConfiguration(values: MediaEditorValues) -> MediaEditorVideoExport.Configuration {
|
||||
public func recommendedVideoExportConfiguration(values: MediaEditorValues, frameRate: Float) -> MediaEditorVideoExport.Configuration {
|
||||
let compressionProperties: [String: Any] = [
|
||||
AVVideoAverageBitRateKey: 2000000,
|
||||
AVVideoProfileLevelKey: kVTProfileLevel_HEVC_Main_AutoLevel
|
||||
@@ -933,7 +933,8 @@ public func recommendedVideoExportConfiguration(values: MediaEditorValues) -> Me
|
||||
AVVideoCodecKey: AVVideoCodecType.hevc,
|
||||
AVVideoCompressionPropertiesKey: compressionProperties,
|
||||
AVVideoWidthKey: 720,
|
||||
AVVideoHeightKey: 1280
|
||||
AVVideoHeightKey: 1280,
|
||||
MediaEditorVideoExport.Configuration.FrameRateKey: frameRate
|
||||
]
|
||||
|
||||
let audioSettings: [String: Any] = [
|
||||
|
||||
Reference in New Issue
Block a user