I am creating a Node api to convert .mp4 file to .wav file using AWS MediaConvert. I need to add some metadata to the output .wav file but I am not able to figure out how to do so.
Is there any specific MediaConvert setting that I need to configure while creating a MediaConvert Job for the transcoding which will allow me to add the metadata to the .wav file?
I am currently having the following setting for my MediaConvert Job:
const mediaConvertSetting = {
Queue: queue-arn,
Role: role-arn,
Settings: {
Inputs: [
{
AudioSelectors: {
"Audio Selector 1": {
DefaultSelection: "DEFAULT",
},
},
VideoSelector: {},
TimecodeSource: "ZEROBASED",
FileInput: `s3://source-bucket/input_file.mp4`,
},
],
TimecodeConfig: {
Source: "ZEROBASED",
},
OutputGroups: [
{
Name: "File Group",
Outputs: [
{
ContainerSettings: {
Container: "RAW",
},
AudioDescriptions: [
{
AudioTypeControl: "FOLLOW_INPUT",
AudioSourceName: "Audio Selector 1",
CodecSettings: {
Codec: "WAV",
WavSettings: {
BitDepth: '16',
Channels: '1',
Format: 'RIFF',
SampleRate: '8000'
}
},
LanguageCodeControl: "FOLLOW_INPUT",
AudioType: 0,
},
],
Extension: "wav",
NameModifier: "_wav",
},
],
OutputGroupSettings: {
Type: "FILE_GROUP_SETTINGS",
FileGroupSettings: {
Destination: `s3://destination-bucket/`,
S3Settings: {
AccessControl: {
CannedAcl: "PUBLIC_READ"
}
}
},
},
},
],
TimedMetadataInsertion: {
Id3Insertions: [
{
Id3: base64EncodedTestMetadata,
Timecode: '00:00:00:01'
},
]
}
},
UserMetadata: {
"Some Metadata": "TEST",
},