Share via


How to edit a text track in the Azure portal

Media Services logo v3


Warning

Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.

When your live event has used live transcription to create a VTT or TTML file for use with captions and transcripts for the captured video, it's likely that the live transcription will need some editing. You may also want to deliver the text in multiple languages and allow your viewers to choose which to use in the player. This article covers how to edit the source VTT file in the Azure portal.

Find and edit the track

List asset tracks in the portal

  1. Navigate to the Media Services account you want to work with.
  2. Select Assets from the menu. The Assets screen will appear.
  3. The tracks in the asset will be listed in the Tracks list.

Edit the track

There are two ways to edit the track. You can either edit the track in the Azure portal or download the track and edit it locally.

Warning

Be careful that you don't edit the timestamps!

Edit the track in the Azure portal

  1. Select Edit captions next to the track you want to edit. The Captions editing screen will appear.
  2. Edit the file.
  3. Select Save.

Download and edit the track

  1. Select the vertical ellipsis next to the text track you want to work with. NOTE: Live transcription text tracks are usually named auto-generated-best_4800.vtt.
  2. Select Download. Save the file locally.
  3. Open the file in your favorite text edit.
  4. Edit the text or correct anything that live transcription didn't capture.
  5. Save the edited file.

Upload captions

Once the job is completed, the resulting files from the encoder will be in the output asset. You will use this asset going forward.

  1. Navigate to the output asset used to hold the results of encoding.
  2. Select Add text track.
  3. Enter a name in the Name field. For example, for an English text track enter English.
  4. Select Upload new radio button. Alternatively, if you have already created or uploaded a VTT file, you can select the Use existing radio button and select the track.
  5. Enter the text to be displayed in the player in the Display name field.
  6. Select either Visible radio button to ensure that the track will be displayed in the player client.
  7. Select the HLS settings checkboxes to set the track as the default track and/or set forced. For English, set it as the default track.
  8. Select the Accessibility characteristics checkboxes to identify what accessibility guideline the text track is used for.
  9. Select I agree and upload to upload the text track.

View the caption streams in the manifest

View the manifest to see the track changes in the manifest file.

  1. You should already be on the output asset screen.
  2. Select the storage container link. The storage container name starts with the "asset-" prefix. The storage container screen will appear.
  3. Select the .ism file from the file list. The blob screen will appear.
  4. Select Edit.
  5. Look for the following XML above the </switch> element, changing the VTT file names to the ones you've uploaded.
    <textstream src="sample.cmft" systemBitrate="52" systemLanguage="en-us">
        <param name="systemLanguage" value="en-us" valuetype="data" />
        <param name="outputFlag" value="3" valuetype="data" />
        <param name="systemBitrate" value="52" valuetype="data" />
        <param name="transcriptsrc" value="en-us.vtt" valuetype="data" />
        <param name="textIsDefault" value="TRUE" valuetype="data" />
        <param name="textHlsCharacteristic" value="public.accessibility.transcribes-spoken-dialog" valuetype="data" />
        <param name="trackID" value="1" valuetype="data" />
        <param name="trackName" value="subt_en-us" valuetype="data" />
        <param name="textDisplayName" value="English" valuetype="data" />
        <param name="armId" value="English" valuetype="data" />
    </textstream>
    <textstream src="es-es.cmft" systemBitrate="50333" systemLanguage="">
        <param name="systemLanguage" value="" valuetype="data" />
        <param name="outputFlag" value="3" valuetype="data" />
        <param name="systemBitrate" value="0" valuetype="data" />
        <param name="transcriptsrc" value="es-es.vtt" valuetype="data" />
        <param name="textHlsCharacteristic" value="public.accessibility.transcribes-spoken-dialog" valuetype="data" />
        <param name="trackID" value="1" valuetype="data" />
        <param name="trackName" value="subt" valuetype="data" />
        <param name="textDisplayName" value="EspaƱol" valuetype="data" />
        <param name="armId" value="Spanish" valuetype="data" />
    </textstream>

Get help and support

You can contact Media Services with questions or follow our updates by one of the following methods: