Chaosforge Forum

  • March 28, 2024, 06:25
  • Welcome, Guest
Please login or register.



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

Author Topic: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis  (Read 16228 times)

Cyber Killer

  • Elder
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 98
  • cyberpunk
    • View Profile
    • CK's site

There is a small problem with the HQ Linux version of DoomRL on some distros that do not support mp3 in SDL (notably Fedora and OpenSUSE). I've written a small script to take care of that problem...

Download DoomRL HQ, put this file in the same directory and run. This script doesn't delete anything, so in case you don't like it you can quite easily reverse what it does.

Requires bash, sed, find and ffmpeg with mp3 decoding and libvorbis encoding. Tested on OpenSUSE.

Note: Kornel told me he plans on switching to vorbis music in the next releases, but for now this is the easiest and fastest thing to do. The transcoding doesn't lower the music quality too much.

Logged

AStranger

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 233
  • Cyberdemon Blade
    • View Profile
Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
« Reply #1 on: February 28, 2012, 14:06 »

Heh,  beat you to the punch: http://forum.chaosforge.org/index.php/topic,5248.msg42539/topicseen.html#msg42539. Mine requires sox and not ffmpeg and auto downloads, but basically the same idea.
Logged
[24|23|20|18|13] v.0.9.9.3
[17|10|8|5|2] v.0.9.9.2
[15|11|10|6|3] v.0.9.9.1
[18|17|14|10|6] v.0.9.9

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
« Reply #2 on: February 28, 2012, 14:16 »

A version which would download Simon-v's native ogg versions instead of converting them from mp3's would be way cooler :>
Logged
at your service,
Kornel Kisielewicz

AStranger

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 233
  • Cyberdemon Blade
    • View Profile
Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
« Reply #3 on: February 28, 2012, 16:45 »

Okay, this one works with 0.9.9.6, it just creates an ogg directory and converts all the mp3s that comes with DoomRL. I'll probably start working on one that actually downloads the quality oggs instead of converting, but I need some coffee first.
Spoiler (click to show/hide)
« Last Edit: February 28, 2012, 19:53 by AStranger »
Logged
[24|23|20|18|13] v.0.9.9.3
[17|10|8|5|2] v.0.9.9.2
[15|11|10|6|3] v.0.9.9.1
[18|17|14|10|6] v.0.9.9

AStranger

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 233
  • Cyberdemon Blade
    • View Profile
Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
« Reply #4 on: February 28, 2012, 19:55 »

A version which would download Simon-v's native ogg versions instead of converting them from mp3's would be way cooler :>
Done and as an added bonus, I actually tested it first.
Spoiler (click to show/hide)
Logged
[24|23|20|18|13] v.0.9.9.3
[17|10|8|5|2] v.0.9.9.2
[15|11|10|6|3] v.0.9.9.1
[18|17|14|10|6] v.0.9.9

Cyber Killer

  • Elder
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 98
  • cyberpunk
    • View Profile
    • CK's site
Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
« Reply #5 on: February 28, 2012, 22:02 »

I didn't know that there was another script for this, anyway mine was intended as a hack to get going, not a final solution.

Ah well, I just hope that these scripts won't be needed at all for the next release ;-).
Logged

AStranger

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 233
  • Cyberdemon Blade
    • View Profile
Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
« Reply #6 on: February 29, 2012, 14:56 »

I didn't know that there was another script for this...
Well in your defense, it's not like I made it easy to find. I just tacked it on a bug report instead of telling people it was there.
Logged
[24|23|20|18|13] v.0.9.9.3
[17|10|8|5|2] v.0.9.9.2
[15|11|10|6|3] v.0.9.9.1
[18|17|14|10|6] v.0.9.9

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile

Silent bump.
Logged
I computed, therefore I was.
Pages: [1]