Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: New free program for EAC (Read 11996 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

New free program for EAC

I did not find any program that can do what I wanted so I have written one.

You can download from HERE

Please test it if you like, and put comments here about it.

New free program for EAC

Reply #1
Hi

It seems like when it rains it pours.
ponchorage came out with a similar program , you can see it in this thread,
http://www.hydrogenaudio.org/forums/index....topic=28497&hl=

However I find that program, flacattack, a bit better that it doesn't require to encode the whole file to mp3 and then to cut them up.
However thumbs up for the alternative.

New free program for EAC

Reply #2
Looks quite interesting, although I think I need to read the documentation a few more times to get a complete understanding.

One initial question: if you use a variable as a file or folder name are all illegal characters (i.e.: \ / : * ? " < > |) stripped out?

I spent quite a bit of time developing the batch files that I am currently using to back up my CD collection.  I think this application could have saved me a whole heap of time.

It seems like you are confusing the issue titling your post as "New free program for EAC, FLAC img & individual mp3s at one" - it's far more flexible than that. From my understanding this is a bridge between an application like MAREO, and writing your own batch files - although you do still need a basic understanding of batch file scripting to be able to get the best use out of it.

It does (or could) deal with a lot of the more confusing aspects of EAC batch file writing, such as creating valid file/folder names, and using the parameters passed to create other useful, and necessary, variables.

I think if you could push this closer toward MAREO than batch file writing you'd have a real winner.

Well done.

Edit: Any chance of the source being released?

[span style='font-size:8pt;line-height:100%']Edit 2005-01-13: Updated URL to blueyonder address[/span][/url]
I'm on a horse.

New free program for EAC

Reply #3
Quote
Hi

It seems like when it rains it pours.
ponchorage came out with a similar program , you can see it in this thread,
http://www.hydrogenaudio.org/forums/index....topic=28497&hl=

However I find that program, flacattack, a bit better that it doesn't require to encode the whole file to mp3 and then to cut them up.
However thumbs up for the alternative.
[a href="index.php?act=findpost&pid=247479"][{POST_SNAPBACK}][/a]



Yes,  I think flacattack and batrun was being made at the same time. I did not announced it earlier because I had to finish documentation, and made some testing, and were not at home at the weekend.
If flacattack had been released 2-3 days earlier I would not have written batrun.
No problem, I like progrmming and did not take much effort to develop batrun, it is quite a simple progam.

However I find that program, flacattack, a bit better that it doesn't require to encode the whole file to mp3 and then to cut them up.

You need not encode whole file to mp3 if you grab and compress individual tracks with EAC  (shift+F5)
Batrun actually does not do anything no encoding, no splitting. What batrun does only is to write a batch file and then run (or not run) it. Batrun uses other commandline programs those do effective work. Batrun only collects them into batch file.
I don't know if Flacattack can grab a wav image from a CD, and flac it and can do individual mp3s without splitting either the big wav or mp3.

I dont think to be a problem to split a mp3 image to tracks. It takes about 3 seconds. It has a big advantage on gapless playing, because mp3split splits mp3 image on frame boundaries, and there will not be padding "silence" added.

So image and individual tracks cannot be done by one rip without splitting or glueing something (wav or mp3/flac/etc.).

New free program for EAC

Reply #4
flacattack creates the FLAC CD image, and then uses the cuesheet info to split it and pipe the individual track data directly to LAME.
I'm on a horse.

New free program for EAC

Reply #5
Quote
Looks quite interesting, although I think I need to read the documentation a few more times to get a complete understanding.

One initial question: if you use a variable as a file or folder name are all illegal characters (i.e.: \ / : * ? " < > |) stripped out?

I spent quite a bit of time developing the batch files that I am currently using to back up my CD collection.  I think this application could have saved me a whole heap of time.

It seems like you are confusing the issue titling your post as "New free program for EAC, FLAC img & individual mp3s at one" - it's far more flexible than that. From my understanding this is a bridge between an application like MAREO, and writing your own batch files - although you do still need a basic understanding of batch file scripting to be able to get the best use out of it.

It does (or could) deal with a lot of the more confusing aspects of EAC batch file writing, such as creating valid file/folder names, and using the parameters passed to create other useful, and necessary, variables.

I think if you could push this closer toward MAREO than batch file writing you'd have a real winner.

Well done.

Edit: Any chance of the source being released?
[a href="index.php?act=findpost&pid=247527"][{POST_SNAPBACK}][/a]


Looks quite interesting, although I think I need to read the documentation a few more times to get a complete understanding.


I hope documentaion can be understood since I am Hungarian, my English is not very good. 

One initial question: if you use a variable as a file or folder name are all illegal characters (i.e.: \ / : * ? " < > |) stripped out?

I seem to not understand this question well.
Triing to explain.
You mean that if batrun.exe gets a parameter with a value of garbage?
I.e.: batrun.exe xyz.ini "filename" "foo" "John Doe" "+%=(sdgf!%/!="
Then batrun will not care about the value of parameters if it is garbage, then the correspondig '@variable@' will be replaced with the garbage.
Nothing is stripped out. Batrun is not intelligent, batrun's users must be intelligent. 

t seems like you are confusing the issue titling your post as "New free program for EAC, FLAC img & individual mp3s at one" - it's far more flexible than that.

Yes, I was thinking about that. Batrun might be used for other purposes. Not only as EAC "plugin"

I think if you could push this closer toward MAREO than batch file writing you'd have a real winner.


I do not want to push closer to MAREO or simplify the settings. Its flexibility may decrease then.
So some batch programming skill is needed to take advantage of using batrun. Batch programming skill can be used for other purposes.

New free program for EAC

Reply #6
Quote
flacattack creates the FLAC CD image, and then uses the cuesheet info to split it and pipe the individual track data directly to LAME.
[a href="index.php?act=findpost&pid=247568"][{POST_SNAPBACK}][/a]


Why is better cutting wav and encoding them to mp3tracks than encoding wav and cutting it to tracks?
The same work and time.

New free program for EAC

Reply #7
Quote
Edit: Any chance of the source being released?
[a href="index.php?act=findpost&pid=247527"][{POST_SNAPBACK}][/a]


I have put the sources (batrun.dpr, setcue.dpr, setcue2.dpr) into the rar so download it again. They can be compiled by Delphi.

New free program for EAC

Reply #8
Quote
I hope documentaion can be understood since I am Hungarian, my English is not very good. 
It beats the Hell out of my Hungarian.  My line manager just came back from a holiday in Hungary.  That Unicum is weird stuff!

Quote
One initial question: if you use a variable as a file or folder name are all illegal characters (i.e.: \ / : * ? " < > |) stripped out?

I seem to not understand this question well.
Triing to explain.
You mean that if batrun.exe gets a parameter with a value of garbage?
I.e.: batrun.exe xyz.ini "filename" "foo" "John Doe" "+%=(sdgf!%/!="
Then batrun will not care about the value of parameters if it is garbage, then the correspondig '@variable@' will be replaced with the garbage.
Nothing is stripped out. Batrun is not intelligent, batrun's users must be intelligent. 
Hmmm... I don't really agree.

If batrun doesn't deal with illegal characters then it makes it unusable in some instances.  Users can't work around it without some serious scripting - and in that case they may as well just use a 2KB batch file to do the job.

E.g.:  If the value of @artist@ is "AC/DC" and you try using a command like:

move "@dest@mp3" "e:\Music\MP3\@artist@\(@year@) @album@\(@0tnumb@) @tname@.mp3"

... as per your sample.ini you will end up with a folder called "ac" instead (with a subfolder called "dc"). More seriously, in other cases like ":" or "*", you will get an error and the batch file will exit.

Quote
Yes, I was thinking about that. Batrun might be used for other purposes. Not only as EAC "plugin"
I was more thinking that it can be used with any encoder or application with EAC, not just FLAC and LAME - but, yes, it could be used in other scenarios also.

Quote
I do not want to push closer to MAREO or simplify the settings. Its flexibility may decrease then.
So some batch programming skill is needed to take advantage of using batrun. Batch programming skill can be used for other purposes.
Fair enough.

I think there is a definite niche for an application somewhere between MAREO and batrun.  Maybe I'll get some time to write it myself one day.  In the meantime however I will continue to hassle other people to do it 

[span style='font-size:8pt;line-height:100%']Edit: grammar[/span]
I'm on a horse.

New free program for EAC

Reply #9
Quote
Hungary.  That Unicum is weird stuff!


Unicum is a Hungaricum.
I don't like Unicum

Quote

E.g.: If the value of @artist@ is "AC/DC" and you try using a command like:

move "@dest@mp3" "e:\Music\MP3\@artist@\(@year@) @album@\(@0tnumb@) @tname@.mp3"
Quote


You are right. I never listened to AC/DC so I did not think about it.
I'm working on it.

New free program for EAC

Reply #10
Quote
You are right. I never listened to AC/DC so I did not think about it.
I'm working on it.
Good news.    I assume this would involve adding child variables to some core variables like Artist, Album and Genre.

Since I have started using my batch files to back up my CD collection I have found a few processes long and complicated to achieve with DOS commands.  It took me a while to develop a function that will create a new string with illegal characters removed - something that is so simple to do in more advanced languages.

I also have problems when ECHOing some characters to the screen - e.g.: ampersand (&).

I look forward to the next version.
I'm on a horse.

New free program for EAC

Reply #11
Character replacing and deleting has been implemented on artist, track title, album title, and genre.

Read again sample.ini to get help on using.

You can download from HERE

New free program for EAC

Reply #12
Thanks Tangerine.

I'll check this out as soon as I can.  I appreciate the extra work.
I'm on a horse.

New free program for EAC

Reply #13
Quote
Character replacing and deleting has been implemented on artist, track title, album title, and genre.

Read again sample.ini to get help on using.

You can download from HERE
[a href="index.php?act=findpost&pid=247664"][{POST_SNAPBACK}][/a]


Seems to work well. Up to now I ripped 12 CD-s using batrun.

Your character replacing/deleting idea was good.
A lot of tracknames contain ',' or ':'

Changed replace line to this:

REPLACE=/\!@$%^*|?,: --**********

New free program for EAC

Reply #14
Quote
Seems to work well. Up to now I ripped 12 CD-s using batrun.

Your character replacing/deleting idea was good.
A lot of tracknames contain ',' or ':'

Changed replace line to this:

REPLACE=/\!@$%^*|?,: --**********
Yes, commas, ampersands and colons have been the most problematic for me.  I think I've had to work with 80% of the characters in your replace string so far, and I've done around 180 albums.

I'm hoping to try to port my batch files to batrun this weekend 
I'm on a horse.

New free program for EAC

Reply #15
Quote
Quote
Seems to work well. Up to now I ripped 12 CD-s using batrun.

Your character replacing/deleting idea was good.
A lot of tracknames contain ',' or ':'

Changed replace line to this:

REPLACE=/\!@$%^*|?,: --**********
Yes, commas, ampersands and colons have been the most problematic for me.  I think I've had to work with 80% of the characters in your replace string so far, and I've done around 180 albums.

I'm hoping to try to port my batch files to batrun this weekend 
[a href="index.php?act=findpost&pid=248093"][{POST_SNAPBACK}][/a]


Some of them can be made as directory/file

I have tried:

these works:
md "@"
md "$"
md "&"
md "^"
md "%"
md ","
md "!"

these don't:
md """
md "*"
md "?"
md ":"
md "/"
md "\"
md "|"
md ">"
md "<"

So there is no need to replace/delete if works, but some of them must be quoted betwen " "

New free program for EAC

Reply #16
OK, I'm going to push my luck a little here - although I don't think it would be too much work for you.

When you parse the CODE section of the INI file could you pick out any ECHO statements and escape any illegal characters?
Those I know of are: \ & | > < ^  (taken from http://www.ss64.com/ntsyntax/esc.html).

E.g.: if I have a line in my INI file:

ECHO Album: @album@

...and the album name is "Reading, Writing & Arithmetic", batrun will create the batch file with the line:

ECHO Album: Reading, Writing & Arithmetic

However, as you will know, ampersand (&) is a reserved character, used to run two separate commands on one line, so this will result in:

Album: Reading, Writing
'Arithmetic' is not recognized as an internal or external command, operable program or batch file.


If batrun could pick out any line beginning "ECHO", and escape all text on that line, this would result in batrun creating the batch file with the line:

ECHO Album: Reading, Writing ^& Arithmetic

... which will work correctly.

I don't know if you bother ECHOing within your batch files, but I find it quite useful.

Just a suggestion, but I would find it very useful.

NB: I can't just use @album*@ instead - as folders can use ampersand, so I'd rather keep the character if possible.
I'm on a horse.

New free program for EAC

Reply #17
Quote
OK, I'm going to push my luck a little here - although I don't think it would be too much work for you.

When you parse the CODE section of the INI file could you pick out any ECHO statements and escape any illegal characters?
Those I know of are: \ & | > < ^  (taken from http://www.ss64.com/ntsyntax/esc.html).

E.g.: if I have a line in my INI file:

ECHO Album: @album@

...and the album name is "Reading, Writing & Arithmetic", batrun will create the batch file with the line:

ECHO Album: Reading, Writing & Arithmetic

However, as you will know, ampersand (&) is a reserved character, used to run two separate commands on one line, so this will result in:

Album: Reading, Writing
'Arithmetic' is not recognized as an internal or external command, operable program or batch file.


If batrun could pick out any line beginning "ECHO", and escape all text on that line, this would result in batrun creating the batch file with the line:

ECHO Album: Reading, Writing ^& Arithmetic

... which will work correctly.

I don't know if you bother ECHOing within your batch files, but I find it quite useful.

Just a suggestion, but I would find it very useful.

NB: I can't just use @album*@ instead - as folders can use ampersand, so I'd rather keep the character if possible.
[a href="index.php?act=findpost&pid=248151"][{POST_SNAPBACK}][/a]


If you use ECHO like this:

ECHO Album: "@album@"

would be:

ECHO Album: "Reading, Writing & Arithmetic"

And the result would be:

Album: "Reading, Writing & Arithmetic"

Is not this OK?

Anyway I will do what you are saying.

New free program for EAC

Reply #18
Quote
If you use ECHO like this:

ECHO Album: "@album@"

would be:

ECHO Album: "Reading, Writing & Arithmetic"

And the result would be:

Album: "Reading, Writing & Arithmetic"

Is not this OK?
Hmm... Yes, it is.  It think it would be better for me to just do that, rather than you implement my suggestion.  I thought of one downside to just escaping all ECHO statements: If you want to use:

ECHO This text > mytextfile.txt

... it wouldn't let you.

Sorry to be a pain 

Update:  I'm confused now.  I've checked my batch files and they always surround any text that may contain ampersands in quotes - yet I'm sure I've had problems with this, whcih is why I asked for the functionality.  I will need to do some tests with my batch files to see where this problem lies.  I'll let you know if I find it.  It may have been a problem with an earlier version...

[span style='font-size:8pt;line-height:100%']Edit 2005-01-13: Updated URL to blueyonder address[/span][/url]
I'm on a horse.

New free program for EAC

Reply #19
Quote
Quote
If you use ECHO like this:

ECHO Album: "@album@"

would be:

ECHO Album: "Reading, Writing & Arithmetic"

And the result would be:

Album: "Reading, Writing & Arithmetic"

Is not this OK?
Hmm... Yes, it is.  It think it would be better for me to just do that, rather than you implement my suggestion.  I thought of one downside to just escaping all ECHO statements: If you want to use:

ECHO This text > mytextfile.txt

... it wouldn't let you.

Sorry to be a pain 

Update:  I'm confused now.  I've checked my batch files and they always surround any text that may contain ampersands in quotes - yet I'm sure I've had problems with this, whcih is why I asked for the functionality.  I will need to do some tests with my batch files to see where this problem lies.  I'll let you know if I find it.  It may have been a problem with an earlier version...
[a href="index.php?act=findpost&pid=248227"][{POST_SNAPBACK}][/a]



Batrun 1.2 nearly done:

Working like this:

I made an escape char (actually it is two chars) @@
It will escape from escape.

You write in the ini:
ECHO This text > mytextfile.txt

The bat will be:

ECHO This text ^> mytextfile.txt

if in ini:

ECHO This text @@> mytextfile.txt

then in bat would be:

ECHO This text > mytextfile.txt

if in ini:

ECHO This text @@>@@> mytextfile.txt

then in bat would be:

ECHO This text >> mytextfile.txt

and so on

This is the same with these other special chars:  \ & | > < ^
(but only in lines begin with echo)

New free program for EAC

Reply #20
Batrun v1.2 is ready. Look at the first post for download.
Read sample.ini and changelog.txt for explanations.

New free program for EAC

Reply #21
Quote
I made an escape char (actually it is two chars) @@
It will escape from escape.
Tangerine, I like the way you do things.  Every time I have asked for new functionality you have surpassed my requirements.

I just hope other users writing batch files for EAC will eventually come to understand what a useful tool this is.

I worked out why I had problems with ampersands in my batch files.  It was actually from my functions to make the file/folder names, and to format the CSV fields.  Both stripped the quotes from the text before they started, and as soon as that happened the ampersands caused problems.  I have actually reworked them to get around this now, but to save any further problems I believe I will just port them to use batrun anyway.

Sorry for highjacking this thread - I hope you get some interest/appreciation from other users.

Nice work.  Much appreciated.

[span style='font-size:8pt;line-height:100%']Edit 2005-01-13: Updated URL to blueyonder address[/span][/url]
I'm on a horse.

New free program for EAC

Reply #22
Quote
Quote
I made an escape char (actually it is two chars) @@
It will escape from escape.
Tangerine, I like the way you do things.  Every time I have asked for new functionality you have surpassed my requirements.

I just hope other users writing batch files for EAC will eventually come to understand what a useful tool this is.

I worked out why I had problems with ampersands in my batch files.  It was actually from my functions to make the file/folder names, and to format the CSV fields.  Both stripped the quotes from the text before they started, and as soon as that happened the ampersands caused problems.  I have actually reworked them to get around this now, but to save any further problems I believe I will just port them to use batrun anyway.

Sorry for highjacking this thread - I hope you get some interest/appreciation from other users.

Nice work.  Much appreciated.
[a href="index.php?act=findpost&pid=248316"][{POST_SNAPBACK}][/a]


Not much interest up to now, as I see you are the one who is really interested.
More than 1000 views makes me think that there are some other people  interested just watch this topic.

No problem, I made batrun for myself. If someone else uses it that make me happy. 
If somebody wants me to add some features, I will do that if I think that to be useful and easy to implement. The 'replacing/stripping' and the 'escaping' was easy and worth to implement. If you or anybody else ask for other feature don't be afraid to write in this topic. I will do my best. 

New free program for EAC

Reply #23
V 1.3 available, new feature added: setting priority (normal, belownormal, low)

New free program for EAC

Reply #24
Thanks Tangerine.  I like the bat logo

I've almost finished porting my batch files to batrun now.

I've had to make things a little complicated as I use two scripts, eac-enc.bat and eac-post.bat. eac-enc opens eac-post before it closes, allowing eac-post to work with the properly named file (EAC renames the file from its temporary name when eac-enc closes).

The way I have gotten around this with batrun is to get EAC to call another batch file.  This batch file runs batrun to create eac-enc.bat (but not run it), and then again to create eac-post.bat (but not run it).  It then calls the newly created eac-enc.bat, to get the actual processing started.

The main benefit of this for me is the character replacement, but also it is easier to maintain a script that uses:

@dpath@\@ofname@.@dfext@

... instead of:

%~dp3%~n1%~x3

NB: minor suggestion, but you should get batrun to write:

@REM Created using BATRUN, Version nn.nn

... at the top of each batch file - so you know what version was used.

I was having a bit of trouble getting the ECHO escaping to work last night - @@>@@> wasn't working so I went back to >> and it did.  I was sure I was using v1.2, but I guess I can't of been.  I've tested the same using v1.3 and @@>@@> works fine.  If batrun told me what version it was (by writing the REM statement) I could have been sure it was, or wasn't, v1.2.  That can really wait until you really need to release another update though.

If I could compile Delphi I'd do this myself, but I can't find a free compiler. 

[span style='font-size:8pt;line-height:100%']Edit 2005-01-13: Updated URL to blueyonder address[/span][/url]
I'm on a horse.