Class AudioExtractor

java.lang.Object
com.banuba.sdk.video.BaseExtractor
com.banuba.sdk.video.AudioExtractor
All Implemented Interfaces:
Closeable, AutoCloseable

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

    • AudioExtractor

      public AudioExtractor(String filename) throws 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:
      IOException
  • Method Details

    • extractAudioStream

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