Questions tagged with AWS Elemental MediaConvert

Content language: English

Sort by most recent

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

First chunk freezing when splitting into segments

I've got an html5 video player on my website in which I combine a video track with a standalone audio track. It's done on-the-fly using an m3u8 playlist. The purpose is to have one video file with voiceovers in different languages. The video is an MP4 file split into TS segments, the audio is an AAC file split into TS segments as well. Previously I had been splitting these videos using ffmpeg. A simple command, no extra settings: ffmpeg -i video.mp4 -hls_list_size 0 -g 60 -hls_time 5 video.m3u8 Then I started doing the same thing in MediaConvert with seemingly the same settings and noticed a problem in the video player — the audio skips ahead like half a second at the beginning. Meaning the video starts properly but the audio is offset. Initially I didn't think it's about the video because, once again, the video and audio tracks are separate files that are combined on-the-fly. But it turned out that if I use the TS video files generated by ffmpeg, the audio and video are synced. If I replace them with the Mediaconvert segments, with everything else remaining the same, it's out of sync. I've played with nearly all MediaConvert settings to no avail. Checked the files with ffprobe, they seem to be identical. What could the reason possible be? Here are the links: - https://oxfordfm7542.s3.amazonaws.com/test/video_synced.ts - https://oxfordfm7542.s3.amazonaws.com/test/video_unsynced.ts Edited by: Denisodb on Jul 14, 2021 9:50 AM
1
answers
0
votes
31
views
asked a year ago

Expected response to elemental mediaconvert from speke

when I run elemental mediaconvert in order to output dash output group with DRM option on, http request is sent like below. ``` <?xml version="1.0" encoding="UTF-8"?> <cpix:CPIX xmlns:cpix="urn:dashif:org:cpix" xmlns:ds="http://www.w3.org/ 2000/09/xmldsig#" xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:pskc="urn:ietf:params:xml:ns:keyprov:pskc" xmlns:speke="urn:aws:amazon:com:speke" id="content_id"> <cpix:ContentKeyList> <cpix:ContentKey kid="07e31bf1-96b3-404d-bdcf-8af1a2739f77" /> </cpix:ContentKeyList> <cpix:DRMSystemList> <cpix:DRMSystem kid="07e31bf1-96b3-404d-bdcf-8af1a2739f77" systemId="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> <cpix:ContentProtectionData /> <speke:ProtectionHeader /> <cpix:PSSH /> <cpix:URIExtXKey /> <speke:KeyFormat /> <speke:KeyFormatVersions /> </cpix:DRMSystem> </cpix:DRMSystemList> </cpix:CPIX> ``` And below is the key fetch response from widevine license service ``` { “status”: “OK”, “drm”: \[ { “type”: “WIDEVINE”, “system_id”: “edef8ba979d64acea3c827dcd51d21ed” } ], “tracks”: \[ { “type”: “SD”, “key_id”: “L4YzkiR4VUunMG5XknH0pA==“, “key”: “Fsxb4_/oj0k5n6Pg_gOWKg==“, “pssh”: \[ { “drm_type”: “WIDEVINE”, “data”: “IhbvjrnvfvjbTrfp/p7vjrnp7vjbTr3rSOPclZsG”, “boxes”: “AAAAPnBzc2gAAAAA7e_LqXnWSs6jyCfc1R0h7QAAAB4iFu_Oue9++NtOt_n_nu_Ouenu_NtOvetI49yVmwY=” } ], “entitled_key”: \[], “content_groups”: \[], “feature”: “” } ] } ``` What is the expected response to mediaconvert based on these conditions.
1
answers
0
votes
26
views
asked 2 years ago

IPhone-Video got rotated 90 degrees

Hello, we are using MediaConvert to convert videos into a streamable HLS format and it works great. Today we had a video which was rotated by 90 degrees in the conversion. Our input selector for the video has "No rotation" selected (confirmed by looking at the job) and the metadata of the video does not seem to have any rotation metadata which could indicate why it was rotated. Here is the metadata { "streams": \[ { "index": 0, "codec_name": "aac", "codec_long_name": "AAC (Advanced Audio Coding)", "profile": "LC", "codec_type": "audio", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "fltp", "sample_rate": "44100", "channels": 1, "channel_layout": "mono", "bits_per_sample": 0, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/44100", "start_pts": 0, "start_time": "0.000000", "duration_ts": 17687408, "duration": "401.075011", "bit_rate": "63153", "nb_frames": "17274", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0, "captions": 0, "descriptions": 0, "metadata": 0, "dependent": 0, "still_image": 0 }, "tags": { "creation_time": "2021-05-03T18:45:16.000000Z", "language": "und", "handler_name": "Core Media Audio", "vendor_id": "\[0]\[0]\[0]\[0]" } }, { "index": 1, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "High", "codec_type": "video", "codec_tag_string": "avc1", "codec_tag": "0x31637661", "width": 1920, "height": 1080, "coded_width": 1920, "coded_height": 1080, "closed_captions": 0, "has_b_frames": 1, "sample_aspect_ratio": "1:1", "display_aspect_ratio": "16:9", "pix_fmt": "yuv420p", "level": 42, "color_range": "tv", "color_space": "bt709", "color_transfer": "bt709", "color_primaries": "bt709", "chroma_location": "left", "refs": 1, "is_avc": "true", "nal_length_size": "4", "r_frame_rate": "60000/1001", "avg_frame_rate": "14430000/240647", "time_base": "1/600", "start_pts": 0, "start_time": "0.000000", "duration_ts": 240647, "duration": "401.078333", "bit_rate": "15763017", "bits_per_raw_sample": "8", "nb_frames": "24050", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0, "captions": 0, "descriptions": 0, "metadata": 0, "dependent": 0, "still_image": 0 }, "tags": { "creation_time": "2021-05-03T18:45:16.000000Z", "language": "und", "handler_name": "Core Media Video", "vendor_id": "\[0]\[0]\[0]\[0]", "encoder": "H.264" } } ] } Can you think of any reason why this happened? Edited by: puelo on May 6, 2021 6:43 AM
6
answers
0
votes
82
views
puelo
asked 2 years 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 }
11
answers
0
votes
225
views
rossng
asked 2 years 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
187
views
asked 2 years ago