wikimedia-france / Lingua-Libre

LinguaLibre – Massive Open Audio Recording system
http://v1.lingualibre.fr
GNU General Public License v3.0
14 stars 5 forks source link

Switch export format from ogg to mp3 #77

Closed kaldari closed 6 years ago

kaldari commented 6 years ago

All the mp3 patents have expired and mp3 is now the preferred audio format for Commons since it's natively supported on far more devices (especially mobile devices).

hugolpz commented 6 years ago

So far and if I remember correctly :

  1. We do and continue to plan to export .flac files, as they have :
    • built-in support for metadata
    • have correct/solid browser support as of 2018
    • are supported by howlerjs : "mp3", "mpeg", "opus", "ogg", "oga", "wav", "aac", "caf", m4a", "mp4", "weba", "webm", "dolby", "flac".
  2. Commons has built-in conversion system to alternative formats
  3. We also provide conversion and web integration tutorials.

Wikimedia-france/Lingua-Libre > /wiki/Tutorials :

kaldari commented 6 years ago

@hugolpz: I'm glad to hear that Lingua Libre is using flac, although I'm a bit confused. The code looks like it exports to ogg, not flac: /src/AppBundle/Controller/ExportController.php.

I'm not familiar with the code, though, so maybe I'm looking in the wrong place.

Nudin commented 6 years ago

@kaldari I think this is a misunderstanding. You mean Ogg Vorbis when you say 'ogg', but ogg is the container format that can contain Ogg Vorbis or Flac audio-content. Flac does not has an own container format. (It was developed by the same peoples who did Vorbis). You can name ogg-files containing flac-audio ether .ogg or .flac – thats no difference except for the human to more easily distinguish. The file you linked does only the filenaming and uses .ogg – so that's ok. (But one could discuss if .flac would be better).

hugolpz commented 6 years ago

Disclaimer : I'am mainly community manager on this project.

@kaldari : LL-PHP: Oh, indeed. From memory the current code based on PHP and JS works with flac, with a duplicata in ogg if I remember well. Flac for loose-less quality and metadata. Ogg for convenience (filesize). LL-PHP is going to be phased out in May (likely).

LL-Wikibase+JS: The coming revamp (production TBA in May, at the Barcelona Hackaton ?), is JS and Wikibase-based and is expected to be plugged onto Commons via API and Oauth. There, according to recent meetings, we plan to work with flac, letting Commons background processes handle the conversion to mp3, ogg and few other format I believe.

@Nudin : Oh, thanks for the expertise :+1: