Class AudioExtractor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class AudioExtractor
    extends BaseExtractor
    Extracts an audio stream from a video file
    • Constructor Detail

      • AudioExtractor

        public AudioExtractor​(java.lang.String filename)
                       throws java.io.IOException
        Create an instance of the AudioExtractor. If there is no audio data, an IOException will be thrown
        Parameters:
        filename - - path to the videofile
        Throws:
        java.io.IOException
    • Method Detail

      • extractAudioStream

        public java.util.LinkedList<android.util.Pair<android.media.MediaCodec.BufferInfo,​java.nio.ByteBuffer>> extractAudioStream()
        Extract full audio stream from a video file
        Returns:
        linked list with audio samples