Help - Search - Members - Calendar
Full Version: FREE EAC Multi Encode Tool!
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
kwanbis
I just finished EMER 1.1, after hearing about all the comments about the 1.0 release. Here it is, with all the requested changes:

EMER is a multiple encoders launcher for Exact Audio Copy (EAC). It is basically a "fake encoder" that has the ability of calling multiple encodes, creating multiple encoded files from a single track extraction. This is is very usefull for example, if you need 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 to wav, and then run multplie encoders on them, EMER can do multiple encodes after each track EAC has riped! It is my humble contribution to the great Hydrogenaudio comunity, to whom it is dedicated, and also to the EAC, CDex, Foobar, Ogg Vorbis and LAME developers, and to Borland, for Delphi and Kylix, my loved programming environments.

It is very easy to set up:

1) Download EMER from Emer Home Page (ony 30 kilobytes!):
2) Uncompress it under EAC's folder.
3) Set EAC Compression Options (F11) as follows::
........ Program, including path, used for compression: emer.exe
........ Parameter passing scheme: User Defined Encoder
........ Additional command line options: '%o' '%s' '%d' "%a" "%g" "%t" "%n" "%y" "%m" "any comments?"

(NOTE that %o, %s and %d are sourrounded with (') and the rest with ("). Don't ask me why, but EAC does something weird with the command line, and this is the way it works)

This way, after EAC finishes ripping a track, it would run EMER, passing it, on the command line, in this order: Original_Filename (without temporary renaming) ... Source_Filename ... Destination_Filename ... CD artist ... CD title ... Track title ... Track number ... Year ... MP3 music genre ... Any comments you want to add.

EMER would then read the emer.ini file that should be located where emer.exe is, and for each ACTION LINE (an Action Line is any line that does not starts with a wink.gif, would replace all the LITERALS (specials strings codes that EMER recongnizes and that start and end with @) with the correct values, and would then execute the encode command.

HERE IS THE LIST OF LITERALS THAT EMER ACTUALLY RECOGNIZES AND THE VALUES THEY REPRESENT :

@original@ ==[would be replaced with]==> Original_Filename (without temporary renaming) (Parameter Number 1)
@source@ ==[would be replaced with]==> Source_Filename (Parameter Number 2)
@dest@ ==[would be replaced with]==> Destination_Filename (Parameter Number 3)
@artist@ ==[would be replaced with]==> CD artist (Parameter Number 4)
@cdname@ ==[would be replaced with]==> CD title (Parameter Number 5)
@songname@ ==[would be replaced with]==> Track title (Parameter Number 6)
@track@ ==[would be replaced with]==> Track number (Parameter Number 7)
@year@ ==[would be replaced with]==> Year (Parameter Number 8)
@genre@ ==[would be replaced with]==> MP3 music genre (Parameter Number 9)
@comments@ ==[would be replaced with]==> Any comments you want to add. (Parameter Number 10)

@11@ ==[would be replaced with command line paramenter number]==> 11
.. ==[would be replaced with command line paramenter number]==> ..
@xx@ ==[would be replaced with command line paramenter number]==> xx

@emerpath@\ ==[would be replaced with ]==> the full path to EMER, WITHOUT the the *ending* backslash (\) *
@fullname@ ==[would be replaced with ]==> the full temporal name WITH the new extension
@pathonly@ ==[would be replaced with ]==> the full temporal path, WITHOUT the *ending* backslash (\)
@nameonly@ ==[would be replaced with ]==> the new temporal name, WITHOUT any extension
@extonly@ ==[would be replaced with ]==> the new extension WITHOUT the dot

* It is not required to use @emerpath@, as a fully qualified path name can be used.


As i said, the "ACTION LINES" are the actual commands EMER would run (after replacing all the LITERALS as described above). An Action Line must contain:

Extension_Of_The_Encoded_File Text_Between_Finall_Encoded_Name_And_.Extension The_Command_To_Run_With_Parameters

** Extension_Of_The_Encoded_File: if, for example, the encoder produces ogg files, this should be ogg.

** Text_Between_Finall_Encoded_Name_And_.Extension: this is used to add some text to the final name of the enconded file name, and file extension, for example. It is used if you want to encode with the same encode, but with diferent qualities. For example, suppose you want to encode with LAME, in Extreme and Insane qualities, the file "mana_song1.wav". EAC and EMER would try to generate two "mana_song1.MP3" files, which is not posible, so, if we define the text_between_finall_encoded_name_and_.extension of the second Action Line to be _extreme, EMER would rename this file to "mana_song1_extreme.MP3"! VERY IMPORTANT: if you don't want to add text between the file name and the file extension, put NONE, but you must include anything.

The_Command_To_Run_With_Parameters: this is the real command that EMER would execute, after replacing all the LITERALS with the correspongin values.

** used internally by EMER.


A REAL USE EXAMPLE:

Suppose that our INI file contains this 2 Action Lines:
mp3 NONE "@emerpath@\lame.exe" --alt-preset standard -Z @source@ @dest@
ogg NONE @emerpath@\oggenc.exe --quality 5 @source@ --output=f"@dest@"

and that we are ripping the song: Emma Shapplin - Etterna - 12 - La Notte Etterna.wav


EMER would take the 1st Action Line:
mp3 NONE "@emerpath@\lame.exe" --alt-preset standard -Z @source@ @dest@
convert it to:
"c:\watever\lame.exe" --alt-preset standard -Z c:\xxx\abreviated_song_name.wav c:\xxx\abreviated_song_name.mp3
and then execute it.


Then, it would take the Action Line:
ogg NONE @emerpath@\oggenc.exe --quality 5 @source@ --output=f"@dest@"
convert it to:
"c:\watever\oggenc.exe" --quality 5 c:\xxx\abreviated_song_name.wav --output=f"c:\xxx\abreviated_song_name.ogg"


At this point, he would rename the file c:\xxx\abreviated_song_name.ogg to Emma Shapplin - Etterna - 12 - La Notte Etterna.OGG.


EMER would then terminate, and pass control back to EAC, who, in turn, would rename c:\xxx\abreviated_song_name.mp3 to Emma Shapplin - Etterna - 12 - La Notte Etterna.MP3.


INI File:

On the INI file, i have put settings for Ogg Vorbis, LAME MP3 and MPC for practicall and exemplary use.


TESTING:

EMER has been developed and tested under Windows 2000. I would really apretiate confirmation that it runs on XP, NT, 95, 98, ME.
kwanbis
By the way, Batch (BAT) files can only handle 9 command line parameters ... EMER 999 wink.gif
atici
Now if you can distribute each encoding task to different processors on SMP machines (which you can't do with a batch file) it would be awesome.
kwanbis
That would be for 2.0 smile.gif
kwanbis
Can the rest of the community give me the parameters for "ARCHIVE", "AUDIOPHILE", "STANDARD" & "AUDIO PLAYER" for AAC, Flac, etc? I would like to include them in the default INI. Also, this is the parameters that it includes now:

---------------------------------------------------------------------------------------------------------------------------
MP3 LAME "ARCHIVE" (320 kbps CBR):
---------------------------------------------------------------------------------------------------------------------------
mp3 NONE "@emerpath@\lame.exe" --alt-preset insane --ta "@artist@" --tl "@cdname@" --tt "@songname@" --tn "@track@" --ty "@year@" --tg "@genre@" --tc "EAC+LAME -alt-pre-insane" "@source@" "@dest@"

---------------------------------------------------------------------------------------------------------------------------
MP3 LAME "AUDIOPHILE" (220-270 kbps VBR -- usually averages around 256kbps):
---------------------------------------------------------------------------------------------------------------------------
mp3 NONE "@emerpath@\lame.exe" --alt-preset extreme -Z --ta "@artist@" --tl "@cdname@" --tt "@songname@" --tn "@track@" --ty "@year@" --tg "@genre@" --tc "EAC+LAME -alt-pre-extreme-Z" "@source@" "@dest@"

---------------------------------------------------------------------------------------------------------------------------
MP3 LAME "STANDARD" (180-220 kbps VBR -- usually averages around 192 kbps):
---------------------------------------------------------------------------------------------------------------------------
mp3 NONE "@emerpath@\lame.exe" --alt-preset standard -Z --ta "@artist@" --tl "@cdname@" --tt "@songname@" --tn "@track@" --ty "@year@" --tg "@genre@" --tc "EAC+LAME -alt-pre-standard-Z" "@source@" "@dest@"

---------------------------------------------------------------------------------------------------------------------------
MP3 LAME "AUDIO PLAYER" (Reduced Bitrates, -Y: usually limited to 16 kHz!):
---------------------------------------------------------------------------------------------------------------------------
mp3 NONE "@emerpath@\lame.exe" --alt-preset standard -Y --ta "@artist@" --tl "@cdname@" --tt "@songname@" --tn "@track@" --ty "@year@" --tg "@genre@" --tc "EAC+LAME -alt-pre-standard-Y" "@source@" "@dest@"


---------------------------------------------------------------------------------------------------------------------------
OGG VORBIS "ARCHIVE"
---------------------------------------------------------------------------------------------------------------------------
ogg NONE "@emerpath@\oggenc.exe" --quality 9 "@source@" --output="@dest@" --artist "@artist@" --album "@cdname@" --title "@songname@" --tracknum "@track@" --date "@year@" --genre "@genre@" -c "COMMENT=EAC+OggVorbis-Q9"

---------------------------------------------------------------------------------------------------------------------------
OGG VORBIS "AUDIOPHILE"
---------------------------------------------------------------------------------------------------------------------------
ogg NONE "@emerpath@\oggenc.exe" --quality 7 "@source@" --output="@dest@" --artist "@artist@" --album "@cdname@" --title "@songname@" --tracknum "@track@" --date "@year@" --genre "@genre@" -c "COMMENT=EAC+OggVorbis-Q7"

---------------------------------------------------------------------------------------------------------------------------
OGG VORBIS "STANDARD"
---------------------------------------------------------------------------------------------------------------------------
ogg NONE "@emerpath@\oggenc.exe" --quality 5 "@source@" --output="@dest@" --artist "@artist@" --album "@cdname@" --title "@songname@" --tracknum "@track@" --date "@year@" --genre "@genre@" -c "COMMENT=EAC+OggVorbis-Q5"

---------------------------------------------------------------------------------------------------------------------------
OGG VORBIS "AUDIO PLAYER" (have to be ready smile.gif
---------------------------------------------------------------------------------------------------------------------------
ogg NONE "@emerpath@\oggenc.exe" --quality 3 "@source@" --output="@dest@" --artist "@artist@" --album "@cdname@" --title "@songname@" --tracknum "@track@" --date "@year@" --genre "@genre@" -c "COMMENT=EAC+OggVorbis-Q3"


---------------------------------------------------------------------------------------------------------------------------
MPC "ARCHIVE"
---------------------------------------------------------------------------------------------------------------------------
mpc "@emerpath@\mppenc.exe" --quality 7 --xlevel --artist "@artist@" --album "@cdname@" --title "@songname@" --track "@track@" --year "@year@" --genre "@genre@" --comment "EAC & mppenc (1.14) --quality 7 --xlevel" "@source@" "@dest@"

---------------------------------------------------------------------------------------------------------------------------
MPC "AUDIOPHILE"
---------------------------------------------------------------------------------------------------------------------------
mpc "@emerpath@\mppenc.exe" --quality 6 --xlevel --artist "@artist@" --album "@cdname@" --title "@songname@" --track "@track@" --year "@year@" --genre "@genre@" --comment "EAC & mppenc (1.14) --quality 6 --xlevel" "@source@" "@dest@"

---------------------------------------------------------------------------------------------------------------------------
MPC "STANDARD"
---------------------------------------------------------------------------------------------------------------------------
mpc "@emerpath@\mppenc.exe" --quality 5 --xlevel --artist "@artist@" --album "@cdname@" --title "@songname@" --track "@track@" --year "@year@" --genre "@genre@"--comment "EAC & mppenc (1.14) --quality 5 --xlevel" "@source@" "@dest@"

---------------------------------------------------------------------------------------------------------------------------
MPC "AUDIO PLAYER"
---------------------------------------------------------------------------------------------------------------------------
mpc "@emerpath@\mppenc.exe" --quality 4 --xlevel --artist "@artist@" --album "@cdname@" --title "@songname@" --track "@track@" --year "@year@" --genre "@genre@"--comment "EAC & mppenc (1.14) --quality 4 --xlevel" "@source@" "@dest@"


Are they (generally) ok (i know encoding is such a subjective matter)?
AstralStorm
I'd say that MPC quality 5 is already audiophile wink.gif

My names:
MPC q5 - AUDIOPHILE
remove q6 - it's useless
MPC q7 - ARCHIVE (for future transcoding)

rename AUDIO PLAYER to PORTABLE

All other settings are correct.
CiTay
I think he chose some alright settings for MPC. I see more of a problem with Ogg Vorbis. Since it doesn't improve much anymore above -q6, it's absurd to use -q9. It should be -q3 -q4, -q5 and -q6.
kwanbis
So ...

MPC q7 - ARCHIVE
MPC q5 - AUDIOPHILE
MPC q3 - STANDARD (or 4?)
MPC q2 - PORTABLE PLAYER (or 3?)
atici
QUOTE(kwanbis @ May 8 2003 - 03:51 PM)
MPC q2 - PORTABLE PLAYER (or 3?)

laugh.gif Portable MPC player ! Where's it I'm ordering one.
AstralStorm
MPC q5 is already very high quality (even for audiophiles like us),
q7 only improves transcoding and very few samples (post an example, please)

OGGENC GT3 is actually improving these high quality modes somewhat,
but q9 is still absurd - I'd say q7 or q8, anything above is a waste of bits,
since it won't improve (much).

EDIT: MPC portables, just like Vorbis... the future...
kwanbis
QUOTE(CiTay @ May 8 2003 - 08:48 PM)
I think **he** chose some alright settings for MPC. I see more of a problem with Ogg Vorbis. Since it doesn't improve much anymore above -q6, it's absurd to use -q9. It should be -q3 -q4, -q5 and -q6.

Who he? AstralStorm or Me? So what is finally?

MPC:
ARCHIVE: q6
AUDIOPHILE: q5
STANDARD: q4
PORTABLE PLAYER: q3

Vorbis:
ARCHIVE: q7
AUDIOPHILE: q6
STANDARD: q5
PORTABLE PLAYER: q4

Yeah, Vorbis and MPC ... the **future** audio players smile.gif
CiTay
QUOTE(kwanbis @ May 8 2003 - 11:19 PM)
Who he? AstralStorm or Me? So what is finally?

You.


QUOTE
MPC:
ARCHIVE: q6
AUDIOPHILE: q5
STANDARD: q4
PORTABLE PLAYER: q3


Standard should be q5, definitely. See, it's all about what the focus of the codec is. MPC's focus is on transparency. q5 is the standard switch. "Portable player" should be q4. q6 should be audiophile, q7 should be "insane". I myself had a sample where q7 improved things, it was 2nd_vent_proper.

QUOTE
Vorbis:
ARCHIVE: q7
AUDIOPHILE: q6
STANDARD: q5
PORTABLE PLAYER: q4


q7 is outside the focus of Ogg Vorbis. It concentrates on mid- to low-bitrates, you should accommodate for that. It should go q3, 4, 5, 6. Those people who use something higher are using the wrong codec for their needs.
AstralStorm
The problem with 'audiophile' settings is that many people will use them
because they claim that they are much higher quality than standard,
which isn't the case, especially with MPC.

And I wouldn't call Ogg Vorbis 1.0 q6 audiophile... EDIT: due to pre-echo

Ogg Vorbis GT3b1 is somewhat improved in high quality range... (another Garf's quality work)
But still not good enough for archiving needs...
It will be better for that purporse in the (near) future.
(MP3 shouldn't have an archive mode too following this logic,
because there are many samples which break it, e.g. castanets)
kwanbis
So the (general) consensus is:

MPC:
ARCHIVE: q7
AUDIOPHILE: q6
STANDARD: q5
PORTABLE PLAYER: q4

Vorbis 1.0:
ARCHIVE: q6
AUDIOPHILE: q5
STANDARD: q4
PORTABLE PLAYER: q3

Vorbis GT3 (meybe Garf can confirm tongue.gif):
ARCHIVE: q9
AUDIOPHILE: q7
STANDARD: q5
PORTABLE PLAYER: q3

AAC:
ARCHIVE:
AUDIOPHILE:
STANDARD:
PORTABLE PLAYER:

MP4:
ARCHIVE:
AUDIOPHILE:
STANDARD:
PORTABLE PLAYER:

And what about Monkey, WavePak, etc?
AstralStorm
How do you want to compare quality with lossless codecs?

My proposition:

Flac 'FAST':
flac NONE "@emerpath@\flac.exe" --fast "@source@" -o "@dest@" -T artist="@artist@" -T album="@cdname@" -T title="@songname@" -T tracknum="@track@" -T date="@year@" -T genre="@genre@" -T comment="EAC+FLAC"

Flac 'RECOMMENDED':
flac NONE "@emerpath@\flac.exe" -5 "@source@" -o "@dest@" -T artist="@artist@" -T album="@cdname@" -T title="@songname@" -T tracknum="@track@" -T date="@year@" -T genre="@genre@" -T comment="EAC+FLAC"

Flac 'MAXIMUM COMPRESSION' (slow)
flac NONE "@emerpath@\flac.exe" --best "@source@" -o "@dest@" -T artist="@artist@" -T album="@cdname@" -T title="@songname@" -T tracknum="@track@" -T date="@year@" -T genre="@genre@" -T comment="EAC+FLAC"
kwanbis
you are right ... smile.gif ... for lossless we need to use other settings smile.gif
kritip
You will never get a true concenus on what is right and what is not, everyone will have different views and opinions, there are to many variables as well and amiguity in the names.

For example, say vorbis had portable support. There are Flash versions (128MB) and CD versions. I would be more than happy to stick -q1 on my Flash Portable but if i had a CD poratble, i'd rather go to -2 or -q3.

In the end, as the developer, i suggest you make your own choice, yes it's good to get opinions, but around here they VERY rarely agree!!

On another topic. It's a good little program your developing there! Just wondering if you have ideas on developing the configuration of the program, perhaps with a GUI for configuration, but still having the abilit yto be called from command line arguments for use in EAC. One file, easy configuration and great functions. I'm sure youve got a lot more to do on your list though.

Keep it up,

Cheers,

KRistian
AstralStorm
A small correction: for Vorbis and FLAC tags change 'tracknum' to 'tracknumber'.
kwanbis
I know that sound quality is a very sensitive and subjetive matter ... but as i only use MP3 and Ogg Vorbis, i wanted to know what most people think about the general encoding parameters ... if we can have a list of recommended lame settings, why can't we have some for the other encoders then?

for the moment, i'm pretty happy with EMER as it is ... i mean, i developed because i wanted to encode in MP3 and Vorbis at the same time!

i like the idea of adding SMP support to it, but i would have to look for some help there first smile.gif ... after that, a gui to choose which enc to use could be done, but is not prioritary for me now smile.gif
kwanbis
QUOTE(AstralStorm @ May 8 2003 - 10:26 PM)
A small correction: for Vorbis and FLAC tags change 'tracknum' to 'tracknumber'.

Vorbis uses --tracknum not --tracknumber, according to the help ... and this way it works .... sure about FLAC?
AstralStorm
That's the way Foobar2000 works...
The bug is either there, or in the lines - FLAC uses VorbisComments for tagging.

EDIT: Sorry for my previous post - the --tracknum option adds a tag called 'TRACKNUMBER',
while FLAC adds any arbitrary named tags. Thats why it needs -T tracknumber=...
atici
I realized that this thingy is also an easy way to replaygain after encode laugh.gif
dewey1973
What about the "Use file extension" and Add ID3 tag? I'm guessing the extension should be left blank and the ID3 checkbox should be unchecked. Is that correct?

Also, will you be posting action lines for aacenc_mpeg4.exe? What about la.exe?
treech
Right, i really like this blink.gif

QUOTE

Forbidden
Remote Host: [xxx.xxx.xxxx.xxx]

You do not have permission to access http://emer.8k.com/emer.zip
Data files must be stored on the same site they are linked from.

Thank you for using FreeServers
dewey1973
QUOTE(treech @ May 12 2003 - 03:18 PM)
Right, i really like this  blink.gif

QUOTE


Forbidden
Remote Host: [xxx.xxx.xxxx.xxx]

You do not have permission to access http://emer.8k.com/emer.zip
Data files must be stored on the same site they are linked from.

Thank you for using FreeServers

Did you try that link directly or did you click on the link in the first post then click on the download link? I had no problems downloading the files.
kwanbis
EMER 1.2 Released!

http://www.hydrogenaudio.org/forums/index....t=ST&f=2&t=9356

file extension should be the same as the first encoder on the list, that you would use.

ID3 tag must be unchecked.
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-2009 Invision Power Services, Inc.