Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[MacOS] Monogame content builder v.3.8.4 not working for audio files (wav, ogg, mp3)#9012

tholopai started this conversation inContent
Discussion options

Hello,

I upgraded my Monogame project from 3.8.2.1105 to 3.8.4. After the update, build is not working anymore on my MacOS setup (Windows and Linux is working ok). Problem is related to Content.mgcb audio files: when I build, I got error:

Failed to open file wallhit. Ensure the file is a valid audio file and is not DRM protected.
/Users/Tapio/.nuget/packages/monogame.content.builder.task/3.8.4/build/MonoGame.Content.Builder.Task.targets(155,5): error MSB3073

ffmpeg -i for wallhit.wav:

Duration: 00:00:00.99, bitrate: 1417 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s

Content.mgcb for wallhit.wav:

#begin sounds/wallhit.wav
/importer:WavImporter
/processor:SoundEffectProcessor
/processorParam:Quality=Best
/build:sounds/wallhit.wav

I tried different wav's and none of them is working. I tried to convert .wav to .ogg and .mp3 and those are not working also. If I remove all audio files from my Content.mgcb, then the build completes without errors.

Information about my setup:

OS: macOS Monterey 12.6.7
.NET SDK: 8.0.414

You must be logged in to vote

Replies: 2 comments 4 replies

Comment options

If you have the time and knowledge to try it out, testing the preview3.8.5-develop.11 packages for MGCB would help figuring out what's on. This "DRM" error has been improved to display a better message.

You must be logged in to vote
4 replies
@tholopai
Comment options

Updated to 3.8.5-develop.11 and now I get:
There was an error processing 'wallhit'
ffprobe exited with non-zero exit code.

@ThomasFOG
Comment options

Thanks! That's just a bit more helpful. Could you share that wallhit.wav file or whatffprobe -i wallhit.wav -show_format -show_entries streams -v quiet -of flat says?

@tholopai
Comment options

Here's the wav. I cannot run ffprobe anymore on my system: I tried to upgrade ffmpeg with homebrew and it failed (because of my old OS)
Btw. I also tried to build Monogame Samples project and e.g NeonShooter project has same problem when trying to build .wav's.

wallhit.wav

@tholopai
Comment options

If I put 3.8.2.1105 version to Monogame NeonShooter sample then the problem is gone and build completes without errors.

Comment options

Hi,

I have the same problem with MonoGame v3.8.4.1 on an older, unsupported macOS (11.7.10). I can't update this old MacBook to a newer macOS.

In my case the crash was caused by ffprobe and ffmpeg being built for macOS 14 — I confirmed this from the crash logs in Console.

Iworked around it by downloading ffmpeg and ffprobe binaries fromhttps://ffbinaries.com/downloads and copying them to:
~/.nuget/packages/dotnet-mgcb/3.8.4.1/tools/net8.0/any/osx/

macOS flags them as downloaded from the Internet (quarantined). You can remove the quarantine with:
xattr -d com.apple.quarantine ffprobe
and the same for ffmpeg (or run xattr -dr com.apple.quarantine on the folder).

To actually run the game I also had to use the OpenAL dylib from the 3.8.2 NuGet package, because the 3.8.4.1 OpenAL build also requires macOS 14. It was a bit of a pain to set up, but it works for me.

For the MonoGame team: please consider building binaries targeting older macOS versions. I understand if you won't — macOS 14 appears to be the oldest supported version according tohttps://endoflife.date/macos.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Content
Labels
None yet
3 participants
@tholopai@morfah@ThomasFOG

[8]ページ先頭

©2009-2026 Movatter.jp