Chaosforge Forum

DoomRL => Discussion => Topic started by: Cyber Killer on February 28, 2012, 10:16

Title: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: Cyber Killer on February 28, 2012, 10:16
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.

Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: AStranger on February 28, 2012, 14:06
Heh,  beat you to the punch: http://forum.chaosforge.org/index.php/topic,5248.msg42539/topicseen.html#msg42539 (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.
Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: Kornel Kisielewicz 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 :>
Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: AStranger 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)
Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: AStranger 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)
Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: Cyber Killer 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 ;-).
Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: AStranger 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.
Title: Re: [Linux] A script to convert DoomRL music from mp3 to ogg vorbis
Post by: thelaptop on March 21, 2013, 19:10
Silent bump.