Skip to content

Commit 44539a1

Browse files
committed
Use lower latency realtime hardware profile
1 parent 7477f61 commit 44539a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/XCWH264Encoder.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <stdlib.h>
99

1010
static const int32_t XCWMaximumEncodedDimension = 1920;
11-
static const int32_t XCWMaximumRealtimeHardwareEncodedDimension = 1600;
11+
static const int32_t XCWMaximumRealtimeHardwareEncodedDimension = 1440;
1212
static const int32_t XCWMaximumSoftwareEncodedDimension = 1600;
1313
static const int32_t XCWMaximumLowLatencySoftwareEncodedDimension = 1170;
1414
static const int32_t XCWTargetRealTimeFrameRate = 60;
@@ -812,7 +812,7 @@ - (BOOL)ensureCompressionSessionWithWidth:(int32_t)width height:(int32_t)height
812812
if (@available(macOS 10.14, *)) {
813813
VTSessionSetProperty(session, kVTCompressionPropertyKey_AllowOpenGOP, kCFBooleanFalse);
814814
}
815-
if (_encoderMode == XCWVideoEncoderModeH264Software) {
815+
if (_encoderMode == XCWVideoEncoderModeH264Software || _realtimeStreamMode) {
816816
if (@available(macOS 12.0, *)) {
817817
VTSessionSetProperty(session,
818818
kVTCompressionPropertyKey_ProfileLevel,

0 commit comments

Comments
 (0)