Skip to content

AWS MediaConvert Vorbis output saved to S3 with video/webm Content-Type instead of audio/ogg

0

Hi! When using AWS MediaConvert to transcode an audio file, I select Vorbis as the audio codec and an OGG container in the UI. However, the resulting object written to S3 is always saved with a Content-Type of video/webm.

If I download and inspect the file locally, it contains only Vorbis-encoded audio (no video track) and is playable by audio players that support Vorbis. To work around this, I can manually update the object’s Content-Type metadata in S3, but I would prefer to avoid post-processing if possible.

Is there a way to configure MediaConvert to set the right Content-Type when it writes the file to S3?

3 Answers
1

Based on the available information about AWS MediaConvert, the service does not provide direct configuration options to control the Content-Type metadata that gets set when output files are written to S3. MediaConvert focuses on the transcoding process itself - converting input media to the specified output formats with the codecs and containers you configure.

The Content-Type metadata issue you're experiencing appears to be related to how MediaConvert handles metadata when writing files to S3, rather than a configurable setting in the transcoding job itself. While you can specify the audio codec (Vorbis) and container format (OGG) in MediaConvert's settings, there isn't a documented way to explicitly set the S3 object's Content-Type header during the transcoding job creation.

Your current workaround of manually updating the S3 object metadata after transcoding is a valid approach. To automate this and avoid manual post-processing, you could consider implementing an automated solution using AWS Lambda. You could set up an S3 event notification that triggers a Lambda function whenever MediaConvert writes a new file to your output bucket. The Lambda function could then automatically update the Content-Type metadata to audio/ogg for files with the .ogg extension.

This would allow you to maintain the correct Content-Type without manual intervention while working within the current capabilities of MediaConvert's S3 integration.
Sources
Migrating workflows from Elastic Transcoder to Amazon Elemental MediaConvert | AWS for M&E Blog
Tutorial: Batch-transcoding videos with S3 Batch Operations - Amazon Simple Storage Service

answered 7 months ago

EXPERT

reviewed 7 months ago

0

What tool are you using to inspect resulted content? Mediainfo is showing: Internet media type : audio/vorbis

AWS

answered 7 months ago

  • The issue is not with the file itself, the file itself is the way it's supposed to be - the issue is with it being saved in S3, it adds a Content Type of type video/webm although the file is audio/vorbis, content type which is system generated. As we have an event drived design, we have certain flows that are based on the Content Type, which lead to us needing to trigger a lambda to change it afterwards. It seems inaccurate that the MediaConvert job itself would produce an audio/vorbis file but label it as an video/webm.

0

I see the same.

Enter image description here

Suggest to open support ticket.

AWS

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.