gmusicbrowser Forum

Main board => Questions => Topic started by: Edmond Sicard on August 29, 2015, 17:29:24

Title: mp2 files
Post by: Edmond Sicard on August 29, 2015, 17:29:24
Hello,

Do you plan to add support for MP2 files ?

Rhythmbox seems to handle them (on Ubuntu).
Title: Re: mp2 files
Post by: Quentin Sculo on October 11, 2015, 16:19:48
Sorry for not replying sooner.
I'm not sure how hard it would be. Can you send me a file by email so that I can check a few things. If it's easy to add I'll do it.
Title: Re: mp2 files
Post by: Quentin Sculo on October 12, 2015, 20:21:13
Thanks for the file.
As I hoped, it already works, the only thing missing is adding mp2 to the list of extensions.

So you can either rename them to mp3, or change these 2 lines in /usr/bin/gmusicbrowser :
INIT {%Alias_ext=(ogg=> 'oga', m4b=>'m4a');} #needs to be in a INIT block because used in a INIT block in gmusicbrowser_tags.pm
our @ScanExt= qw/mp3 ogg oga flac mpc ape wv m4a m4b/;

to
INIT {%Alias_ext=(mp2=>'mp3', ogg=> 'oga', m4b=>'m4a');} #needs to be in a INIT block because used in a INIT block in gmusicbrowser_tags.pm
our @ScanExt= qw/mp3 mp2 ogg oga flac mpc ape wv m4a m4b/;

or wait for the patch, it will be in the git version soon, I just need to change the file-type string for mp3/mp2 files.

Let me know if you see anything wrong with your mp2 files, in particular with their length/bitrate/sampling-rate.
Title: Re: mp2 files
Post by: Edmond Sicard on October 14, 2015, 12:09:34
Thanks.
I edited /usr/bin/gmusicbrowser and played a few .mp2 files.
Everything seems to be fine.