MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001256VCMISound, music, videospublic2013-04-22 18:052013-10-26 21:26
Reporterasgraf 
Assigned ToIvan 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionnot fixable 
PlatformOSLinuxOS VersionMageia 2
Product Version 
Target VersionFixed in Version 
Summary0001256: Mp3 files don't work under rpm versions of VCMI
DescriptionAll mp3 files need to be converted to ogg in order to work in Fedora-like linux distributions.

Currently every time i download/upgrade any town mod to his never version i have to manually convert his mp3 files to ogg to hear music of that town in the game.

Please add mp3 support for rpm version of VCMI or let VCMI do some automatic conversions from mp3 to ogg on startup.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003508)
Ivan (developer)
2013-04-22 18:43

IIRC problem is not vcmi but SDL_mixer library that was compiled without Mp3 support. Not much we can do here apart from providing alternative SDL_mixer.

I'll assign this to beegee - he handles all RPM stuff.
(0003513)
Ivan (developer)
2013-04-23 11:15

Does ffmpeg has support for mp3 decoding in Fedora builds? Try "ffplay someMusicFile.mp3"

If yes - we can do this:
1) use ffmpeg to convert everything into .ogg during install (as vcmibuilder option)
2) add support for ogg on Windows side (e.g. add ogg libraries to package)
3) ask modders to use ogg instead of mp3 (Most difficult part :) )

OR
See if it is possible to use ffmpeg instead of SDL_Mixer at least for decoding and use SDL_Mixer only to control playback.
(0003514)
asgraf (reporter)
2013-04-23 12:37

Yes "ffplay theme.mp3" plays music for me
(0003515)
beegee (developer)
2013-04-23 13:07

It would be good if modders use OGG instead of MP3. MP3 is not patent-free. I don't want to support MP3 if possible, so it's better not to try start using ffmpeg for decoding it. Many open-source GPL licensed projects use OGG for music/sound like Battle of Wesnoth or FreeCiv. Perhaps we can improve and ease the process of converting MP3 to OGG with vcmibuilder and ask modders to use OGG.
(0003518)
Ivan (developer)
2013-04-23 18:41
edited on: 2013-04-23 18:47

Implementing convert option into vcmibuilder is easy - no problems here.

But most modders use Windows. FFmpeg provides prebuilt .exe but this can't be called user-friendly. Any ideas?

(0003523)
beegee (developer)
2013-04-24 14:13

Do you mean a converter software for modders that use windows? Perhaps that one: http://www.freeaudiovideosoft.com/freeaudioconvertwizard/ [^]

I don't know how modders record and edit their music, but if they use Audacity they can import/export from/to OGG vorbis natively. For MP3 export you even have to download and install the Lame encoder separately. The LAME project only provides the source-code and no final product(no binaries) to not violate any patents. BTW, Audacity uses libmad to decode MP3(only available in in-official RPM repo) and libsndfile for encoding/decoding WAVE, AIFF, FLAC, OGG,...(available in official standard repo) To summarize on linux and even on windows it's easier to use OGG compared to MP3.
(0003524)
Ivan (developer)
2013-04-25 14:04

The problem is that mp3 on Windows is a default way to share music. Will see if I can do something with this.

I've implemented convertMP3 option for vcmibuilder. It will convert *all* mp3's in data directory using ffmpeg (including mp3's from mods, if any).
(0003525)
Tow (developer)
2013-04-25 16:57

While I agree that free formats like ogg should be supported and can even be encouraged, it would be quite troublesome to not support mp3 when it is present everywhere.

By the way… Why it is possible on Fedora to convert mp3 to ogg during VCMI install but it is not possible to play them from VCMI? Shouldn't converting mp3 be patent-endangered as well?
(0003527)
beegee (developer)
2013-04-25 17:04

Convert is possible with ffmpeg provided by secondary Fedora RPM repo. Playing MP3 files from VCMI is not possible due to missing MP3 functionality in SDL_mixer for Fedora. Converting is patent-endangered as well.
(0004096)
Ivan (developer)
2013-10-26 21:26

Closing, I did all I could from our side. Will keep an eye on mods in our repository to make sure that everyone uses .ogg but that's all I can do.

- Issue History
Date Modified Username Field Change
2013-04-22 18:05 asgraf New Issue
2013-04-22 18:43 Ivan Note Added: 0003508
2013-04-22 18:43 Ivan Assigned To => beegee
2013-04-22 18:43 Ivan Status new => assigned
2013-04-23 11:15 Ivan Note Added: 0003513
2013-04-23 12:37 asgraf Note Added: 0003514
2013-04-23 13:07 beegee Note Added: 0003515
2013-04-23 18:41 Ivan Note Added: 0003518
2013-04-23 18:47 Ivan Note Edited: 0003518 View Revisions
2013-04-24 14:13 beegee Note Added: 0003523
2013-04-25 14:04 Ivan Note Added: 0003524
2013-04-25 14:04 Ivan Assigned To beegee => Ivan
2013-04-25 16:57 Tow Note Added: 0003525
2013-04-25 17:04 beegee Note Added: 0003527
2013-10-26 21:26 Ivan Note Added: 0004096
2013-10-26 21:26 Ivan Status assigned => closed
2013-10-26 21:26 Ivan Resolution open => not fixable

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean