Skip to content

Commit

Permalink
presets: Add H.265 Presets for the Media Foundation encoder. For now,…
Browse files Browse the repository at this point in the history
… these use average bit-rate until we can gather some more data on chipset performance across different platforms.
  • Loading branch information
sr55 committed Jul 13, 2021
1 parent cb83de9 commit f0a933b
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 4 deletions.
228 changes: 224 additions & 4 deletions libhb/handbrake/preset_builtin.h
Original file line number Diff line number Diff line change
Expand Up @@ -8798,6 +8798,218 @@ const char hb_builtin_presets_json[] =
" \"VideoTwoPass\": false, \n"
" \"x264Option\": \"\", \n"
" \"x264UseAdvancedOptions\": false\n"
" }, \n"
" {\n"
" \"AlignAVStart\": false, \n"
" \"AudioCopyMask\": [\n"
" \"copy:aac\"\n"
" ], \n"
" \"AudioEncoderFallback\": \"none\", \n"
" \"AudioLanguageList\": [], \n"
" \"AudioList\": [\n"
" {\n"
" \"AudioBitrate\": 160, \n"
" \"AudioCompressionLevel\": -1.0, \n"
" \"AudioDitherMethod\": \"auto\", \n"
" \"AudioEncoder\": \"aac\", \n"
" \"AudioMixdown\": \"stereo\", \n"
" \"AudioNormalizeMixLevel\": false, \n"
" \"AudioSamplerate\": \"auto\", \n"
" \"AudioTrackDRCSlider\": 0.0, \n"
" \"AudioTrackGainSlider\": 0.0, \n"
" \"AudioTrackQuality\": -1.0, \n"
" \"AudioTrackQualityEnable\": false\n"
" }\n"
" ], \n"
" \"AudioSecondaryEncoderMode\": true, \n"
" \"AudioTrackSelectionBehavior\": \"first\", \n"
" \"ChapterMarkers\": true, \n"
" \"ChildrenArray\": [], \n"
" \"Default\": false, \n"
" \"FileFormat\": \"mp4\", \n"
" \"Folder\": false, \n"
" \"FolderOpen\": false, \n"
" \"Mp4HttpOptimize\": false, \n"
" \"Mp4iPodCompatible\": false, \n"
" \"PictureAutoCrop\": false, \n"
" \"PictureBottomCrop\": 0, \n"
" \"PictureChromaSmoothCustom\": \"\", \n"
" \"PictureChromaSmoothPreset\": \"off\", \n"
" \"PictureChromaSmoothTune\": \"none\", \n"
" \"PictureColorspaceCustom\": \"\", \n"
" \"PictureColorspacePreset\": \"off\", \n"
" \"PictureCombDetectCustom\": \"\", \n"
" \"PictureCombDetectPreset\": \"off\", \n"
" \"PictureDARWidth\": 0, \n"
" \"PictureDeblockCustom\": \"\", \n"
" \"PictureDeblockPreset\": \"off\", \n"
" \"PictureDeblockTune\": \"medium\", \n"
" \"PictureDeinterlaceCustom\": \"\", \n"
" \"PictureDeinterlaceFilter\": \"off\", \n"
" \"PictureDeinterlacePreset\": \"default\", \n"
" \"PictureDenoiseCustom\": \"\", \n"
" \"PictureDenoiseFilter\": \"off\", \n"
" \"PictureDenoisePreset\": \"medium\", \n"
" \"PictureDenoiseTune\": \"none\", \n"
" \"PictureDetelecine\": \"off\", \n"
" \"PictureDetelecineCustom\": \"\", \n"
" \"PictureForceHeight\": 0, \n"
" \"PictureForceWidth\": 0, \n"
" \"PictureHeight\": 2160, \n"
" \"PictureItuPAR\": false, \n"
" \"PictureKeepRatio\": true, \n"
" \"PictureLeftCrop\": 0, \n"
" \"PictureLooseCrop\": false, \n"
" \"PictureModulus\": 2, \n"
" \"PicturePAR\": \"auto\", \n"
" \"PicturePARHeight\": 1, \n"
" \"PicturePARWidth\": 1, \n"
" \"PictureRightCrop\": 0, \n"
" \"PictureRotate\": \"angle=0:hflip=0\", \n"
" \"PictureSharpenCustom\": \"\", \n"
" \"PictureSharpenFilter\": \"off\", \n"
" \"PictureSharpenPreset\": \"medium\", \n"
" \"PictureSharpenTune\": \"none\", \n"
" \"PictureTopCrop\": 0, \n"
" \"PictureWidth\": 3840, \n"
" \"PresetDescription\": \"Hardware accelerated H.265 video (up to 2160p) and AAC stereo audio, in an MP4 container for ARM based platforms using Media Foundation\", \n"
" \"PresetName\": \"H.265 MF 2160p 4K\", \n"
" \"SubtitleAddCC\": false, \n"
" \"SubtitleAddForeignAudioSearch\": false, \n"
" \"SubtitleAddForeignAudioSubtitle\": false, \n"
" \"SubtitleBurnBDSub\": false, \n"
" \"SubtitleBurnBehavior\": \"none\", \n"
" \"SubtitleBurnDVDSub\": false, \n"
" \"SubtitleLanguageList\": [], \n"
" \"SubtitleTrackSelectionBehavior\": \"none\", \n"
" \"Type\": 0, \n"
" \"UsesPictureFilters\": true, \n"
" \"UsesPictureSettings\": 1, \n"
" \"VideoAvgBitrate\": 9000, \n"
" \"VideoColorMatrixCodeOverride\": 0, \n"
" \"VideoEncoder\": \"mf_h265\", \n"
" \"VideoFramerate\": \"auto\", \n"
" \"VideoFramerateMode\": \"vfr\", \n"
" \"VideoGrayScale\": false, \n"
" \"VideoLevel\": \"auto\", \n"
" \"VideoOptionExtra\": \"\", \n"
" \"VideoPreset\": \"balanced\", \n"
" \"VideoProfile\": \"main\", \n"
" \"VideoQSVDecode\": false, \n"
" \"VideoQualitySlider\": 28.0, \n"
" \"VideoQualityType\": 1, \n"
" \"VideoScaler\": \"swscale\", \n"
" \"VideoTune\": \"\", \n"
" \"VideoTurboTwoPass\": false, \n"
" \"VideoTwoPass\": false, \n"
" \"x264Option\": \"\", \n"
" \"x264UseAdvancedOptions\": false\n"
" }, \n"
" {\n"
" \"AlignAVStart\": false, \n"
" \"AudioCopyMask\": [\n"
" \"copy:aac\"\n"
" ], \n"
" \"AudioEncoderFallback\": \"none\", \n"
" \"AudioLanguageList\": [], \n"
" \"AudioList\": [\n"
" {\n"
" \"AudioBitrate\": 160, \n"
" \"AudioCompressionLevel\": -1.0, \n"
" \"AudioDitherMethod\": \"auto\", \n"
" \"AudioEncoder\": \"aac\", \n"
" \"AudioMixdown\": \"stereo\", \n"
" \"AudioNormalizeMixLevel\": false, \n"
" \"AudioSamplerate\": \"auto\", \n"
" \"AudioTrackDRCSlider\": 0.0, \n"
" \"AudioTrackGainSlider\": 0.0, \n"
" \"AudioTrackQuality\": -1.0, \n"
" \"AudioTrackQualityEnable\": false\n"
" }\n"
" ], \n"
" \"AudioSecondaryEncoderMode\": true, \n"
" \"AudioTrackSelectionBehavior\": \"first\", \n"
" \"ChapterMarkers\": true, \n"
" \"ChildrenArray\": [], \n"
" \"Default\": false, \n"
" \"FileFormat\": \"mp4\", \n"
" \"Folder\": false, \n"
" \"FolderOpen\": false, \n"
" \"Mp4HttpOptimize\": false, \n"
" \"Mp4iPodCompatible\": false, \n"
" \"PictureAutoCrop\": false, \n"
" \"PictureBottomCrop\": 0, \n"
" \"PictureChromaSmoothCustom\": \"\", \n"
" \"PictureChromaSmoothPreset\": \"off\", \n"
" \"PictureChromaSmoothTune\": \"none\", \n"
" \"PictureColorspaceCustom\": \"\", \n"
" \"PictureColorspacePreset\": \"off\", \n"
" \"PictureCombDetectCustom\": \"\", \n"
" \"PictureCombDetectPreset\": \"off\", \n"
" \"PictureDARWidth\": 0, \n"
" \"PictureDeblockCustom\": \"\", \n"
" \"PictureDeblockPreset\": \"off\", \n"
" \"PictureDeblockTune\": \"medium\", \n"
" \"PictureDeinterlaceCustom\": \"\", \n"
" \"PictureDeinterlaceFilter\": \"off\", \n"
" \"PictureDeinterlacePreset\": \"default\", \n"
" \"PictureDenoiseCustom\": \"\", \n"
" \"PictureDenoiseFilter\": \"off\", \n"
" \"PictureDenoisePreset\": \"medium\", \n"
" \"PictureDenoiseTune\": \"none\", \n"
" \"PictureDetelecine\": \"off\", \n"
" \"PictureDetelecineCustom\": \"\", \n"
" \"PictureForceHeight\": 0, \n"
" \"PictureForceWidth\": 0, \n"
" \"PictureHeight\": 1080, \n"
" \"PictureItuPAR\": false, \n"
" \"PictureKeepRatio\": true, \n"
" \"PictureLeftCrop\": 0, \n"
" \"PictureLooseCrop\": false, \n"
" \"PictureModulus\": 2, \n"
" \"PicturePAR\": \"auto\", \n"
" \"PicturePARHeight\": 1, \n"
" \"PicturePARWidth\": 1, \n"
" \"PictureRightCrop\": 0, \n"
" \"PictureRotate\": \"angle=0:hflip=0\", \n"
" \"PictureSharpenCustom\": \"\", \n"
" \"PictureSharpenFilter\": \"off\", \n"
" \"PictureSharpenPreset\": \"medium\", \n"
" \"PictureSharpenTune\": \"none\", \n"
" \"PictureTopCrop\": 0, \n"
" \"PictureWidth\": 1920, \n"
" \"PresetDescription\": \"Hardware accelerated H.265 video (up to 1080p) and AAC stereo audio, in an MP4 container for ARM based platforms using Media Foundation\", \n"
" \"PresetName\": \"H.265 MF 1080p\", \n"
" \"SubtitleAddCC\": false, \n"
" \"SubtitleAddForeignAudioSearch\": false, \n"
" \"SubtitleAddForeignAudioSubtitle\": false, \n"
" \"SubtitleBurnBDSub\": false, \n"
" \"SubtitleBurnBehavior\": \"none\", \n"
" \"SubtitleBurnDVDSub\": false, \n"
" \"SubtitleLanguageList\": [], \n"
" \"SubtitleTrackSelectionBehavior\": \"none\", \n"
" \"Type\": 0, \n"
" \"UsesPictureFilters\": true, \n"
" \"UsesPictureSettings\": 1, \n"
" \"VideoAvgBitrate\": 6000, \n"
" \"VideoColorMatrixCodeOverride\": 0, \n"
" \"VideoEncoder\": \"mf_h265\", \n"
" \"VideoFramerate\": \"auto\", \n"
" \"VideoFramerateMode\": \"vfr\", \n"
" \"VideoGrayScale\": false, \n"
" \"VideoLevel\": \"auto\", \n"
" \"VideoOptionExtra\": \"\", \n"
" \"VideoPreset\": \"balanced\", \n"
" \"VideoProfile\": \"main\", \n"
" \"VideoQSVDecode\": false, \n"
" \"VideoQualitySlider\": 22.0, \n"
" \"VideoQualityType\": 1, \n"
" \"VideoScaler\": \"swscale\", \n"
" \"VideoTune\": \"\", \n"
" \"VideoTurboTwoPass\": false, \n"
" \"VideoTwoPass\": false, \n"
" \"x264Option\": \"\", \n"
" \"x264UseAdvancedOptions\": false\n"
" }\n"
" ], \n"
" \"Folder\": true, \n"
Expand Down Expand Up @@ -9311,7 +9523,7 @@ const char hb_builtin_presets_json[] =
" \"PictureLeftCrop\": 0, \n"
" \"PictureLooseCrop\": false, \n"
" \"PictureModulus\": 2, \n"
" \"PicturePAR\": \"loose\", \n"
" \"PicturePAR\": \"auto\", \n"
" \"PicturePARHeight\": 720, \n"
" \"PicturePARWidth\": 853, \n"
" \"PictureRightCrop\": 0, \n"
Expand Down Expand Up @@ -9402,8 +9614,10 @@ const char hb_builtin_presets_json[] =
" \"Folder\": false, \n"
" \"FolderOpen\": false, \n"
" \"InlineParameterSets\": false, \n"
" \"MetadataPassthrough\": true, \n"
" \"Mp4HttpOptimize\": false, \n"
" \"Mp4iPodCompatible\": false, \n"
" \"PictureAllowUpscaling\": false, \n"
" \"PictureAutoCrop\": true, \n"
" \"PictureBottomCrop\": 0, \n"
" \"PictureChromaSmoothCustom\": \"\", \n"
Expand Down Expand Up @@ -9434,16 +9648,23 @@ const char hb_builtin_presets_json[] =
" \"PictureLeftCrop\": 0, \n"
" \"PictureLooseCrop\": false, \n"
" \"PictureModulus\": 2, \n"
" \"PicturePAR\": \"loose\", \n"
" \"PicturePAR\": \"auto\", \n"
" \"PicturePARHeight\": 720, \n"
" \"PicturePARWidth\": 853, \n"
" \"PicturePadBottom\": 0, \n"
" \"PicturePadColor\": \"black\", \n"
" \"PicturePadLeft\": 0, \n"
" \"PicturePadMode\": \"none\", \n"
" \"PicturePadRight\": 0, \n"
" \"PicturePadTop\": 0, \n"
" \"PictureRightCrop\": 0, \n"
" \"PictureRotate\": \"angle=0:hflip=0\", \n"
" \"PictureSharpenCustom\": \"\", \n"
" \"PictureSharpenFilter\": \"off\", \n"
" \"PictureSharpenPreset\": \"medium\", \n"
" \"PictureSharpenTune\": \"none\", \n"
" \"PictureTopCrop\": 0, \n"
" \"PictureUseMaximumSize\": true, \n"
" \"PictureWidth\": 0, \n"
" \"PresetDescription\": \"\", \n"
" \"PresetDisabled\": false, \n"
Expand All @@ -9458,7 +9679,6 @@ const char hb_builtin_presets_json[] =
" \"SubtitleTrackSelectionBehavior\": \"none\", \n"
" \"Type\": 1, \n"
" \"UsesPictureFilters\": true, \n"
" \"UsesPictureSettings\": 2, \n"
" \"VideoAvgBitrate\": 1800, \n"
" \"VideoColorMatrixCodeOverride\": 0, \n"
" \"VideoEncoder\": \"x264\", \n"
Expand All @@ -9479,7 +9699,7 @@ const char hb_builtin_presets_json[] =
" \"x264Option\": \"\", \n"
" \"x264UseAdvancedOptions\": false\n"
" }, \n"
" \"VersionMajor\": 45, \n"
" \"VersionMajor\": 47, \n"
" \"VersionMicro\": 0, \n"
" \"VersionMinor\": 0\n"
" }\n"
Expand Down
Loading

0 comments on commit f0a933b

Please sign in to comment.