Help - Search - Members - Calendar
Full Version: MAREO 1.5.1 Now Open Source! (GPL)
Hydrogenaudio Forums > Hydrogenaudio Forum > Validated News
kwanbis
MAREO 1.5.1 has been on the mareo home page for many days. I decided to release the (very simple and probably ineficient) source code to the masses under the GPL license ... you can now see how badly i have coded it smile.gif

MAREO is an Open Source (GPL) application that acts as a (M.)ultiple (A.)pplications (R.)unner for (E.)AC and (O.)thers. It was originally developed for use with EAC, but has successfully been tested and adapted to work with CDex. It would probably also work with any other CD ripper.

It works as a (fake) encoder that in turn runs the real encoders for each track ripped by the ripper, passing it the required parameters such as source and destination file, author, CD, track, etc. It can also be used to call other post-compress and pre-compress programs, like ReplayGain. This is is very useful for example, if you like to encode all (or some) of your CDs to Ogg Vorbis for archival, and also to MP3 for use with your MP3 player (when would iRiver support Ogg Vorbis?).

While you can rip an entire CD with EAC (and CDex) to wav, and then run multiple encoders on them, MAREO can do the multiple encodes after each track EAC (and CDex) has been ripped!

It is my (very) humble contribution to the great Hydrogenaudio community, to whom it is dedicated, and also to the EAC (best Free CD Ripper), CDex (best Open Source CD Ripper), foobar2000 (best Free Audio Player), Ogg Vorbis (best Open Source MP3 alternative) and LAME (best MP3 encoder) developers, and to Borland, for Delphi and Kylix, my beloved (and best Windows and Linux) programming environments.

MAREO Home Page
Destroid
IMO, this program is very useful. smile.gif Works fine on Win98

I like the GPL thing too, except I don't know what language it is written at a glance, so might need a request. If I use MAREO in EAC to run MAC.EXE first followed by TAG.EXE the second step kills the file because the input file is the same as the output file.

mareo.ini
CODE

ape NONE NONE "@ownpath@\mac.exe" "@source@" "@dest@" @11@

ape none none "@ownpath@\tag.exe" --artist "@artist@" --album "@cdname@" --title "@songname@" --track "@track@" --year "@year@" --genre "@genre@" "@dest@"


EAC external compression additional command line opts:
CODE

EAC %o %s %d "%a" "%g" "%t" "%n" "%y" "%m" %h-c2000%h %l-c1000%l



If I could alter the code I'd make it recognize extension "---" as type where the following command would run on a file without renaming/deleting it or making a new file with a bogus extension. Any ideas would help!

FYI - this is because I am looking to add APE v1 tags. WAPET only adds APE v2 and I don't use any programs that recognize APE v2 (and don't care to start using any programs that do).
LCtheDJ
Have you looked at your file "mareo.log" to see what is happening at each stage?

It looks to me that something might not work with your EAC parameter line. If I'm interpreting correctly, it should be like this:

EAC %o %s %d "%a" "%g" "%t" "%n" "%y" "%m" -c2000 -c1000

This would cause @11@ to be replaced with -c2000

As it is, I think @11@ would be replaced with %h-c2000%h which would not be recognized by MAC.exe and would fail to make an APE file. Tag would then try to tag the non-existant ape file.

I have found that forcing the output file to a different folder from the source file with stop MAREO from renaming the output file.

You don't have to put all the parameters in EAC; you can put them in MAREO.ini. See if this will work in your MAREO.ini:

ape NONE NONE "@ownpath@\mac.exe" "@pathonly@\@nameonly@.wav" "C:\DIFFERENT PATH\@nameonly@.ape" -c2000
;
ape NONE NONE "@ownpath@\tag.exe" --artist "@artist@" --album "@cdname@" --title "@songname@" --track "@track@" --year "@year@" --genre "@genre@" "C:\DIFFERENT PATH\@nameonly@.ape"
Destroid
No, the command sequence works. EAC only passes either -c2000 or -c1000 depending on whether I have high/low quality button selected, it's my own custom thingee that I invented wink.gif

edit:
Ok, I made a small batch file which got it to work (APE output and tagged too). EAC won't run BAT files directly but MAREO can.

Turns out MAREO was zapping the file saying it was renaming it. So it seems when MAREO processes another action with the same file extension from a previous action it tries to rename the output file (to itself), fails, then zaps the file :/
coneill
Ran into what looks to be a bug. My Flac ini line looks like this:

QUOTE
; -------------------------------------------------------------------------------------------------
; Flac 'MAXIMUM COMPRESSION' (slow)M
; -------------------------------------------------------------------------------------------------
flac NONE z:\mp3\clayton\flac\@artist@\@cdname@\ "..\flac\bin\flac.exe" --best "@source@" -o "@dest@" -T artist="@artist@" -T album="@cdname@" -T title="@songname@" -T tracknumber="@track@" -T date="@year@" -T genre="@genre@" -T comment="EAC+FLAC"


Problem crops up with The Cranberries "Everyone Else Is Doing It, So Why Can't We?". Here is an excerpt from the log:

QUOTE
*** Track 2 Parameters ***

   @extonly@ = flac
  @pathonly@ = Z:\mp3\clayton\mp3\The Cranberries\Everybody Else Is Doing It, So Why Can't We
  @nameonly@ = Ttmp42660
  @fullname@ = Z:\mp3\clayton\mp3\The Cranberries\Everybody Else Is Doing It, So Why Can't We\Ttmp42660.flac

Final Name Path Override Found: z:\mp3\clayton\flac\The Cranberries\Everybody Else Is Doing It, So Why Can't We?

Path Override Does Not Exists: z:\mp3\clayton\flac\The Cranberries\Everybody Else Is Doing It, So Why Can't We?

Trying To Create Directory: z:\mp3\clayton\flac\The Cranberries\Everybody Else Is Doing It, So Why Can't We?

ERROR Creating Directory: z:\mp3\clayton\flac\The Cranberries\Everybody Else Is Doing It, So Why Can't We?

Assigning Final Path to: C:\Program Files\eac



As you can see, it's not stripping the ? out of the directory name, so it can't create the directory.
kwanbis
thanks for the compliments ... MAREO is developed using Borland Delphi the greatest RAD of them all wink.gif ... you can now go and do the changes ... i would try to see tomorrow if i can modify mareo to remove "?" from the directory ... with the other names, does it works?
LCtheDJ
@ kwanbis:

While you're at it, could you make sure MAREO removes or substitutes all the illegal characters for Windows filenames? \ / : * ? " < > |

Thanks.
coneill
QUOTE
with the other names, does it works?


Seem to work perfectly except for this one CD, out of the dozen or so I'm tried, while setting things up. The other poster's point is a good one though, you should make it strip all illegal characters.

And thanks for a nice piece of software. It took me a while to figure out how to get it set up the way I wanted, but seems to work well now =)
coneill
Found what looks to be some combination of an EAC bug/misconfiguration, and a MAREO bug. Here is part of the log from ripping a compilation CD.

QUOTE

*** Received Command Line ***

"C:\Program Files\eac\mareo.exe" EAC "Various-AMP-01-Chemical Brothers - Block Rockin Beats.wav" "Z:\mp3\clayton\mp3\Various\AMP\Vtmp0(842.wav" "Z:\mp3\clayton\mp3\Various\AMP\Vtmp0(842.mp3" "Chemical Brothers - Block Rockin Beats" "AMP" "" "1" "" "Rock" "Z:\mp3\clayton\mp3\Various\AMP\Vtmp0(842.mp3"

*** Parsed Parameters ***

  @program@ (%1) = EAC
@finalname@ (%2) = Various-AMP-01-Chemical Brothers - Block Rockin Beats.wav
   @source@ (%3) = Z:\mp3\clayton\mp3\Various\AMP\Vtmp0(842.wav
     @dest@ (%4) = Z:\mp3\clayton\mp3\Various\AMP\Vtmp0(842.mp3
   @artist@ (%5) = Chemical Brothers - Block Rockin Beats
   @cdname@ (%6) = AMP
@songname@ (%7) = 1
    @track@ (%8) = Rock
     @year@ (%9) = Z:\mp3\clayton\mp3\Various\AMP\Vtmp0(842.mp3
    @genre@(%10) =


As you can see, EAC doesn't seem to be passing "Various" as the Artist name, instead passing things in a really odd order instead. But, also, MAREO isn't picking up the null string for @songname@, so it's getting everything off by one past that.

How do other people deal with this for compilation CDs? Is there some sort of thing you can code into MAREO as a work around?

Lastly, I saw that MAREO is supposed to be GPL now, but can't figure where I would actually download it from.
coneill
Ok, just a bit more information, it looks like the off by one thing is a EAC issue. Something to do with freedb entries not having / in the right place so that EAC can split out artist/track name information. However, there seems to be no way for MAREO to detect that a cd is "Various Artists". Does anyone know of a way to get EAC to export that information, or maybe MAREO can guess somehow?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.