Hi all,
I am trying to burn in captions in clips I create using MediaConvert, but my caption text gets clipped and does not get word-wrapped if it is a lengthy one.
Here is the JSON setting -
{
"UserMetadata": {},
"Settings": {
"TimecodeConfig": {
"Source": "ZEROBASED"
},
"OutputGroups": [
{
"Name": "File Group",
"Outputs": [
{
"ContainerSettings": {
"Container": "MP4",
"Mp4Settings": {}
},
"VideoDescription": {
"CodecSettings": {
"Codec": "H_264",
"H264Settings": {
"MaxBitrate": 1024000,
"RateControlMode": "QVBR",
"SceneChangeDetect": "TRANSITION_DETECTION"
}
}
},
"AudioDescriptions": [
{
"AudioSourceName": "Audio Selector 1",
"CodecSettings": {
"Codec": "AAC",
"AacSettings": {
"Bitrate": 96000,
"CodingMode": "CODING_MODE_2_0",
"SampleRate": 48000
}
}
}
],
"CaptionDescriptions": [
{
"CaptionSelectorName": "Captions Selector 1",
"DestinationSettings": {
"DestinationType": "BURN_IN",
"BurninDestinationSettings": {
"ShadowXOffset": 1,
"OutlineSize": 2,
"ShadowColor": "BLACK",
"FontSize": 16,
"FontColor": "WHITE",
"OutlineColor": "BLACK",
"ShadowYOffset": 1,
"ShadowOpacity": 0,
"StylePassthrough": "ENABLED"
}
}
}
]
}
],
"OutputGroupSettings": {
"Type": "FILE_GROUP_SETTINGS",
"FileGroupSettings": {
"Destination": "s3://sample/staging/project/122/clips/clip_1706574698"
}
}
}
],
"AdAvailOffset": 0,
"Inputs": [
{
"InputClippings": [
{
"EndTimecode": "00:00:49:00",
"StartTimecode": "00:00:31:00"
}
],
"AudioSelectors": {
"Audio Selector 1": {
"Tracks": [
1
],
"Offset": 0,
"DefaultSelection": "NOT_DEFAULT",
"SelectorType": "TRACK",
"ProgramSelection": 1
}
},
"VideoSelector": {
"ColorSpace": "FOLLOW"
},
"FilterEnable": "AUTO",
"PsiControl": "USE_PSI",
"FilterStrength": 0,
"DeblockFilter": "DISABLED",
"DenoiseFilter": "DISABLED",
"TimecodeSource": "ZEROBASED",
"CaptionSelectors": {
"Captions Selector 1": {
"SourceSettings": {
"SourceType": "SRT",
"FileSourceSettings": {
"SourceFile": "s3://sample/staging/project/122/custom-video/sample.srt"
}
}
}
},
"FileInput": "s3://sample/staging/project/122/custom-video/sample.mp4"
}
]
},
"BillingTagsSource": "JOB",
"AccelerationSettings": {
"Mode": "DISABLED"
},
"StatusUpdateInterval": "SECONDS_60",
"Priority": 0
}
Below I have attached a screenshot showing how the caption is getting clipped -
Thank you in advance for your help!
PS. Even the subtitle looks ugly but I will ask this question separately.