-
public class MediaFormatProviderFormats from getTrackFormat might be missing important metadata information like the sample rate or bit rate. These values are needed by com.otaliastudios.transcoder.strategy.TrackStrategy to compute the output configuration. This class will check the completeness of the input format and if needed, provide a more complete format by decoding the input file until MediaCodec computes all values.
-
-
Method Summary
Modifier and Type Method Description MediaFormatprovideMediaFormat(@NonNull() DataSource source, @NonNull() TrackType type, @NonNull() MediaFormat format)Inspects the given format - coming from getTrackFormat,and in case it's not complete, it returns a decoded, complete format. -
-
Method Detail
-
provideMediaFormat
@NonNull() MediaFormat provideMediaFormat(@NonNull() DataSource source, @NonNull() TrackType type, @NonNull() MediaFormat format)
Inspects the given format - coming from getTrackFormat,and in case it's not complete, it returns a decoded, complete format.
- Parameters:
source- sourcetype- typeformat- format
-
-
-
-