Chaosforge Forum

  • April 18, 2021, 14:35
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Some music doesn't play on Linux (fix)  (Read 56 times)

ParaSait

  • Baffen :P
  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1229
  • Happy Little Boozer
    • View Profile
    • MPSF
Some music doesn't play on Linux (fix)
« on: March 28, 2021, 15:34 »

This bug has already been mentioned here, years ago: https://forum.chaosforge.org/index.php/topic,7188.0.html

I had this issue on Linux too. I fixed it by running the following script, which strips all the metadata and cover art from the mp3s:

Code: [Select]
#!/bin/bash
mkdir -p mp3_fixed
for f in mp3/*.mp3; do
  ffmpeg -i $f -vn -codec:a copy -map_metadata -1 "mp3_fixed/$(basename $f)"
done

Then configure the musichq.lua file to point to the newly created directory with the fixed mp3s:

Code: [Select]
-- High quality remixes of the original Doom music are a courtesy of Sonic
-- Clang ( http://sonicclang.ringdev.com/ ) used with permission.

-- Doom the Roguelike theme, Unholy Cathedral, Final Showdown, Hells
-- Weapons, Something Wicked, Of Skull And Bone, The Brick Song, and
-- Too Hot Down Here tracks composed by Simon Volpert (thanks!)

Music = {
start     = "mp3_fixed/doom_the_roguelike.mp3",
interlude = "mp3_fixed/d1inter.mp3",
bunny     = "mp3_fixed/d1end.mp3",
intro     = "mp3_fixed/cde1m1.mp3",
hellgate  = "mp3_fixed/cde1m8.mp3",

level2    = "mp3_fixed/cde1m2.mp3",
level3    = "mp3_fixed/cde1m3.mp3",
level4    = "mp3_fixed/cde1m7.mp3",
level5    = "mp3_fixed/cde1m5.mp3",
level6    = "mp3_fixed/cde1m6.mp3",
level7    = "mp3_fixed/cde1m4.mp3",
level8    = "mp3_fixed/cde1m8.mp3",
level9    = "mp3_fixed/cde1m1.mp3",
level10   = "mp3_fixed/cde1m2.mp3",
level11   = "mp3_fixed/cde1m3.mp3",
level12   = "mp3_fixed/cde1m4.mp3",
level13   = "mp3_fixed/cde1m5.mp3",
level14   = "mp3_fixed/cde1m6.mp3",
level15   = "mp3_fixed/cde1m7.mp3",
level16   = "mp3_fixed/cde1m9.mp3",
level17   = "mp3_fixed/cde1m2.mp3",
level18   = "mp3_fixed/cde1m3.mp3",
level19   = "mp3_fixed/cde1m4.mp3",
level20   = "mp3_fixed/cde1m5.mp3",
level21   = "mp3_fixed/cde1m6.mp3",
level22   = "mp3_fixed/cde1m7.mp3",
level23   = "mp3_fixed/cde1m9.mp3",
level24   = "mp3_fixed/cde1m2.mp3",
level25   = "mp3_fixed/cde1m3.mp3",

hells_arena       = "mp3_fixed/cde1m9.mp3",
the_chained_court = "mp3_fixed/rage.mp3",
military_base     = "mp3_fixed/cde1m9.mp3",
halls_of_carnage  = "mp3_fixed/cde1m9.mp3",
hells_armory      = "mp3_fixed/hells_weapons.mp3",
spiders_lair      = "mp3_fixed/cde1m3.mp3",
city_of_skulls    = "mp3_fixed/of_skull_and_bone.mp3",
the_wall          = "mp3_fixed/the_brick_song.mp3",
unholy_cathedral  = "mp3_fixed/unholy_cathedral.mp3",
the_mortuary      = "mp3_fixed/something_wicked.mp3",
the_vaults        = "mp3_fixed/dark_secrets.mp3",
the_lava_pits     = "mp3_fixed/too_hot_down_here.mp3",

phobos_lab        = "mp3_fixed/cde1m5.mp3",
deimos_lab        = "mp3_fixed/hells_weapons.mp3",
containment_area  = "mp3_fixed/the_brick_song.mp3",
abyssal_plains    = "mp3_fixed/of_skull_and_bone.mp3",
limbo             = "mp3_fixed/something_wicked.mp3",
mt_erebus         = "mp3_fixed/too_hot_down_here.mp3",

tower_of_babel    = "mp3_fixed/cde1m8.mp3",
hell_fortress     = "mp3_fixed/final_showdown.mp3",
dis               = "mp3_fixed/cde1m8.mp3",
victory           = "mp3_fixed/d1readme.mp3",
}
Logged
[18|7|3|0|0|0] [MED:13/43] [SPE:36/67] [ASM:11/40]

Check out my epic youtube channel!
Currently playing The Bard's Tale and System Shock 2 (coop with GrAV1t)!
Pages: [1]