Package 

Class PassThroughTrackStrategy

  • All Implemented Interfaces:
    com.otaliastudios.transcoder.strategy.TrackStrategy

    
    public class PassThroughTrackStrategy
     implements TrackStrategy
                        

    An TrackStrategy that asks the encoder to keep this track as is. Note that this is risky, as the track type might not be supported by the mp4 container.

    • Method Summary

      Modifier and Type Method Description
      TrackStatus createOutputFormat(@NonNull() List<MediaFormat> inputFormats, @NonNull() MediaFormat outputFormat) Create the output format for this track (either audio or video).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createOutputFormat

        @NonNull() TrackStatus createOutputFormat(@NonNull() List<MediaFormat> inputFormats, @NonNull() MediaFormat outputFormat)

        Create the output format for this track (either audio or video).Implementors should fill the outputFormat object and return a non-null TrackStatus:- COMPRESSING: we want to compress this track. Output format will be used- PASS_THROUGH: we want to use the input format. Output format will be ignored- REMOVING: we want to remove this track. Output format will be ignoredSubclasses can also throw to abort the whole transcoding operation.

        Parameters:
        inputFormats - the input formats
        outputFormat - the output format to be filled