Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Gabriele committed Feb 10, 2023
2 parents 52b9966 + ea9e212 commit 70c3ba8
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 296 deletions.
148 changes: 74 additions & 74 deletions src/Support/Hls/DefaultHls1080pMediaConvertOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ public static function make(
string $NameModifier = '-$h$p-$f$fps-$rv$kbps'
): array {
return [
"ContainerSettings" => [
"Container" => "M3U8",
"M3u8Settings" => [
"AudioFramesPerPes" => 4,
"PcrControl" => "PCR_EVERY_PES_PACKET",
"PmtPid" => 480,
"PrivateMetadataPid" => 503,
"ProgramNumber" => 1,
"PatInterval" => 0,
"PmtInterval" => 0,
"VideoPid" => 481,
"AudioPids" => [
'ContainerSettings' => [
'Container' => 'M3U8',
'M3u8Settings' => [
'AudioFramesPerPes' => 4,
'PcrControl' => 'PCR_EVERY_PES_PACKET',
'PmtPid' => 480,
'PrivateMetadataPid' => 503,
'ProgramNumber' => 1,
'PatInterval' => 0,
'PmtInterval' => 0,
'VideoPid' => 481,
'AudioPids' => [
482,
483,
484,
Expand All @@ -36,75 +36,75 @@ public static function make(
495,
496,
497,
498
]
]
498,
],
],
],
"VideoDescription" => [
"ScalingBehavior" => "DEFAULT",
"Height" => 1080,
"TimecodeInsertion" => "DISABLED",
"AntiAlias" => "ENABLED",
"Sharpness" => 50,
"CodecSettings" => [
"Codec" => "H_264",
"H264Settings" => [
"InterlaceMode" => "PROGRESSIVE",
"NumberReferenceFrames" => 3,
"Syntax" => "DEFAULT",
"GopClosedCadence" => 1,
"GopSize" => 90,
"Slices" => 1,
"GopBReference" => "DISABLED",
"MaxBitrate" => 8000000,
"SpatialAdaptiveQuantization" => "ENABLED",
"TemporalAdaptiveQuantization" => "ENABLED",
"FlickerAdaptiveQuantization" => "DISABLED",
"EntropyEncoding" => "CABAC",
"RateControlMode" => "QVBR",
"QvbrSettings" => [
"QvbrQualityLevel" => 7,
"QvbrQualityLevelFineTune" => 0
'VideoDescription' => [
'ScalingBehavior' => 'DEFAULT',
'Height' => 1080,
'TimecodeInsertion' => 'DISABLED',
'AntiAlias' => 'ENABLED',
'Sharpness' => 50,
'CodecSettings' => [
'Codec' => 'H_264',
'H264Settings' => [
'InterlaceMode' => 'PROGRESSIVE',
'NumberReferenceFrames' => 3,
'Syntax' => 'DEFAULT',
'GopClosedCadence' => 1,
'GopSize' => 90,
'Slices' => 1,
'GopBReference' => 'DISABLED',
'MaxBitrate' => 8000000,
'SpatialAdaptiveQuantization' => 'ENABLED',
'TemporalAdaptiveQuantization' => 'ENABLED',
'FlickerAdaptiveQuantization' => 'DISABLED',
'EntropyEncoding' => 'CABAC',
'RateControlMode' => 'QVBR',
'QvbrSettings' => [
'QvbrQualityLevel' => 7,
'QvbrQualityLevelFineTune' => 0,
],
"CodecProfile" => "MAIN",
"MinIInterval" => 0,
"AdaptiveQuantization" => "HIGH",
"CodecLevel" => "AUTO",
"FieldEncoding" => "PAFF",
"SceneChangeDetect" => "ENABLED",
"QualityTuningLevel" => "SINGLE_PASS",
"UnregisteredSeiTimecode" => "DISABLED",
"GopSizeUnits" => "FRAMES",
"NumberBFramesBetweenReferenceFrames" => 2,
"RepeatPps" => "DISABLED"
]
'CodecProfile' => 'MAIN',
'MinIInterval' => 0,
'AdaptiveQuantization' => 'HIGH',
'CodecLevel' => 'AUTO',
'FieldEncoding' => 'PAFF',
'SceneChangeDetect' => 'ENABLED',
'QualityTuningLevel' => 'SINGLE_PASS',
'UnregisteredSeiTimecode' => 'DISABLED',
'GopSizeUnits' => 'FRAMES',
'NumberBFramesBetweenReferenceFrames' => 2,
'RepeatPps' => 'DISABLED',
],
],
"AfdSignaling" => "NONE",
"DropFrameTimecode" => "ENABLED",
"RespondToAfd" => "NONE",
"ColorMetadata" => "INSERT"
'AfdSignaling' => 'NONE',
'DropFrameTimecode' => 'ENABLED',
'RespondToAfd' => 'NONE',
'ColorMetadata' => 'INSERT',
],
"AudioDescriptions" => [
'AudioDescriptions' => [
[
"AudioTypeControl" => "FOLLOW_INPUT",
"AudioSourceName" => "Audio Selector 1",
"CodecSettings" => [
"Codec" => "AAC",
"AacSettings" => [
"AudioDescriptionBroadcasterMix" => "NORMAL",
"Bitrate" => 96000,
"RateControlMode" => "CBR",
"CodecProfile" => "LC",
"CodingMode" => "CODING_MODE_2_0",
"RawFormat" => "NONE",
"SampleRate" => 48000,
"Specification" => "MPEG4"
]
'AudioTypeControl' => 'FOLLOW_INPUT',
'AudioSourceName' => 'Audio Selector 1',
'CodecSettings' => [
'Codec' => 'AAC',
'AacSettings' => [
'AudioDescriptionBroadcasterMix' => 'NORMAL',
'Bitrate' => 96000,
'RateControlMode' => 'CBR',
'CodecProfile' => 'LC',
'CodingMode' => 'CODING_MODE_2_0',
'RawFormat' => 'NONE',
'SampleRate' => 48000,
'Specification' => 'MPEG4',
],
],
"LanguageCodeControl" => "FOLLOW_INPUT"
]
'LanguageCodeControl' => 'FOLLOW_INPUT',
],
],
"NameModifier" => $NameModifier
'NameModifier' => $NameModifier,
];
}
}
148 changes: 74 additions & 74 deletions src/Support/Hls/DefaultHls480pMediaConvertOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ public static function make(
string $NameModifier = '-$h$p-$f$fps-$rv$kbps'
): array {
return [
"ContainerSettings" => [
"Container" => "M3U8",
"M3u8Settings" => [
"AudioFramesPerPes" => 4,
"PcrControl" => "PCR_EVERY_PES_PACKET",
"PmtPid" => 480,
"PrivateMetadataPid" => 503,
"ProgramNumber" => 1,
"PatInterval" => 0,
"PmtInterval" => 0,
"VideoPid" => 481,
"AudioPids" => [
'ContainerSettings' => [
'Container' => 'M3U8',
'M3u8Settings' => [
'AudioFramesPerPes' => 4,
'PcrControl' => 'PCR_EVERY_PES_PACKET',
'PmtPid' => 480,
'PrivateMetadataPid' => 503,
'ProgramNumber' => 1,
'PatInterval' => 0,
'PmtInterval' => 0,
'VideoPid' => 481,
'AudioPids' => [
482,
483,
484,
Expand All @@ -36,75 +36,75 @@ public static function make(
495,
496,
497,
498
]
]
498,
],
],
],
"VideoDescription" => [
"ScalingBehavior" => "DEFAULT",
"Height" => 480,
"TimecodeInsertion" => "DISABLED",
"AntiAlias" => "ENABLED",
"Sharpness" => 50,
"CodecSettings" => [
"Codec" => "H_264",
"H264Settings" => [
"InterlaceMode" => "PROGRESSIVE",
"NumberReferenceFrames" => 3,
"Syntax" => "DEFAULT",
"GopClosedCadence" => 1,
"GopSize" => 90,
"Slices" => 1,
"GopBReference" => "DISABLED",
"MaxBitrate" => 8000000,
"SpatialAdaptiveQuantization" => "ENABLED",
"TemporalAdaptiveQuantization" => "ENABLED",
"FlickerAdaptiveQuantization" => "DISABLED",
"EntropyEncoding" => "CABAC",
"RateControlMode" => "QVBR",
"QvbrSettings" => [
"QvbrQualityLevel" => 7,
"QvbrQualityLevelFineTune" => 0
'VideoDescription' => [
'ScalingBehavior' => 'DEFAULT',
'Height' => 480,
'TimecodeInsertion' => 'DISABLED',
'AntiAlias' => 'ENABLED',
'Sharpness' => 50,
'CodecSettings' => [
'Codec' => 'H_264',
'H264Settings' => [
'InterlaceMode' => 'PROGRESSIVE',
'NumberReferenceFrames' => 3,
'Syntax' => 'DEFAULT',
'GopClosedCadence' => 1,
'GopSize' => 90,
'Slices' => 1,
'GopBReference' => 'DISABLED',
'MaxBitrate' => 8000000,
'SpatialAdaptiveQuantization' => 'ENABLED',
'TemporalAdaptiveQuantization' => 'ENABLED',
'FlickerAdaptiveQuantization' => 'DISABLED',
'EntropyEncoding' => 'CABAC',
'RateControlMode' => 'QVBR',
'QvbrSettings' => [
'QvbrQualityLevel' => 7,
'QvbrQualityLevelFineTune' => 0,
],
"CodecProfile" => "MAIN",
"MinIInterval" => 0,
"AdaptiveQuantization" => "HIGH",
"CodecLevel" => "AUTO",
"FieldEncoding" => "PAFF",
"SceneChangeDetect" => "ENABLED",
"QualityTuningLevel" => "SINGLE_PASS",
"UnregisteredSeiTimecode" => "DISABLED",
"GopSizeUnits" => "FRAMES",
"NumberBFramesBetweenReferenceFrames" => 2,
"RepeatPps" => "DISABLED"
]
'CodecProfile' => 'MAIN',
'MinIInterval' => 0,
'AdaptiveQuantization' => 'HIGH',
'CodecLevel' => 'AUTO',
'FieldEncoding' => 'PAFF',
'SceneChangeDetect' => 'ENABLED',
'QualityTuningLevel' => 'SINGLE_PASS',
'UnregisteredSeiTimecode' => 'DISABLED',
'GopSizeUnits' => 'FRAMES',
'NumberBFramesBetweenReferenceFrames' => 2,
'RepeatPps' => 'DISABLED',
],
],
"AfdSignaling" => "NONE",
"DropFrameTimecode" => "ENABLED",
"RespondToAfd" => "NONE",
"ColorMetadata" => "INSERT"
'AfdSignaling' => 'NONE',
'DropFrameTimecode' => 'ENABLED',
'RespondToAfd' => 'NONE',
'ColorMetadata' => 'INSERT',
],
"AudioDescriptions" => [
'AudioDescriptions' => [
[
"AudioTypeControl" => "FOLLOW_INPUT",
"AudioSourceName" => "Audio Selector 1",
"CodecSettings" => [
"Codec" => "AAC",
"AacSettings" => [
"AudioDescriptionBroadcasterMix" => "NORMAL",
"Bitrate" => 96000,
"RateControlMode" => "CBR",
"CodecProfile" => "LC",
"CodingMode" => "CODING_MODE_2_0",
"RawFormat" => "NONE",
"SampleRate" => 48000,
"Specification" => "MPEG4"
]
'AudioTypeControl' => 'FOLLOW_INPUT',
'AudioSourceName' => 'Audio Selector 1',
'CodecSettings' => [
'Codec' => 'AAC',
'AacSettings' => [
'AudioDescriptionBroadcasterMix' => 'NORMAL',
'Bitrate' => 96000,
'RateControlMode' => 'CBR',
'CodecProfile' => 'LC',
'CodingMode' => 'CODING_MODE_2_0',
'RawFormat' => 'NONE',
'SampleRate' => 48000,
'Specification' => 'MPEG4',
],
],
"LanguageCodeControl" => "FOLLOW_INPUT"
]
'LanguageCodeControl' => 'FOLLOW_INPUT',
],
],
"NameModifier" => $NameModifier
'NameModifier' => $NameModifier,
];
}
}
Loading

0 comments on commit 70c3ba8

Please sign in to comment.