google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

beetsplug.replaygain.ReplayGainError: mp3gain exited with status 1 #469

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ubuntu 12.04 64 bits
Last git master version installed today

I try to import an album with flac files but:

Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.0rc1', 'console_scripts', 'beet')()
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/ui/__init__.py", line 811, in main
    _raw_main(args, configfh)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/ui/__init__.py", line 804, in _raw_main
    subcommand.func(lib, config, suboptions, subargs)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/ui/commands.py", line 806, in import_func
    timid, query, incremental, ignore, per_disc_numbering)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/ui/commands.py", line 700, in import_files
    per_disc_numbering = per_disc_numbering,
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/importer.py", line 926, in run_import
    pl.run_parallel(QUEUE_SIZE)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/util/pipeline.py", line 243, in run
    out = self.coro.send(msg)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beets/importer.py", line 735, in plugin_stage
    func(config, task)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beetsplug/replaygain.py", line 120, in imported
    results = self.compute_rgain(items, task.is_album)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beetsplug/replaygain.py", line 202, in compute_rgain
    output = call(cmd)
  File "/usr/local/lib/python2.7/dist-packages/beets-1.0rc1-py2.7.egg/beetsplug/replaygain.py", line 41, in call
    "{0} exited with status {1}".format(args[0], e.returncode)
beetsplug.replaygain.ReplayGainError: mp3gain exited with status 1

Why it tries to use mp3gain if they are flac files?

Original issue reported on code.google.com by si...@j1s.es on 11 Dec 2012 at 2:12

GoogleCodeExporter commented 9 years ago
Same problem if I install aacgain.

Original comment by si...@j1s.es on 11 Dec 2012 at 2:16

GoogleCodeExporter commented 9 years ago
Content of folder I try to import:

$ ls /dunehd1/Descargando/Musica\ 
pendiente/Keane-Hopes_And_Fears-Deluxe_Edition-2CD-FLAC-2009-CHS/
101-keane-somewhere_only_we_know.flac
102-keane-bend_and_break.flac
103-keane-we_might_as_well_be_strangers.flac
104-keane-everybodys_changing.flac
105-keane-your_eyes_open.flac
106-keane-she_has_no_time.flac
107-keane-cant_stop_now.flac
108-keane-sunshine.flac
109-keane-this_is_the_last_time.flac
110-keane-on_a_day_like_today.flac
111-keane-untitled_1.flac
112-keane-bedshaped.flac
113-keane-somewhere_only_we_know_(lamacq_live).flac
114-keane-bedshaped_(lamacq_live).flac
115-keane-bend_and_break_(lamacq_live).flac
116-keane-we_might_as_well_be_strangers_(lamacq_live).flac
117-keane-this_is_the_last_time_(jo_whileys_live_lounge).flac
118-keane-with_or_without_you_(jo_whileys_live_lounge).flac
119-keane-a_heart_to_hold_you_(jo_whileys_live_lounge).flac
201-keane-snowed_under_(b-side).flac
202-keane-we_might_as_well_be_strangers_(dj_shadow_remix).flac
203-keane-into_the_light_demo_(unreleased).flac
204-keane-call_me_what_you_like_demo_(zoomorphic_single_1).flac
205-keane-closer_now_(zoomorphic_single_1).flac
206-keane-rubbernecking_(zoomorphic_single_1).flac
207-keane-wolf_at_the_door_(zoomorphic_single_2).flac
208-keane-she_has_no_time_demo_(zoomorphic_single_2).flac
209-keane-call_me_what_you_like_(zoomorphic_single_2).flac
210-keane-everybodys_changing_(fierce_panda_single_1).flac
211-keane-the_way_you_want_it_(fierce_panda_single_1).flac
212-keane-this_is_the_last_time_demo_(fierce_panda_single_2).flac
213-keane-bedshaped_demo_(fierce_panda_single_2).flac
214-keane-allemande_(fierce_panda_single_2).flac
215-keane-somewhere_only_we_know_(live_e.p._released_5th_may_2005).flac
216-keane-we_might_as_well_be_strangers_(live_e.p._released_5th_may_2005).flac
217-keane-this_is_the_last_time_(live_e.p._released_5th_may_2005).flac
218-keane-everybodys_changing_(live_e.p._released_5th_may_2005).flac

Original comment by si...@j1s.es on 11 Dec 2012 at 2:17

GoogleCodeExporter commented 9 years ago
Thanks for reporting this!! I don't know why we didn't have a format check in 
there. That's embarrassing.

Should be all fixed as of 4116a8a97e4c. We won't even try to analyze files that 
aren't MP3 or AAC (depending which tool you have installed).

Original comment by adrian.sampson on 11 Dec 2012 at 9:12