Skip to content

Transforming the media

Devrath edited this page Oct 31, 2021 · 2 revisions

Transforming the media

  • Using the Transformer API we can take a MediaItem(we can also refer to this as media stream) as an input and apply some changes and transform it into an output file that is different from the input.
  • Multiple transformations are supported with the same transformer instance but concurrent instances are not supported.
  • Input can be a progressive stream or an adaptive stream
  • Output always has to be a progressive stream
  • For adaptive stream input, always the highest resolution is selected

Transformations available are

  • Removal of a track.
  • Transmuxing between container formats.
  • Flattening of slow-motion videos or, in other words, their conversion into normal videos that retain the desired slow-motion effects, but can be played with a player that is not aware of slow-motion video formats.