From cd16c0a9bf682b77b0fe8f18eb6e61b95cfa489e Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Tue, 17 Sep 2024 22:21:41 +1000 Subject: [PATCH] fix(ios): transcode dimensions should be divisible by 2 (#971) --- .../apple/ios/listener/video/ScreenRecordingListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/vendor-apple/ios/src/main/kotlin/com/malinskiy/marathon/apple/ios/listener/video/ScreenRecordingListener.kt b/vendor/vendor-apple/ios/src/main/kotlin/com/malinskiy/marathon/apple/ios/listener/video/ScreenRecordingListener.kt index 30c8416ab..fb298959f 100644 --- a/vendor/vendor-apple/ios/src/main/kotlin/com/malinskiy/marathon/apple/ios/listener/video/ScreenRecordingListener.kt +++ b/vendor/vendor-apple/ios/src/main/kotlin/com/malinskiy/marathon/apple/ios/listener/video/ScreenRecordingListener.kt @@ -177,7 +177,7 @@ class ScreenRecordingListener( listOf( "sh", "-c", - "${videoConfiguration.transcoding.binary} -i $tempFile -vf \"scale=${size.value}:${size.value}:force_original_aspect_ratio=decrease\" -preset ultrafast $optional $src" + "${videoConfiguration.transcoding.binary} -i $tempFile -vf \"scale=${size.value}:${size.value}:force_original_aspect_ratio=decrease:force_divisible_by=2\" -preset ultrafast $optional $src" ) ) if (result?.successful == false) {