Home » Android » java – How to get raw audio samples from a mp4 video playback?-Exceptionshub

java – How to get raw audio samples from a mp4 video playback?-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I am building an app that can playback video, during the playback, I would like to analyse the audio using signal processing techniques. Because I am not familiar with Android, my main source is google. I can now playback a mp4 file using VideoView and MediaController. However, I cannot seem to find a way of getting the raw audio samples from it.

Is there any other Android API I can use to do the video playback that I can get access to the audio samples? (I try to avoid using third-party libraries if possible.) It would be great if you can also provide some simple examples. Many thanks.

How to&Answers: