# Fmod not playing an mpeg stream

**URL:** <https://qa.fmod.com/t/fmod-not-playing-an-mpeg-stream/18699>\
**Category:** FMOD Engine\
**Created:** [April 25, 2022, 9:05am UTC](https://qa.fmod.com/t/fmod-not-playing-an-mpeg-stream/18699 "2022-04-25T09:05:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akleshchev](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@akleshchev](https://qa.fmod.com/u/akleshchev)\
**Post date:** [April 25, 2022, 9:05am UTC](https://qa.fmod.com/t/fmod-not-playing-an-mpeg-stream/18699/1 "2022-04-25T09:05:59Z")

</div>

Issue:  
[https://streams.1radio.ca/just](https://streams.1radio.ca/just) is not being played, fmod complains about unsupported format, but according to VLC this is an MPEG Audio Layer 1/2.

Tested on:  
Fmod engine 2.02.06, 2.02.03 and 2.01.07, reproduces on all three.

> **Logs**
>
> [LOG] SystemI::init : Initialize version=20203 (120077), maxchannels=32, flags=0x00100004  
> [LOG] SystemI::setOutputInternal : Setting output to ‘FMOD WASAPI Output’  
> [LOG] OutputWASAPI::init : Mix Format (WAVEFORMATEX): wFormatTag=0xFFFE, nChannels=2, nSamplesPerSec=48000, nAvgBytesPerSec=384000, nBlockAlign=8, wBitsPerSample=32, cbSize=22.  
> [LOG] OutputWASAPI::init : Mix Format (WAVEFORMATEXTENSIBLE): wValidBitsPerSample=32, dwChannelMask=0x00000003, SubFormat=00000003-0000-0010-8000-00AA00389B71.  
> [LOG] OutputWASAPI::init : Output buffer size: 4096 samples, latency: 0.00ms, period: 10.00ms, DSP buffer: 1024 \* 4  
> [LOG] Thread::initThread : Init FMOD stream thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: Yes.  
> [LOG] Thread::initThread : Init FMOD mixer thread. Affinity: 0x4000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: No, Sleep Time: 0, Looping: Yes.  
> [LOG] SystemI::createSound : filename = [https://streams.1radio.ca/just](https://streams.1radio.ca/just) : mode 02010088  
> [LOG] SystemI::createSound : FMOD\_NONBLOCKING specified. Putting into queue to be opened asynchronously!  
> [LOG] Thread::initThread : Init FMOD nonblocking thread (0). Affinity: 0x4000000000000003, Priority: 0xFFFF7FFC, Stack Size: 114688, Semaphore: Yes, Sleep Time: 0, Looping: Yes.  
> [LOG] SystemI::createSound : setdata soundi = 0000022B8CBB27A8 : node = 0000022B8ADE7580  
> [LOG] SystemI::createSound : add node to async list : head = 0000022B8597DEF8. list count = 0  
> [LOG] AsyncThread::threadFunc : Starting Asynchronous operation on sound 0000022B8CBB27A8  
> [LOG] SystemI::createSoundInternal : Create name=‘[https://streams.1radio.ca/just](https://streams.1radio.ca/just)’, mode=0x02010088  
> [LOG] FMOD\_OS\_Net\_Connect : Attempting connection to ‘159.203.7.159:80’  
> [LOG] FMOD\_OS\_Net\_Connect : Attempting connection to ‘159.203.7.159:80’  
> [ERR] CodecOggVorbis::openInternal : failed to open as ogg  
> [ERR] CodecMIDI::openInternal : ‘HThd’ ID check failed [\<!DO]  
> [LOG] AsyncThread::threadFunc : Finished Asynchronous operation on sound 0000022B8CBB27A8  
> [WRN] OutputWASAPI::mixerThread : Starvation detected in WASAPI output buffer!  
> [WRN] OutputWASAPI::mixerThread : Starvation detected in WASAPI output buffer!  
> [WRN] OutputWASAPI::mixerThread : Starvation detected in WASAPI output buffer!

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 29, 2022, 1:52am UTC](https://qa.fmod.com/t/fmod-not-playing-an-mpeg-stream/18699/2 "2022-04-29T01:52:37Z")

</div>

This url is redirecting to a webpage instead of providing a valid audio stream, hence the “\<!DO” when trying to read the first chunk of data but getting “\<!DOCTYPE HTML\>”. The Ogg and MIDI errors are just a result of the fallback behaviour of trial and error attempts at finding the correct format.  
The reason for the redirect is because we do not currently support https. There is a task to implement https/SSL support for net streams in a future release.

---

<div class="post-metadata">

**Author:** ![akleshchev](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@akleshchev](https://qa.fmod.com/u/akleshchev)\
**Post date:** [April 29, 2022, 10:20am UTC](https://qa.fmod.com/t/fmod-not-playing-an-mpeg-stream/18699/3 "2022-04-29T10:20:10Z")

</div>

Thank you for the info.
