Hello.
I’m currently working on the development
I extracted a .mp3 file with MediaMuxer because I need to extract audio from my video file.
However, for .mp3 files extracted with MediaMuxer, they could not be called up to UnityWebRequest or WWW.
extracted with MediaMuxerIt felt like I was like changed only in video file extension of the mp3.
Is there any other way besides MediaMuxer?
The question was, “Are you looking to extract out the audio to play it inside unity itself as an audio source or do you want to save it to disk?” It is important because you have two completely different answers. If you want to play the video inside an AudioSource, you can do it by changing the AudioSourceOutput to AudioSource and setting the AudioSource. If you want to save the audio from the video to the disk, we don’t have a good solution right now. You can extract the audio while playing the video, but it means a lot of GPU is wasted on decoding the video. After that, you would need to save it in a good formated MP3 which is not trivial and would need an external library.
@The_Island It’s the former. I don’t want to save the audio to disk. I want to play a video in an audio source. I want to get the audio from a video and play it in an audio source. How can I do this? Can you show some screenshots?