# Playing mp4 audio

**URL:** https://qa.fmod.com/t/playing-mp4-audio/17995
**Category:** FMOD Engine
**Tags:** cpp
**Created:** [November 21, 2021, 6:19pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995 "2021-11-21T18:19:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ehardin](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@ehardin](https://qa.fmod.com/u/ehardin)
#### Post date: [November 21, 2021, 6:19pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/1 "2021-11-21T18:19:36Z")

</div>

I have been using the FMOD API to play mp3 audio from file with no problems but when I plug in an mp4 file all of the FMOD\_RESULTs return OK but no sound plays.

Is there an extra step or something that is needed to play the audio track from an mp4 file?

Ed

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [November 22, 2021, 1:37am UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/2 "2021-11-22T01:37:06Z")

</div>

MP4 is a multipurpose/video format that isn’t supported in the FMOD API. You can see a list of all supported formats at the following link:

[https://www.fmod.com/resources/documentation-api?version=2.02&page=core-api-sound.html#fmod\_sound\_type](https://www.fmod.com/resources/documentation-api?version=2.02&page=core-api-sound.html#fmod_sound_type)

---

<div class="post-metadata">

### Author: ![ehardin](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@ehardin](https://qa.fmod.com/u/ehardin)
#### Post date: [November 22, 2021, 3:07pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/3 "2021-11-22T15:07:49Z")

</div>

Richard,

This is where I got the idea that .mp4 was supported. Down the page a bit is this

FMOD\_SOUND\_TYPE\_MEDIA\_FOUNDATION  
Microsoft Media Foundation decoder (.asf, .wma, .wmv, .mp4, .m4a). Platform provided decoder, available only on UWP.

Now maybe it is that last bit about UWP. I don’t know what that means but does it mean that if I get the UWP decoder that I can then use mp4?

Ed

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [November 22, 2021, 11:01pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/4 "2021-11-22T23:01:45Z")

</div>

My mistake - I’ve double checked with our development team and they’ve informed me that the three instances mp4 is supported (Android, iOS, UWP) is tied to the method it has been built with. I believe it isn’t possible to simply grab the decoder from within a baked UWP app and use it elsewhere. We would not be able to provide any support for if this was somehow managed.

---

<div class="post-metadata">

### Author: ![ehardin](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@ehardin](https://qa.fmod.com/u/ehardin)
#### Post date: [November 23, 2021, 2:03pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/5 "2021-11-23T14:03:05Z")

</div>

Richard,

Thank you for getting back to me. That saves me time researching UWP only to discover that it was a blind alley.

Ed

---

<div class="post-metadata">

### Author: ![ehardin](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@ehardin](https://qa.fmod.com/u/ehardin)
#### Post date: [December 3, 2021, 4:03pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/6 "2021-12-03T16:03:42Z")

</div>

Richard,

Is it possible, then, to play the audio from an AVI video file?

Ed

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [December 6, 2021, 3:28am UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/7 "2021-12-06T03:28:49Z")

</div>

AVI is a container format which could contain all kinds of audio formats. We don’t supports parsing AVI, so FMOD probably wouldn’t be able to find the audio unless it was MP3. You can use `FMOD_MPEGSEARCH` which might be able to find the MP3.

[https://www.fmod.com/resources/documentation-api?version=2.02&page=core-api-common.html#fmod\_mode](https://www.fmod.com/resources/documentation-api?version=2.02&page=core-api-common.html#fmod_mode)

---

<div class="post-metadata">

### Author: ![ehardin](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@ehardin](https://qa.fmod.com/u/ehardin)
#### Post date: [December 6, 2021, 2:31pm UTC](https://qa.fmod.com/t/playing-mp4-audio/17995/8 "2021-12-06T14:31:50Z")

</div>

Richard,

Thanks for pointing me in the right direction. I take a look at that.

Ed
