mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vtenc: set H264_Baseline_AutoLevel on OSX as well
This commit is contained in:
parent
d0ce9a6f7c
commit
d800ac023b
1 changed files with 4 additions and 3 deletions
|
@ -43,6 +43,10 @@ GST_DEBUG_CATEGORY (gst_vtenc_debug);
|
|||
const CFStringRef
|
||||
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder =
|
||||
CFSTR ("EnableHardwareAcceleratedVideoEncoder");
|
||||
const CFStringRef kVTCompressionPropertyKey_ProfileLevel =
|
||||
CFSTR ("ProfileLevel");
|
||||
const CFStringRef kVTProfileLevel_H264_Baseline_AutoLevel =
|
||||
CFSTR ("H264_Baseline_AutoLevel");
|
||||
#endif
|
||||
|
||||
enum
|
||||
|
@ -566,14 +570,11 @@ gst_vtenc_create_session (GstVTEnc * self)
|
|||
gst_vtenc_session_configure_expected_framerate (self, session,
|
||||
(gdouble) self->negotiated_fps_n / (gdouble) self->negotiated_fps_d);
|
||||
|
||||
/* FIXME: This is only available since OS X 10.9.6 */
|
||||
#if HAVE_IOS
|
||||
status = VTSessionSetProperty (session,
|
||||
kVTCompressionPropertyKey_ProfileLevel,
|
||||
kVTProfileLevel_H264_Baseline_AutoLevel);
|
||||
GST_DEBUG_OBJECT (self, "kVTCompressionPropertyKey_ProfileLevel => %d",
|
||||
(int) status);
|
||||
#endif
|
||||
|
||||
status = VTSessionSetProperty (session,
|
||||
kVTCompressionPropertyKey_AllowTemporalCompression, kCFBooleanTrue);
|
||||
|
|
Loading…
Reference in a new issue