Disable the NBest Subtitle track for ShakaPackager #181
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
The NBest track wtih .vtt file is not directly used by our AMS origin server today,
and the cues inside the vtt file might be in wrong order in some cases.
This change just disable the NBest track when ShakaPackager is used to generate DASH/HLS manifests.
For LiveToVOD asset, the track with .vtt as its source is treated as NBest track.
For asset generated by MES Copy job, it may generate multiple text tracks with .cmft file which are generated from the .vtt files,
In this case, keep one CMFT track for each language, the one with the biggest vtt file size is used for that language, other close caption tracks are not used for ShakaPackager.
Even though those vtt files are not used by ShakaPackager, but the cue timestamps are still adjusted to match with new audio/video timelines, and the updated vtt files are copied over to the destination folder
for the asset owner to consume them with other tools.
The change keep uses the current design, and extend it by using the settings of the matching Manifiest item in the Manifest list, if the match track is not used
by the ShakaPackager, the value of Manifest list for that track is set to "", so that the packager knows how to deal with it.
The change also contains a minor fix where it always uploaded the .vtt files in advance when the asset contains cmft file as track source which are generated from .vtt file,
since the vtt files are updated and used by ShakaPackager, the pre-uploading should not directly upload vtt files for this asset.