2021年4月24日星期六

How do you use MediaMuxer in Android Studio

I'm trying to combine a Video file and Audio file using MediaMuxer(https://developer.android.com/reference/android/media/MediaMuxer.html)

I've read the docs, but I'm confused on where to specify the audio and video file. I'd assumed to put it in MediaFormat(), but it seems MediaFormat takes in a copy of MediaFormat.

Additionally, there seems to be errors in the first documentation code since getInputBuffer, isAudioSample, and bufferSize are all undefined.

If anyone knows how to use MediaMuxer, and can help, I would appreciate it a lot.

Thanks!!

https://stackoverflow.com/questions/67249096/how-do-you-use-mediamuxer-in-android-studio April 25, 2021 at 10:05AM

没有评论:

发表评论