Skip to main content

Set Default Track

FFmpeg Builder: Set Default Track

This flow element will search for the given audio, subtitle track or both and set them as default.

Type

The type of tracks that should be updated

Languages

The language code used to search for the audio track.

The first track of each type (Audio, Subtitle, Both) will be set as default, not all "en" tracks will be set as default.

It is recommended that an ISO 639-2 language code is used.

tip

You can use a regular expression in this field

Example

To set the first English or Japanese track as default, you can enter the value

en|jp

This will match 'English', 'en', 'eng', 'Japanese', 'jp', 'jpn'

Index

note

Only used if Language is not set.

Zero based index of the track, i.e. the first track is index 0.

Specify the index of track to set as default, if the index is outside the bounds of the track collection, output 2 will be called. The flow will NOT fail.


Outputs

  1. Track successfully set as default
  2. Track not found and could not be set as default