By using AWS re:Post, you agree to the Terms of Use
/AWS Elemental MediaConvert/

Questions tagged with AWS Elemental MediaConvert

Sort by most recent
  • 1
  • 90 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Annoying HLS Playback Problem On Windows But Not iOS

Hello All, I am getting up to speed with CloudFront and S3 for VOD. I have used the CloudFormation template. Uploaded an MP4, obtained the Key for the m3u8 file. I create a distribution in CF. I embed it in my webpage. For the most part, it works great. But there is a significantly long buffering event during the first few seconds. This problem does not exist when I play the video on my iOS device. And strangely, it does not happen when I play it in Akami's HLS tester on my Windows 11 PC using Chrome. The problem seems to only occur when I play it from my website, using any browser, on my Windows 11 PC. Steps I take to provoke the issue: Open an Incognito tab in Chrome / navigate to my website, my player is set to auto play so it auto plays / the video starts out a bit fuzzy, it then stops for a second / restarts with great resolution / and stays that way until the endo f the video. If I play again, no problems at all, but that is to be expected. I assume there is a local cache. Steps I have tried to fix / clues: I have tried different segment lengths via modifying the Lambda function created when the stack was formed by the template. The default was 5. At that setting, the fuzzy aspect lasted the longest but the buffer event seemed slightly shorter. At 1 and 2, the fuzzy is far shorter but the buffering event is notably longer. One thought, could this be related to the video player I am using? I wanted to use the AWS IVS but could not get it working the first go around so I tried the amazon-ivs-videojs. That worked immediately, except for the buffer issue. And as the buffer issue seems to go away when I test the distribution via the Akami HLS tester. As always, much appreciation for reading this question and any time spent pondering on it.
0
answers
0
votes
4
views
Redbone
asked 2 days ago
1
answers
0
votes
2
views
JStrebeyko
asked a month ago

MediaConvert introduces audio-video sync issue

Hi. I'm having an issue with MediaConvert. Running a fairly simple job on what seems like a rather unremarkable H.264 MP4 is resulting in sync issues between audio and video in the output. The sync starts out okay, but by the end of the output video it is noticeably off. Here's the MediaInfo output for the input MP4: ``` General Count : 331 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Count of audio streams : 1 Video_Format_List : AVC Video_Format_WithHint_List : AVC Codecs Video : AVC Audio_Format_List : AAC LC Audio_Format_WithHint_List : AAC LC Audio codecs : AAC LC Complete name : 59397af7-aba0-4b8f-ac14-4c351ec69688.mp4 File name extension : 59397af7-aba0-4b8f-ac14-4c351ec69688.mp4 File name : 59397af7-aba0-4b8f-ac14-4c351ec69688 File extension : mp4 Format : MPEG-4 Format : MPEG-4 Format/Extensions usually used : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v Commercial name : MPEG-4 Format profile : Base Media Internet media type : video/mp4 Codec ID : isom Codec ID : isom (isom/iso2/avc1/mp41) Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html CodecID_Compatible : isom/iso2/avc1/mp41 File size : 11085451 File size : 10.6 MiB File size : 11 MiB File size : 11 MiB File size : 10.6 MiB File size : 10.57 MiB Duration : 297434 Duration : 4 min 57 s Duration : 4 min 57 s 434 ms Duration : 4 min 57 s Duration : 00:04:57.434 Duration : 00:04:57:13 Duration : 00:04:57.434 (00:04:57:13) Overall bit rate mode : VBR Overall bit rate mode : Variable Overall bit rate : 298162 Overall bit rate : 298 kb/s Frame rate : 30.000 Frame rate : 30.000 FPS Frame count : 8923 Stream size : 328932 Stream size : 321 KiB (3%) Stream size : 321 KiB Stream size : 321 KiB Stream size : 321 KiB Stream size : 321.2 KiB Stream size : 321 KiB (3%) Proportion of this stream : 0.02967 HeaderSize : 40 DataSize : 10756527 FooterSize : 328884 IsStreamable : No File last modification date : UTC 2021-04-12 10:12:36 File last modification date (local) : 2021-04-12 11:12:36 Writing application : Lavf57.83.100 Writing application : Lavf57.83.100 Video Count : 378 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Format : AVC Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Commercial name : AVC Format profile : High@L4 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, CABAC : Yes Format settings, Reference frames : 4 Format settings, Reference frames : 4 frames Internet media type : video/H264 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 297434 Duration : 4 min 57 s Duration : 4 min 57 s 434 ms Duration : 4 min 57 s Duration : 00:04:57.434 Duration : 00:04:57:13 Duration : 00:04:57.434 (00:04:57:13) Bit rate : 167254 Bit rate : 167 kb/s Width : 1920 Width : 1 920 pixels Height : 1080 Height : 1 080 pixels Stored_Height : 1088 Sampled_Width : 1920 Sampled_Height : 1080 Pixel aspect ratio : 1.000 Display aspect ratio : 1.778 Display aspect ratio : 16:9 Rotation : 0.000 Frame rate mode : CFR Frame rate mode : Constant FrameRate_Mode_Original : VFR Frame rate : 30.000 Frame rate : 30.000 FPS Frame count : 8923 Color space : YUV Chroma subsampling : 4:2:0 Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Progressive Scan type : Progressive Bits/(Pixel*Frame) : 0.003 Stream size : 6218374 Stream size : 5.93 MiB (56%) Stream size : 6 MiB Stream size : 5.9 MiB Stream size : 5.93 MiB Stream size : 5.930 MiB Stream size : 5.93 MiB (56%) Proportion of this stream : 0.56095 Writing library : x264 - core 152 r2854 e9a5903 Writing library : x264 core 152 r2854 e9a5903 Encoded_Library_Name : x264 Encoded_Library_Version : core 152 r2854 e9a5903 Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Codec configuration box : avcC Audio Count : 280 Count of stream of this kind : 1 Kind of stream : Audio Kind of stream : Audio Stream identifier : 0 StreamOrder : 1 ID : 2 ID : 2 Format : AAC Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Commercial name : AAC Format settings, SBR : No (Explicit) Format settings, SBR : No (Explicit) Format_AdditionalFeatures : LC Codec ID : mp4a-40-2 Duration : 297340 Duration : 4 min 57 s Duration : 4 min 57 s 340 ms Duration : 4 min 57 s Duration : 00:04:57.340 Duration : 00:04:56:00 Duration : 00:04:57.340 (00:04:56:00) Bit rate mode : VBR Bit rate mode : Variable Bit rate : 122099 Bit rate : 122 kb/s Maximum bit rate : 128000 Maximum bit rate : 128 kb/s Channel(s) : 2 Channel(s) : 2 channels Channel positions : Front: L R Channel positions : 2/0/0 Channel layout : L R Samples per frame : 1024 Sampling rate : 48000 Sampling rate : 48.0 kHz Samples count : 14272320 Frame rate : 46.875 Frame rate : 46.875 FPS (1024 SPF) Frame count : 13912 Compression mode : Lossy Compression mode : Lossy Stream size : 4538145 Stream size : 4.33 MiB (41%) Stream size : 4 MiB Stream size : 4.3 MiB Stream size : 4.33 MiB Stream size : 4.328 MiB Stream size : 4.33 MiB (41%) Proportion of this stream : 0.40938 Title : simple_aac Default : Yes Default : Yes Alternate group : 1 Alternate group : 1 ``` And the MediaConvert job description (ID: 1618087025011-n9fbdn, in case anyone from AWS is reading): { "Queue": "\[removed]", "UserMetadata": { "contentItemId": "\[removed]", "mode": "preview", "environment": "production" }, "Role": "\[removed]", "Settings": { "OutputGroups": \[ { "CustomName": "File Group", "Outputs": \[ { "ContainerSettings": { "Container": "MP4", "Mp4Settings": {} }, "VideoDescription": { "Width": 1920, "Height": 1080, "CodecSettings": { "Codec": "H_264", "H264Settings": { "MaxBitrate": 6000000, "RateControlMode": "QVBR", "QvbrSettings": { "QvbrQualityLevel": 9 } } } }, "AudioDescriptions": \[ { "CodecSettings": { "Codec": "AAC", "AacSettings": { "VbrQuality": "MEDIUM_HIGH", "RateControlMode": "VBR", "CodingMode": "CODING_MODE_2_0", "SampleRate": 48000 } } } ], "NameModifier": "-preview" } ], "OutputGroupSettings": { "Type": "FILE_GROUP_SETTINGS", "FileGroupSettings": { "Destination": "\[removed]" } } } ], "Inputs": \[ { "AudioSelectors": { "Audio Selector 1": { "SelectorType": "TRACK" } }, "FileInput": "\[removed]" } ] }, "AccelerationSettings": { "Mode": "DISABLED" }, "StatusUpdateInterval": "SECONDS_60", "Priority": 0 }
10
answers
0
votes
2
views
rossng
asked 9 months ago

MediaConvert job failing with 1060 when clipping video

Hi, I have issue with clipping video. My input file is simple black screen video, with simple sound, with length 33 seconds. I have been trying to clip this video from 00:00:00:30 to 00:00:00:64 and got the error: **"The clipping region 00:00:00:29 to 00:00:00:29 was not found in input number \[1]"**, Error code: 1060. As pointed in documentation, I set **"Timecode source: Start at 0"** and **"Timecode configuration -> Source: Start at 0"** and it didn't help. JobId: 1616602805385-f1j205 MyInputFile: https://tevi-stage.s3.amazonaws.com/public/temp/mapVideo/d9af280a-b8e3-4c9f-a460-1987e7cfaf2d/audio_files/black_screen_with_audio.mp4 My input JSON: { "Queue": "arn:aws:mediaconvert:us-east-1:\[removed]:queues/Default", "UserMetadata": {}, "Role": "arn:aws:iam::\[removed]:role/MediaConvert___Test", "Settings": { "TimecodeConfig": { "Source": "ZEROBASED" }, "OutputGroups": \[ { "Name": "File Group", "Outputs": \[ { "ContainerSettings": { "Container": "MP4", "Mp4Settings": { "CslgAtom": "INCLUDE", "CttsVersion": 0, "FreeSpaceBox": "EXCLUDE", "MoovPlacement": "PROGRESSIVE_DOWNLOAD", "AudioDuration": "DEFAULT_CODEC_DURATION" } }, "VideoDescription": { "Width": 1920, "ScalingBehavior": "DEFAULT", "Height": 1080, "TimecodeInsertion": "DISABLED", "AntiAlias": "ENABLED", "Sharpness": 50, "CodecSettings": { "Codec": "H_264", "H264Settings": { "InterlaceMode": "PROGRESSIVE", "ParNumerator": 16, "NumberReferenceFrames": 3, "Syntax": "DEFAULT", "Softness": 0, "GopClosedCadence": 1, "GopSize": 90, "Slices": 1, "GopBReference": "DISABLED", "MaxBitrate": 1000, "SlowPal": "DISABLED", "ParDenominator": 9, "EntropyEncoding": "CABAC", "FramerateControl": "INITIALIZE_FROM_SOURCE", "RateControlMode": "QVBR", "QvbrSettings": { "QvbrQualityLevel": 7, "QvbrQualityLevelFineTune": 0 }, "CodecProfile": "MAIN", "Telecine": "NONE", "MinIInterval": 0, "AdaptiveQuantization": "AUTO", "CodecLevel": "AUTO", "FieldEncoding": "PAFF", "SceneChangeDetect": "ENABLED", "QualityTuningLevel": "SINGLE_PASS", "FramerateConversionAlgorithm": "DUPLICATE_DROP", "UnregisteredSeiTimecode": "DISABLED", "GopSizeUnits": "FRAMES", "ParControl": "INITIALIZE_FROM_SOURCE", "NumberBFramesBetweenReferenceFrames": 2, "RepeatPps": "DISABLED", "DynamicSubGop": "STATIC" } }, "AfdSignaling": "NONE", "DropFrameTimecode": "ENABLED", "RespondToAfd": "NONE", "ColorMetadata": "INSERT" }, "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" } }, "LanguageCodeControl": "FOLLOW_INPUT" } ] } ], "OutputGroupSettings": { "Type": "FILE_GROUP_SETTINGS", "FileGroupSettings": { "Destination": "s3://tevi-stage/public/temp/mapVideo/d9af280a-b8e3-4c9f-a460-1987e7cfaf2d/audio_files/audio_part_1" } } } ], "AdAvailOffset": 0, "Inputs": \[ { "InputClippings": \[ { "EndTimecode": "00:00:00:64", "StartTimecode": "00:00:00:30" } ], "AudioSelectors": { "Audio Selector 1": { "Offset": 0, "DefaultSelection": "DEFAULT", "ProgramSelection": 1 } }, "VideoSelector": { "ColorSpace": "FOLLOW", "Rotate": "DEGREE_0", "AlphaBehavior": "DISCARD" }, "FilterEnable": "AUTO", "PsiControl": "USE_PSI", "FilterStrength": 0, "DeblockFilter": "DISABLED", "DenoiseFilter": "DISABLED", "InputScanType": "AUTO", "TimecodeSource": "ZEROBASED", "FileInput": "s3://tevi-stage/public/temp/mapVideo/d9af280a-b8e3-4c9f-a460-1987e7cfaf2d/audio_files/black_screen_with_audio.mp4" } ] }, "AccelerationSettings": { "Mode": "DISABLED" }, "StatusUpdateInterval": "SECONDS_60", "Priority": 0 } Edited by: Geniusee on Mar 25, 2021 2:16 AM Edited by: Geniusee on Mar 25, 2021 2:17 AM Edited by: awsjarede on Apr 8, 2021 9:26 AM, removed AWS account #
3
answers
0
votes
2
views
Geniusee
asked 10 months ago

Mediaconvert Job JSON Issue

I'm trying to run MediaConvert using the PHP SDK however I'm getting a bad exception. I have directly copy and pasted the job json from the console and then json_decode it into an array and pass it into the SDK. But this is the error i'm getting. Bad Request` response: { "errorType": "BadRequestException", "httpStatus" : 400, "requestId" : "8271d3c1-94bb-4489-b950-d5be7edabd20", (truncated...) BadRequestException (client): The 'settings' field is required. - { "errorType": "BadRequestException", "httpStatus" : 400, "requestId" : "8271d3c1-94bb-4489-b950-d5be7edabd20", "message" : "The 'settings' field is required.", "settingsValidationErrorsJsonBlob" : "\[]" } $jobSetting = '{ "Queue": "arn:aws:mediaconvert:us-west-2:XXXX:queues/Default", "UserMetadata": {}, "Role": "arn:aws:iam::XXXXX", "Settings": { "OutputGroups": \[ { "Name": "File Group", "Outputs": \[ { "ContainerSettings": { "Container": "MP4", "Mp4Settings": { "CslgAtom": "INCLUDE", "FreeSpaceBox": "EXCLUDE", "MoovPlacement": "PROGRESSIVE_DOWNLOAD" } }, "VideoDescription": { "Width": 1920, "ScalingBehavior": "DEFAULT", "Height": 1080, "VideoPreprocessors": { "Deinterlacer": { "Algorithm": "INTERPOLATE", "Mode": "DEINTERLACE", "Control": "NORMAL" } }, "TimecodeInsertion": "DISABLED", "AntiAlias": "ENABLED", "Sharpness": 50, "CodecSettings": { "Codec": "H_264", "H264Settings": { "InterlaceMode": "PROGRESSIVE", "ParNumerator": 1, "NumberReferenceFrames": 3, "Syntax": "DEFAULT", "Softness": 0, "GopClosedCadence": 1, "HrdBufferInitialFillPercentage": 90, "GopSize": 2, "Slices": 1, "GopBReference": "DISABLED", "HrdBufferSize": 12000000, "ParDenominator": 1, "SpatialAdaptiveQuantization": "ENABLED", "TemporalAdaptiveQuantization": "ENABLED", "FlickerAdaptiveQuantization": "ENABLED", "EntropyEncoding": "CABAC", "Bitrate": 6000000, "FramerateControl": "INITIALIZE_FROM_SOURCE", "RateControlMode": "CBR", "CodecProfile": "HIGH", "Telecine": "NONE", "MinIInterval": 0, "AdaptiveQuantization": "HIGH", "CodecLevel": "LEVEL_4", "FieldEncoding": "PAFF", "SceneChangeDetect": "ENABLED", "QualityTuningLevel": "MULTI_PASS_HQ", "FramerateConversionAlgorithm": "DUPLICATE_DROP", "UnregisteredSeiTimecode": "DISABLED", "GopSizeUnits": "SECONDS", "ParControl": "SPECIFIED", "NumberBFramesBetweenReferenceFrames": 1, "RepeatPps": "DISABLED" } }, "AfdSignaling": "NONE", "DropFrameTimecode": "ENABLED", "RespondToAfd": "NONE", "ColorMetadata": "INSERT" }, "AudioDescriptions": \[ { "AudioTypeControl": "FOLLOW_INPUT", "AudioSourceName": "Audio Selector 1", "CodecSettings": { "Codec": "AAC", "AacSettings": { "AudioDescriptionBroadcasterMix": "NORMAL", "Bitrate": 256000, "RateControlMode": "CBR", "CodecProfile": "LC", "CodingMode": "CODING_MODE_2_0", "RawFormat": "NONE", "SampleRate": 48000, "Specification": "MPEG4" } }, "LanguageCodeControl": "FOLLOW_INPUT", "AudioType": 0 } ], "NameModifier": "1080" }, { "ContainerSettings": { "Container": "MP4", "Mp4Settings": { "CslgAtom": "INCLUDE", "FreeSpaceBox": "EXCLUDE", "MoovPlacement": "PROGRESSIVE_DOWNLOAD" } }, "VideoDescription": { "Width": 1280, "ScalingBehavior": "DEFAULT", "Height": 720, "VideoPreprocessors": { "Deinterlacer": { "Algorithm": "INTERPOLATE", "Mode": "DEINTERLACE", "Control": "NORMAL" } }, "TimecodeInsertion": "DISABLED", "AntiAlias": "ENABLED", "Sharpness": 50, "CodecSettings": { "Codec": "H_264", "H264Settings": { "InterlaceMode": "PROGRESSIVE", "ParNumerator": 1, "NumberReferenceFrames": 3, "Syntax": "DEFAULT", "Softness": 0, "GopClosedCadence": 1, "HrdBufferInitialFillPercentage": 90, "GopSize": 2, "Slices": 1, "GopBReference": "ENABLED", "HrdBufferSize": 9000000, "ParDenominator": 1, "SpatialAdaptiveQuantization": "ENABLED", "TemporalAdaptiveQuantization": "ENABLED", "FlickerAdaptiveQuantization": "ENABLED", "EntropyEncoding": "CABAC", "Bitrate": 3000000, "FramerateControl": "INITIALIZE_FROM_SOURCE", "RateControlMode": "CBR", "CodecProfile": "HIGH", "Telecine": "NONE", "MinIInterval": 0, "AdaptiveQuantization": "HIGH", "CodecLevel": "LEVEL_4", "FieldEncoding": "PAFF", "SceneChangeDetect": "ENABLED", "QualityTuningLevel": "MULTI_PASS_HQ", "FramerateConversionAlgorithm": "DUPLICATE_DROP", "UnregisteredSeiTimecode": "DISABLED", "GopSizeUnits": "SECONDS", "ParControl": "SPECIFIED", "NumberBFramesBetweenReferenceFrames": 3, "RepeatPps": "DISABLED" } }, "AfdSignaling": "NONE", "DropFrameTimecode": "ENABLED", "RespondToAfd": "NONE", "ColorMetadata": "INSERT" }, "AudioDescriptions": \[ { "AudioTypeControl": "FOLLOW_INPUT", "AudioSourceName": "Audio Selector 1", "CodecSettings": { "Codec": "AAC", "AacSettings": { "AudioDescriptionBroadcasterMix": "NORMAL", "Bitrate": 160000, "RateControlMode": "CBR", "CodecProfile": "LC", "CodingMode": "CODING_MODE_2_0", "RawFormat": "NONE", "SampleRate": 48000, "Specification": "MPEG4" } }, "LanguageCodeControl": "FOLLOW_INPUT", "AudioType": 0 } ], "NameModifier": "720" }, { "ContainerSettings": { "Container": "MP4", "Mp4Settings": { "CslgAtom": "INCLUDE", "FreeSpaceBox": "EXCLUDE", "MoovPlacement": "PROGRESSIVE_DOWNLOAD" } }, "VideoDescription": { "Width": 854, "ScalingBehavior": "DEFAULT", "Height": 480, "VideoPreprocessors": { "Deinterlacer": { "Algorithm": "INTERPOLATE", "Mode": "DEINTERLACE", "Control": "NORMAL" } }, "TimecodeInsertion": "DISABLED", "AntiAlias": "ENABLED", "Sharpness": 50, "CodecSettings": { "Codec": "H_264", "H264Settings": { "InterlaceMode": "PROGRESSIVE", "ParNumerator": 1, "NumberReferenceFrames": 3, "Syntax": "DEFAULT", "Softness": 0, "GopClosedCadence": 1, "HrdBufferInitialFillPercentage": 90, "GopSize": 2, "Slices": 1, "GopBReference": "ENABLED", "HrdBufferSize": 12000000, "ParDenominator": 1, "SpatialAdaptiveQuantization": "ENABLED", "TemporalAdaptiveQuantization": "ENABLED", "FlickerAdaptiveQuantization": "ENABLED", "EntropyEncoding": "CABAC", "Bitrate": 2000000, "FramerateControl": "INITIALIZE_FROM_SOURCE", "RateControlMode": "CBR", "CodecProfile": "HIGH", "Telecine": "NONE", "MinIInterval": 0, "AdaptiveQuantization": "HIGH", "CodecLevel": "LEVEL_4", "FieldEncoding": "PAFF", "SceneChangeDetect": "ENABLED", "QualityTuningLevel": "MULTI_PASS_HQ", "FramerateConversionAlgorithm": "DUPLICATE_DROP", "UnregisteredSeiTimecode": "DISABLED", "GopSizeUnits": "SECONDS", "ParControl": "SPECIFIED", "NumberBFramesBetweenReferenceFrames": 3, "RepeatPps": "DISABLED" } }, "AfdSignaling": "NONE", "DropFrameTimecode": "ENABLED", "RespondToAfd": "NONE", "ColorMetadata": "INSERT" }, "AudioDescriptions": \[ { "AudioTypeControl": "FOLLOW_INPUT", "AudioSourceName": "Audio Selector 1", "CodecSettings": { "Codec": "AAC", "AacSettings": { "AudioDescriptionBroadcasterMix": "NORMAL", "Bitrate": 128000, "RateControlMode": "CBR", "CodecProfile": "LC", "CodingMode": "CODING_MODE_2_0", "RawFormat": "NONE", "SampleRate": 48000, "Specification": "MPEG4" } }, "LanguageCodeControl": "FOLLOW_INPUT", "AudioType": 0 } ], "NameModifier": "480" } ], "OutputGroupSettings": { "Type": "FILE_GROUP_SETTINGS", "FileGroupSettings": { "Destination": "s3://XXX", "DestinationSettings": { "S3Settings": { "Encryption": { "EncryptionType": "SERVER_SIDE_ENCRYPTION_S3" } } } } } } ], "AdAvailOffset": 0, "Inputs": \[ { "AudioSelectors": { "Audio Selector 1": { "Offset": 0, "DefaultSelection": "DEFAULT", "ProgramSelection": 1 } }, "VideoSelector": { "ColorSpace": "FOLLOW", "Rotate": "DEGREE_0", "AlphaBehavior": "DISCARD" }, "FilterEnable": "AUTO", "PsiControl": "USE_PSI", "FilterStrength": 0, "DeblockFilter": "DISABLED", "DenoiseFilter": "DISABLED", "TimecodeSource": "EMBEDDED", "FileInput": "s3://XXX" } ] }, "AccelerationSettings": { "Mode": "DISABLED" }, "StatusUpdateInterval": "SECONDS_60", "Priority": 0 }'; $jobSetting = json_decode($jobSetting, true); $result = $mediaConvertClient->createJob(\[ "Role" => "arn:aws:iam::XXX", "Settings" => $jobSetting, "Queue" => "arn:aws:mediaconvert:us-west-2:XXX:queues/Default", "UserMetadata" => \[ "Customer" => "XXX" ], ]); Edited by: tomhendrick on Feb 22, 2021 4:49 PM
1
answers
0
votes
2
views
tomhendrick
asked a year ago

why is SDK Validator saying AudioTypeControl must be an associative array?

I'm attempting to submit a job to MediaConvert, but the validator seems to think both AudioTypeControl and LanguageCodeControl for the outputs needs to be an associative array Here's the specific error Found 4 errors while validating the input provided for the CreateJob operation: \\[Settings]\\[OutputGroups]\\[0]\\[Outputs]\\[0]\\[AudioDescriptions]\\[AudioTypeControl] must be an associative array. Found string(12) "FOLLOW_INPUT" \\[Settings]\\[OutputGroups]\\[0]\\[Outputs]\\[0]\\[AudioDescriptions]\\[LanguageCodeControl] must be an associative array. Found string(12) "FOLLOW_INPUT" \\[Settings]\\[OutputGroups]\\[0]\\[Outputs]\\[1]\\[AudioDescriptions]\\[AudioTypeControl] must be an associative array. Found string(12) "FOLLOW_INPUT" \\[Settings]\\[OutputGroups]\\[0]\\[Outputs]\\[1]\\[AudioDescriptions]\\[LanguageCodeControl] must be an associative array. Found string(12) "FOLLOW_INPUT" Not sure what's going on here, I've checked my job settings against the documentation and from everything I can find, these should actually be a string, and "FOLLOW_OUTPUT" should be one of the enumerated values. Does anyone know why this error would trigger? This is the config I'm using to create the client. (identifying values removed) \\[version] => 2017-08-29 \\[endpoint] => {endpoint} \\[credentials] => Aws\Credentials\Credentials Object ( \\[key:Aws\Credentials\Credentials:private] => {key} \\[secret:Aws\Credentials\Credentials:private] => {secret} \\[token:Aws\Credentials\Credentials:private] => \\[expires:Aws\Credentials\Credentials:private] => ) \\[region] => us-west-2 And the Job description (Identifying values removed) \\[Inputs] => Array ( \\[0] => Array ( \\[FilterEnable] => AUTO \\[PsiControl] => USE_PSI \\[FilterStrength] => 0 \\[DeblockFilter] => DISABLED \\[DenoiseFilter] => DISABLED \\[TimecodeSource] => EMBEDDED \\[VideoSelector] => Array ( \\[ColorSpace] => FOLLOW \\[Rotate] => DEGREE_0 \\[AlphaBehavior] => DISCARD ) \\[AudioSelectors] => Array ( \\[Audio Selector 1] => Array ( \\[Offset] => 0 \\[DefaultSelection] => DEFAULT \\[ProgramSelection] => 1 ) ) \\[FileInput] => s3://{bucket}/{path/to/input/video.mp4} ) ) \\[OutputGroups] => Array ( \\[0] => Array ( \\[Name] => FileGroupSettings Group \\[OutputGroupSettings] => Array ( \\[Type] => FILE_GROUP_SETTINGS \\[FileGroupSettings] => Array ( \\[Destination] => s3://{bucket}/{path/to/destination/} ) ) \\[Outputs] => Array ( \\[0] => Array ( \\[ContainerSettings] => Array ( \\[Mp4Settings] => Array ( \\[CslgAtom] => INCLUDE \\[CttsVersion] => 0 \\[FreeSpaceBox] => EXCLUDE \\[MoovPlacement] => PROGRESSIVE_DOWNLOAD \\[Container] => MP4 ) ) \\[VideoDescriptions] => Array ( \\[ScalingBehavior] => DEFAULT \\[TimecodeInsertion] => DISABLED \\[AntiAlias] => ENABLED \\[Sharpness] => 50 \\[AfdSignaling] => NONE \\[DropFrameTimecode] => ENABLED \\[RespondToAfd] => NONE \\[ColorMetadata] => INSERT \\[CodecSettings] => Array ( \\[H264Settings] => Array ( \\[InterlaceMode] => PROGRESSIVE \\[NumberReferenceFrames] => 3 \\[Syntax] => DEFAULT \\[Softness] => 0 \\[GopClosedCadence] => 1 \\[GopSize] => 90 \\[Slices] => 1 \\[GopBReference] => DISABLED \\[SlowPal] => DISABLED \\[SpatialAdaptiveQuantization] => ENABLED \\[TemporalAdaptiveQuantization] => ENABLED \\[FlickerAdaptiveQuantization] => DISABLED \\[EntropyEncoding] => CABAC \\[FramerateControl] => INITIALIZE_FROM_SOURCE \\[RateControlMode] => QVBR \\[CodecProfile] => MAIN \\[Telecine] => NONE \\[MinIInterval] => 0 \\[AdaptiveQuantization] => HIGH \\[CodecLevel] => AUTO \\[FieldEncoding] => PAFF \\[SceneChangeDetect] => ENABLED \\[QualityTuningLevel] => SINGLE_PASS \\[FramerateConversionAlgorithm] => DUPLICATE_DROP \\[UnregisteredSeiTimecode] => DISABLED \\[GopSizeUnits] => FRAMES \\[ParControl] => INITIALIZE_FROM_SOURCE \\[NumberBFramesBetweenReferenceFrames] => 2 \\[RepeatPps] => DISABLED \\[DynamicSubGop] => STATIC \\[QvbrSettings] => Array ( \\[QvbrQualityLevel] => 7 \\[QvbrQualityLevelFineTune] => 0 ) \\[MaxBitrate] => 0 \\[Codec] => H_264 \\[Bitrate] => 8000000 ) ) \\[Width] => 1920 \\[Height] => 1080 ) \\[AudioDescriptions] => Array ( \\[AudioTypeControl] => FOLLOW_INPUT \\[LanguageCodeControl] => FOLLOW_INPUT \\[CodecSettings] => Array ( \\[AacSettings] => Array ( \\[AudioDescriptionBroadcasterMix] => NORMAL \\[Bitrate] => 384000 \\[RateControlMode] => CBR \\[CodecProfile] => LC \\[CodingMode] => CODING_MODE_2_0 \\[RawFormat] => NONE \\[SampleRate] => 48000 \\[Specification] => MPEG4 \\[Codec] => AAC ) ) ) \\[CaptionDescriptions] => Array ( ) \\[NameModifier] => _FHD ) \\[1] => Array ( \\[ContainerSettings] => Array ( \\[Mp4Settings] => Array ( \\[CslgAtom] => INCLUDE \\[CttsVersion] => 0 \\[FreeSpaceBox] => EXCLUDE \\[MoovPlacement] => PROGRESSIVE_DOWNLOAD \\[Container] => MP4 ) ) \\[VideoDescriptions] => Array ( \\[ScalingBehavior] => DEFAULT \\[TimecodeInsertion] => DISABLED \\[AntiAlias] => ENABLED \\[Sharpness] => 50 \\[AfdSignaling] => NONE \\[DropFrameTimecode] => ENABLED \\[RespondToAfd] => NONE \\[ColorMetadata] => INSERT \\[CodecSettings] => Array ( \\[H264Settings] => Array ( \\[InterlaceMode] => PROGRESSIVE \\[NumberReferenceFrames] => 3 \\[Syntax] => DEFAULT \\[Softness] => 0 \\[GopClosedCadence] => 1 \\[GopSize] => 90 \\[Slices] => 1 \\[GopBReference] => DISABLED \\[SlowPal] => DISABLED \\[SpatialAdaptiveQuantization] => ENABLED \\[TemporalAdaptiveQuantization] => ENABLED \\[FlickerAdaptiveQuantization] => DISABLED \\[EntropyEncoding] => CABAC \\[FramerateControl] => INITIALIZE_FROM_SOURCE \\[RateControlMode] => QVBR \\[CodecProfile] => MAIN \\[Telecine] => NONE \\[MinIInterval] => 0 \\[AdaptiveQuantization] => HIGH \\[CodecLevel] => AUTO \\[FieldEncoding] => PAFF \\[SceneChangeDetect] => ENABLED \\[QualityTuningLevel] => SINGLE_PASS \\[FramerateConversionAlgorithm] => DUPLICATE_DROP \\[UnregisteredSeiTimecode] => DISABLED \\[GopSizeUnits] => FRAMES \\[ParControl] => INITIALIZE_FROM_SOURCE \\[NumberBFramesBetweenReferenceFrames] => 2 \\[RepeatPps] => DISABLED \\[DynamicSubGop] => STATIC \\[QvbrSettings] => Array ( \\[QvbrQualityLevel] => 7 \\[QvbrQualityLevelFineTune] => 0 ) \\[MaxBitrate] => 0 \\[Codec] => H_264 \\[Bitrate] => 2500000 ) ) \\[Width] => 720 \\[Height] => 480 ) \\[AudioDescriptions] => Array ( \\[AudioTypeControl] => FOLLOW_INPUT \\[LanguageCodeControl] => FOLLOW_INPUT \\[CodecSettings] => Array ( \\[AacSettings] => Array ( \\[AudioDescriptionBroadcasterMix] => NORMAL \\[Bitrate] => 384000 \\[RateControlMode] => CBR \\[CodecProfile] => LC \\[CodingMode] => CODING_MODE_2_0 \\[RawFormat] => NONE \\[SampleRate] => 48000 \\[Specification] => MPEG4 \\[Codec] => AAC ) ) ) \\[CaptionDescriptions] => Array ( ) \\[NameModifier] => _SD ) ) ) ) Edited by: SydneyMax on Feb 9, 2021 4:18 PM Edited by: SydneyMax on Feb 9, 2021 4:18 PM
1
answers
1
votes
1
views
SydneyMax
asked a year ago

EXT-X-PLAYLIST-TYPE:VOD Setting

Hi there, I'm using the web xonsole to test MediaConvert before building it out with the API. At the moment the m3u8 manifest files have the following at the top: #EXTM3U #EXT-X-VERSION:3 #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-INDEPENDENT-SEGMENTS However i'm looking to have them marked as VOD content, so for example: #EXTM3U #EXT-X-VERSION:6 #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-TARGETDURATION:4 #EXT-X-INDEPENDENT-SEGMENTS I've looked through all the settings and can't see anything that would make this happen. My job JSON is included below (with a few things xxx'd out) Many thanks in advance, Stuart { "Queue": "xxx", "UserMetadata": {}, "Role": "xxx", "Settings": { "TimecodeConfig": { "Source": "ZEROBASED" }, "OutputGroups": \[ { "Name": "Apple HLS", "Outputs": \[ { "ContainerSettings": { "Container": "M3U8", "M3u8Settings": { "AudioFramesPerPes": 4, "PcrControl": "PCR_EVERY_PES_PACKET", "PmtPid": 480, "PrivateMetadataPid": 503, "ProgramNumber": 1, "PatInterval": 0, "PmtInterval": 0, "Scte35Source": "NONE", "Scte35Pid": 500, "NielsenId3": "NONE", "TimedMetadata": "NONE", "TimedMetadataPid": 502, "VideoPid": 481, "AudioPids": \[ 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492 ] } }, "VideoDescription": { "ScalingBehavior": "DEFAULT", "TimecodeInsertion": "DISABLED", "AntiAlias": "ENABLED", "Sharpness": 50, "CodecSettings": { "Codec": "H_264", "H264Settings": { "InterlaceMode": "PROGRESSIVE", "NumberReferenceFrames": 3, "Syntax": "DEFAULT", "Softness": 0, "GopClosedCadence": 1, "GopSize": 90, "Slices": 1, "GopBReference": "DISABLED", "SlowPal": "DISABLED", "EntropyEncoding": "CABAC", "FramerateControl": "INITIALIZE_FROM_SOURCE", "RateControlMode": "QVBR", "CodecProfile": "MAIN", "Telecine": "NONE", "MinIInterval": 0, "AdaptiveQuantization": "AUTO", "CodecLevel": "AUTO", "FieldEncoding": "PAFF", "SceneChangeDetect": "ENABLED", "QualityTuningLevel": "MULTI_PASS_HQ", "FramerateConversionAlgorithm": "DUPLICATE_DROP", "UnregisteredSeiTimecode": "DISABLED", "GopSizeUnits": "FRAMES", "ParControl": "INITIALIZE_FROM_SOURCE", "NumberBFramesBetweenReferenceFrames": 2, "RepeatPps": "DISABLED", "DynamicSubGop": "STATIC" } }, "AfdSignaling": "NONE", "DropFrameTimecode": "ENABLED", "RespondToAfd": "NONE", "ColorMetadata": "INSERT" }, "AudioDescriptions": \[ { "AudioTypeControl": "FOLLOW_INPUT", "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" } ], "OutputSettings": { "HlsSettings": { "AudioGroupId": "program_audio", "AudioOnlyContainer": "AUTOMATIC", "IFrameOnlyManifest": "EXCLUDE" } } } ], "OutputGroupSettings": { "Type": "HLS_GROUP_SETTINGS", "HlsGroupSettings": { "ManifestDurationFormat": "INTEGER", "SegmentLength": 6, "TimedMetadataId3Period": 10, "CaptionLanguageSetting": "OMIT", "Destination": "xxx", "TimedMetadataId3Frame": "PRIV", "CodecSpecification": "RFC_6381", "OutputSelection": "MANIFESTS_AND_SEGMENTS", "ProgramDateTimePeriod": 600, "MinSegmentLength": 0, "MinFinalSegmentLength": 0, "DirectoryStructure": "SINGLE_DIRECTORY", "ProgramDateTime": "EXCLUDE", "SegmentControl": "SEGMENTED_FILES", "ManifestCompression": "NONE", "ClientCache": "ENABLED", "AudioOnlyHeader": "INCLUDE", "StreamInfResolution": "INCLUDE" } }, "AutomatedEncodingSettings": { "AbrSettings": { "MaxAbrBitrate": 8000000, "MinAbrBitrate": 400000 } } } ], "AdAvailOffset": 0, "Inputs": \[ { "AudioSelectors": { "Audio Selector 1": { "Offset": 0, "DefaultSelection": "DEFAULT", "ProgramSelection": 1 } }, "VideoSelector": { "ColorSpace": "FOLLOW", "Rotate": "DEGREE_0", "AlphaBehavior": "DISCARD" }, "FilterEnable": "AUTO", "PsiControl": "USE_PSI", "FilterStrength": 0, "DeblockFilter": "DISABLED", "DenoiseFilter": "DISABLED", "InputScanType": "AUTO", "TimecodeSource": "ZEROBASED", "FileInput": "xxx" } ] }, "AccelerationSettings": { "Mode": "DISABLED" }, "StatusUpdateInterval": "SECONDS_60", "Priority": 0 }
2
answers
0
votes
1
views
Stukerr
asked a year ago

Mediaconvert job failing with 1040 error code for a certain video target

Hi everyone, I'm using Mediaconvert Job Template to create multiple outputs. HLS & DASH. Each group outputs 5 renditions of content starting from 240 up-to 1080. To preserve the aspect ratio of original content only height is provided in job template. I encountered rather strange issue. My job is failing with error code 1040 and message "Error initializing encoder for video target \[5] initialization failed: Invalid level specified for the selected resolution." Video Target \[5] is 1080 output. If I provide width, only for 1080 output, for media groups, job is processed. Adding video stream information from mediainfo. Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L4.2 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 4 frames Format settings, GOP : M=4, N=24 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 5 min 26 s Bit rate : 10.0 Mb/s Width : 1 998 pixels Height : 1 080 pixels Display aspect ratio : 1.85:1 Frame rate mode : Constant Frame rate : 24.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.193 Stream size : 390 MiB (97%) Language : English Encoded date : UTC 2020-08-24 18:57:34 Tagged date : UTC 2020-08-24 18:57:34 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC Dimensions of video are a bit odd but it is failing for 1080 output only. Like mentioned above If I provide width for 1080 rest of renditions are processed even without width. Level for 1080 is LEVEL_4 and Profile is HIGH. Any help is appreciated.
4
answers
0
votes
1
views
fawaztahir
asked a year ago

Encoding HLS with language French

Hello, it seems that changing the language code in the output for HLS is not fully suported. my last encoding was with a french subtitle. I updated the output track Subtitle LANGUAGE to French. The Language code is updated in the outputted master m3u8 to "fra" but the description is still "English" Here the master m3u8 generated by mediaconvert (please look to the last line **#EXT-X-MEDIA:TYPE=SUBTITLES** ) : ``` #EXTM3U #EXT-X-VERSION:3 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-STREAM-INF:BANDWIDTH=686296,AVERAGE-BANDWIDTH=508079,CODECS="avc1.4d401f,mp4a.40.5",RESOLUTION=480x270,FRAME-RATE=23.976,SUBTITLES="subs" 1002151_1002150_DM-10964_-OVP_270p_400Kbps.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1924385,AVERAGE-BANDWIDTH=1368510,CODECS="avc1.4d401f,mp4a.40.5",RESOLUTION=640x360,FRAME-RATE=23.976,SUBTITLES="subs" 1002151_1002150_DM-10964_-OVP_360p_1200Kbps.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=4746228,AVERAGE-BANDWIDTH=3743829,CODECS="avc1.640028,mp4a.40.5",RESOLUTION=960x540,FRAME-RATE=23.976,SUBTITLES="subs" 1002151_1002150_DM-10964_-OVP_540p_3500Kbps.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=6673225,AVERAGE-BANDWIDTH=5293064,CODECS="avc1.640028,mp4a.40.5",RESOLUTION=1280x720,FRAME-RATE=23.976,SUBTITLES="subs" 1002151_1002150_DM-10964_-OVP_720p_5000Kbps.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=8567159,AVERAGE-BANDWIDTH=6837152,CODECS="avc1.640028,mp4a.40.5",RESOLUTION=1280x720,FRAME-RATE=23.976,SUBTITLES="subs" 1002151_1002150_DM-10964_-OVP_720p_6500Kbps.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=11883660,AVERAGE-BANDWIDTH=8936014,CODECS="avc1.640028,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=23.976,SUBTITLES="subs" 1002151_1002150_DM-10964_-OVP_1080p_8500Kbps.m3u8 #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="fra",URI="1002151_1002150_DM-10964_-OVP_VTT.m3u8" ```
2
answers
0
votes
1
views
JoelB
asked 2 years ago
  • 1
  • 90 / page