New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
midi playback is buggy (sounds bad and/or crashes mpv) #8724
Comments
Yep same on Linux mint Ulyssa. Midi is broken |
Firstly, your log doesn't show mpv "crashing". It exits with an error message after unsuccessfully trying to read the file. mpv does not implement MIDI support itself but lets ffmpeg handle it, ffmpeg supports either libopenmpt or libmodplug for decoding. If something is wrong with that it's not our bug.
This file just happens to be smaller than 16k and you're using libmodplug so this will be a duplicate of #8466. |
I'm just interested in this issue and not insisting on using mpv to play MIDI, but libmodplug seems to be the only choice because libopenmpt doesn't support MIDI (FAQ). As you probably know and I apologize if you've done so already, you need to set up timidity.cfg and GUS patch files for libmodplug to play MIDI. By default, you need This is what I've managed to use FreePats General MIDI sound set.
The directory structure should look like this:
Sounds still may not be so good, though. |
I forgot to mention. While I was reading other issue reports, I noticed this commit 4f18e79 which enables fluidsynth support (but reverted soon afterwards 16b44d9). |
Important Information
Reproduction steps
Expected behavior
It plays properly.
Actual behavior
It either doesn't sound right or it crashes/exits mpv.
Log file (for the crash)
output.txt
Sample files
This .mid file makes mpv crash/exit: Simpsons.mid
Other .mid files just don't sound right, like toto-africa.mid
Both of these play fine elsewhere, for example in foobar2000 with foo_midi.
The text was updated successfully, but these errors were encountered: