Author Topic: mp2 files  (Read 2280 times)

Edmond Sicard

  • Newbie
  • *
  • Posts: 10
    • View Profile
mp2 files
« on: August 29, 2015, 22:29:24 »
Hello,

Do you plan to add support for MP2 files ?

Rhythmbox seems to handle them (on Ubuntu).

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: mp2 files
« Reply #1 on: October 11, 2015, 21: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.

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: mp2 files
« Reply #2 on: October 13, 2015, 01: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 :
Code: [Select]
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
Code: [Select]
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.

Edmond Sicard

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: mp2 files
« Reply #3 on: October 14, 2015, 17:09:34 »
Thanks.
I edited /usr/bin/gmusicbrowser and played a few .mp2 files.
Everything seems to be fine.