Mediaplayer cuts out early, starts wrong (mp3)

Note: I have also tried this in 4.18 Preview 4 with same results.

When I use either “Open File” or a “File Media Source” to play an mp3 with the mediaplayer the audio will cut out half a second early at the end.

I’ve also noticed the first bit of audio sounds choppy or as if the first half second is repeated twice. This makes me think it’s adding something extra at the beginning and cutting something at the end keeping the same length but breaking it somehow.

This happens in game or in the preview of the mediaplayer or when just using UGameplayStatics::PlaySoundAtLocation in c++.

Thanks for looking into it. Is this issue public? Unreal Engine Issues and Bug Tracker (UE-51475)

Not yet, but it should be soon.

I was able to repro these. The crackles that tend to happen randomly at the beginning are audio buffer underruns. It seems to be less of a problem in Shipping builds. The audio cutting out too early is a discrepancy between UE4’s audio clock and Windows Media Foundation’s player clock. I don’t have a solution yet for either problem, but I will investigate. We are tracking this under UE-51475.

I’m having this issue too! Thanks for making a post.

Hey just checking back to see if this issue will be public. Would like to check the status thanks.

It was wrongly categorized as a feature request, which we don’t show publicly. I requested it to be public again. Sorry for the delay.

Hey sorry to bother. Does this issue still have…issues? :slight_smile:

I was able to resolve this issue by using

Project Settings → Plugins → WMF Media → Media → Allow Non-Standard Codecs

Project Settings → Plugins → WMF Media → Debug → Native Audio Out

and pressing “set as default”

(Note that I was using .wav, not .mp3 like the question-asker)