VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Check language tracks in an HLS stream

If a spoken language is missing in the player, verify the delivered main playlist, the audio group, and the language switch in the actual video.

A video frame is linked through two differently colored bands featuring waveforms to two speakers.
Two language versions can be provided for the same video frame within a single audio group.Image: Vioneto · AI-generated illustration

A teaching video uses the same images for both the German and English explanations. Both audio tracks are available on average. However, on the website, only the German version is displayed. For diagnosis, you need the actual stream that the intended page plays. The existing audio track in the average project says nothing about the delivery.

Check spoken version, language entry, and player individually

The master HLS playlist defines playback options. An entry of type EXT-X-MEDIA with TYPE=AUDIO can specify an audio track. The LANGUAGE attribute describes the language of the track. The NAME attribute is the track's label and may appear in the selection menu. A separate audio playlist is assigned via its URI. The AUDIO attribute in a video variant specifies the GROUP-ID of the corresponding audio group.

In this example, German and English both carry the GROUP-ID "language". Both the small and large image variants reference "language" via AUDIO. If the large variant instead referenced "standard", it would need to be checked which languages are included in that group. Having two audio entries somewhere in the main playlist is not sufficient to assign the selected image variant.

RFC 8216 · Groups of Representations and Their Assignment to Variants

Apple · Example of a playlist with alternative media

Check the delivered version on the test page

  1. Open the main playlist intended for your own site or test environment. Verify the expected audio entries, clearly spoken language names, and group references.
  2. Compare the actual audio playlists of the two languages within the authorized access range. When a version is missing, note whether the entry is missing or if playback is missing.
  3. Play the film on the intended page. Select both languages and listen to a sentence to identify the actual audio track. A correctly labeled menu item is only part of the test.
  4. Check the language switch after a mid-stream jump and after a quality change, if your player supports such switches. Also test on a second device intended for use.

DEFAULT=YES indicates the version to be used at startup when the viewer does not specify otherwise. With AUTOSELECT=YES, the player may automatically select an appropriate version, for example based on the viewer's preferred language. Check the default start and manual selection separately. Apple specifies additional requirements for its devices regarding alternative audio streams and their language entries. For the example, first ensure that both versions are available for the entire duration and are audible and suitable for presentation.

Apple · HLS Automatic Audio Requirements for Alternative Audio Streams

HLS main playlist, segments, and playback integration

When selecting between subtitles, audio track, and original video version, choose your preferred option.

Topics

Sources and further reading

  1. https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.4
  2. https://developer.apple.com/streaming/hls-authoring-specification-for-apple-devices.html
  3. https://developer.apple.com/documentation/http-live-streaming/adding-alternate-media-to-a-playlist