IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> The return of....CDA2SFX!, CASBAH is born, new cmd for self burning exe
Captain Dan
post Feb 15 2008, 10:17 PM
Post #1


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



Once upon a time, in a forum not so far away, there was a discussion about creating self extracting and self buring ISO applications....

http://www.911cd.net/forums//index.php?sho...c=18845&hl=

Imgburn was used as the burner in that case.

The requests went in, and the concept expanded into a similar idea for audio CDs, which cannot be stored as ISO files......

http://www.911cd.net/forums//index.php?sho...st&p=126109

But alas, imgburn could not be used because it would not handle audio data (.cue / .wav / .bin)

So cygwin and cdrecord were used and beatifully fashioned by jaclaz to work in this respect.

But NOW! in 2008, a little over 1 year later....

The new imgburn handles AUDIO CD .cue files!

http://www.imgburn.com/index.php?act=changelog

There are some exotic choices there too....

QUOTE
*using a CUE file - this includes Audio CD's from anything DirectShow/ACM can handle - AAC/APE/FLAC/MP3/MPC/OGG/PCM/WAV/WMA etc


Naturally, I wondered if the code can be dug up and re-jigged so that we can kiss goodbye to cygwin / cdrecord and the ugly DOS box that was used to input user choices.....

I'm off to play some more with imgburn now....yay...

Dan
Go to the top of the page
 
+Quote Post
cdob
post Feb 16 2008, 08:11 AM
Post #2


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



Does ImgBurn support your .cue audio files?

Try commandline:
CODE
ImgBurn.exe X:\temp\sound.cue

or
CODE
ImgBurn.exe /mode write /SRC X:\temp\sound.cue


Remember there are different DirectShow/ACM files at different machnines.
A wav file should be possible always.

As for v2.4 ID3 tags a updated ImgBurn is required
http://forum.imgburn.com/index.php?showtopic=6027
http://forum.imgburn.com/index.php?showtop...amp;#entry62969


Which ugly DOS box? There is a fine DOS box at current solution. whistling.gif
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 18 2008, 05:34 AM
Post #3


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



QUOTE (cdob @ Feb 17 2008, 12:11 AM) *
Does ImgBurn support your .cue audio files?


Yes it does. It works great (from both the GUI and the command line) I'm using a .cue and .wav as created by EAC.

This is the command line in my test:

QUOTE
imgburn.exe /PORTABLE /MODE WRITE /SRC C:\Documents and Settings\Administrator\Desktop\test\"Missy Higgins - Live at the wireless.cue" /SPEED MAX /EJECT YES /IGNORELOCKVOLUME /START /WAITFORMEDIA /CLOSESUCCESS /NOSAVESETTINGS


The full path is needed after /SRC otherwise ImgBurn can't find the corresponding .wav file.

Anway, I've just spent half a day mucking around with Burn_CDA.cmd (jaclaz' code) to make it use Imgburn, but I'm not very good at coding so it's not working!

QUOTE
Which ugly DOS box?


Oh, you know.....the ugly one...... LOL (!)

smile.gif

This post has been edited by Captain Dan: Feb 18 2008, 06:42 AM
Go to the top of the page
 
+Quote Post
jaclaz
post Feb 18 2008, 06:51 AM
Post #4


Platinum Member
*****

Group: Moderator
Posts: 4,949
Joined: 25-July 04
From: Italy
Member No.: 6,779



QUOTE (Captain Dan @ Feb 18 2008, 11:34 AM) *
This is the command line in my test:

QUOTE
imgburn.exe /PORTABLE /MODE WRITE /SRC C:\Documents and Settings\Administrator\Desktop\test\"Missy Higgins - Live at the wireless.cue" /SPEED MAX /EJECT YES /IGNORELOCKVOLUME /START /WAITFORMEDIA /CLOSESUCCESS /NOSAVESETTINGS


The full path is needed after /SRC otherwise ImgBurn can't find the corresponding .wav file.



Ok, now that I know the "right" command line, I'll see what I can do.

About the "ugly" DOS BOX, it's all a matter of what one wants to do.

Once the DOS batch works, I guess that anyone familiar with AutoIt could "convert" it unsure.gif, the point is to find a volunteer....

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 18 2008, 03:01 PM
Post #5


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



QUOTE
Ok, now that I know the "right" command line, I'll see what I can do.


Terrific smile.gif

I guess you'll have to see if the command can integrate a variable like %cuefile% instead of the actual .cue filename.

Hope it can.

QUOTE
About the "ugly" DOS BOX, it's all a matter of what one wants to do.


Indeed.

Don't get me wrong, I appreciate DOS and its box...I just always consider how it looks to an end user who often has no idea what DOS (or sometimes even a box) might be.

God bless end users. wink.gif


Dan
Go to the top of the page
 
+Quote Post
hilander999
post Feb 18 2008, 06:58 PM
Post #6


Platinum Member
*****

Group: Members
Posts: 2,277
Joined: 20-September 03
From: Earth: It's the little blue planet circling the Sun in the Milky Way Galaxy.
Member No.: 1,729



An interesting solution to the dos box, pointed out by Siegfried a while back, is WIZAPP (The Wizard's Apprentice).
http://wizapp.sourceforge.net/

Seems to work quite well and is a very easy way to add a gui to any command script.
Autoit would certainly be better, but also requires someone who knows how autoit works.


--------------------
Free stuff:

Official BTS Driverpack Support for bartpe

The Ultimate Boot CD for Windows: Forum

--------------------------------------------------------------------------------------------------------------
Please remember to use the SEARCH engine before posting new topics.
Also remember to select "All Forums" & "Show results as posts" in the options.

--------------------------------------------------------------------------------------------------------------
"When one's words are not better than silence, One should remain silent." ~ Kwai Chang Caine
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 18 2008, 08:20 PM
Post #7


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



Yes the wizard's apprentice has has been shown to me before...

It's probably overkill and more work?

I was thinking that just the imgburn gui itself on display would be 'pretty' enough (as in ISO2EXE)

This post has been edited by Captain Dan: Feb 18 2008, 08:20 PM
Go to the top of the page
 
+Quote Post
jaclaz
post Feb 19 2008, 04:51 AM
Post #8


Platinum Member
*****

Group: Moderator
Posts: 4,949
Joined: 25-July 04
From: Italy
Member No.: 6,779



QUOTE (hilander999 @ Feb 19 2008, 12:58 AM) *
An interesting solution to the dos box, pointed out by Siegfried a while back, is WIZAPP (The Wizard's Apprentice).
http://wizapp.sourceforge.net/

Seems to work quite well and is a very easy way to add a gui to any command script.
Autoit would certainly be better, but also requires someone who knows how autoit works.


Siegfried?

Good to know, I thought I was the only one using it! smile.gif

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
hilander999
post Feb 19 2008, 01:29 PM
Post #9


Platinum Member
*****

Group: Members
Posts: 2,277
Joined: 20-September 03
From: Earth: It's the little blue planet circling the Sun in the Milky Way Galaxy.
Member No.: 1,729



QUOTE (jaclaz @ Feb 19 2008, 04:51 AM) *
Siegfried?
rolleyes.gif http://www.911cd.net/forums//index.php?showuser=8680


--------------------
Free stuff:

Official BTS Driverpack Support for bartpe

The Ultimate Boot CD for Windows: Forum

--------------------------------------------------------------------------------------------------------------
Please remember to use the SEARCH engine before posting new topics.
Also remember to select "All Forums" & "Show results as posts" in the options.

--------------------------------------------------------------------------------------------------------------
"When one's words are not better than silence, One should remain silent." ~ Kwai Chang Caine
Go to the top of the page
 
+Quote Post
jaclaz
post Feb 20 2008, 06:00 AM
Post #10


Platinum Member
*****

Group: Moderator
Posts: 4,949
Joined: 25-July 04
From: Italy
Member No.: 6,779



@hilander999
Of course I know Siegfried, I simply thought the Wizard's Apprentice to be a "poor man's" solution for dinosaurs like me, and that advanced users/programmers, like Siegfried undoubtedly is, used more sophisticated tools wink.gif.

@Captain Dan
Try the attached.

Something curious:
I did not try the actual burning, just the SFX procedure, and found that it throws an error with file name "test.cue", as well as with "trest.cue" but works allright with "crest.cue" and with "wrest.cue", there must be a bug in the parsing engine of IMGBURN command line, that "misses" the initial "t" w00t.gif

Tested versions:
IMGBURN 2.4.0
7z457_extra.7z (7zSD.sfx)
7za457.zip (7za-exe)


jaclaz

P.S.:
Since now we can use IMGBURN for .cue also, maybe it would be possible to "unify" ISO2SFX and CUE2SFX in a single batch? unsure.gif

This post has been edited by jaclaz: Feb 20 2008, 06:03 AM
Attached File(s)
Attached File  CUE2SFX.zip ( 1.91K ) Number of downloads: 198
 


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 20 2008, 08:33 AM
Post #11


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



QUOTE
P.S.:
Since now we can use IMGBURN for .cue also, maybe it would be possible to "unify" ISO2SFX and CUE2SFX in a single batch?


Yes that also occurred to me.

I guess it depends if anyone was interested enough. I didn't want to mention it because it's just creating extra work (that I can't contribute much to).

Thanks for the batch file, I will test in the morning (AEST).


Dan
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 20 2008, 10:17 AM
Post #12


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



Bugger it!

I can't sleep so I'm testing it now.

Note to self: Don't eat a huge Pizza 2 hours before going to bed......

Ok, in principle the batch works except that it doesn't 'pick up' and include the actual filename.wav......

It only compresses and packs the filename.cue and imgburn.exe.
Go to the top of the page
 
+Quote Post
jaclaz
post Feb 20 2008, 01:05 PM
Post #13


Platinum Member
*****

Group: Moderator
Posts: 4,949
Joined: 25-July 04
From: Italy
Member No.: 6,779



Sure it does not, I just changed the command line and some references to .iso in the ISO2SFX.CMD.
wink.gif

I will add the .cue parsing routine to it later, can you post an example .cue file, so I can test it in a "real world" situation?

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
cdob
post Feb 20 2008, 03:20 PM
Post #14


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



@jaclaz

ImgBurn creates a cue file
QUOTE
FILE "sound_01.wav" WAVE
TRACK 01 AUDIO
TITLE "sound_01"
INDEX 01 00:00:00
FILE "sound_02.wav" WAVE
TRACK 02 AUDIO
INDEX 01 00:00:00


Goldenhawk Cdrwin
QUOTE
FILE "X:\TEMP\SOUND.BIN" BINARY
TRACK 01 AUDIO
INDEX 01 00:00:00
TRACK 02 AUDIO
INDEX 00 01:53:22
INDEX 01 01:55:22


You may remember
http://www.911cd.net/forums//index.php?s=&...st&p=126220

There are FILE and CDTEXTFILE.

QUOTE (cdrwin.pdf)
FILE filename filetype
Arguments
filename The audio or data file’s filename (can include device and directory). If the filename contains any spaces, the filename must be enclosed in quotation marks.

Examples
FILE C:\DATA\TRACK1.ISO BINARY
FILE C:\MUSIC\TRACK2.WAV WAVE
FILE “C:\MUSIC\LONG FILENAME.MP3” MP3


CDTEXTFILE filename
Argument
filename The CD-Text file’s filename (can include device/directory). If the filename contains any spaces, then it must be enclosed in quotation marks.

Examples
CDTEXTFILE C:\TEST\DISC.CDT
CDTEXTFILE “C:\LONG FILENAME.CDT”


@Captain Dan
For wav testing purposes try
CODE
cd %~dp0
.\7za.exe a "%destpath%files.7z" imgburn.exe "%~fx1" "%~dp1*.wav"
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 21 2008, 01:34 AM
Post #15


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



QUOTE
CODE
cd %~dp0
.\7za.exe a "%destpath%files.7z" imgburn.exe "%~fx1" "%~dp1*.wav"


Yes as a test that worked very well.
I know that using *.wav might cause some issues later on though, for example in a multi .cue / .wav directory.

Observations:

On running the batch and creating the .exe package, the DOS box reports an incorrect estimate size for the target .exe file.

The resulting .exe file no longer carries the ImgBurn icon - it is a bog standard Windows .exe icon.

However, these are minor details of course.
Go to the top of the page
 
+Quote Post
jaclaz
post Feb 21 2008, 12:06 PM
Post #16


Platinum Member
*****

Group: Moderator
Posts: 4,949
Joined: 25-July 04
From: Italy
Member No.: 6,779



@Captain Dan
QUOTE (jaclaz @ Feb 20 2008, 07:05 PM) *
I will add the .cue parsing routine to it later, can you post an example .cue file, so I can test it in a "real world" situation?


Can I assume that the "IMGBURN" example posted by cdob is correct?

What program do you use to create the .cue + .wav?


@cdob
What does CDRWIN matter?

Or should I provide for both "WAVE" and "BINARY" ? unsure.gif

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
cdob
post Feb 21 2008, 04:12 PM
Post #17


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



QUOTE (jaclaz)
What does CDRWIN matter?

Goldenhawk developed cue sheet. Goldenhawk's cdrwin use cue sheets.
Cue sheet documentation is poor.
Goldenhawk's cdrwin.hlp and cdrwin.pdf are a de facto cue sheet specification.

Explanation and more example:
http://wiki.hydrogenaudio.org/index.php?title=Cuesheet

Other application adopted cuesheet idea. But made some own enhancements.
All use file section similar to cdrwin.


What to support? Wav files only? Or a more general cue sheet support?

Different choices:
CDA2SFX: only wav files
CDA2SFX: wav and mp3 files
CDA2SFX: wav, mp3 and aiff files
CDA2SFX: any file names

CUE2SFX: general cue sheet approach.
However I doubt ImgBurn support all possibilities. Future ImgBurn version maybe enhanced.


Added:
Or do not parse cue file at all. No error detection.
Support: CDA2SFX directory
directory has to contain one cue file and addional files. Cue sheet has to use relative path.
If a user dosn't respect requirements, this creates false results.

This post has been edited by cdob: Feb 21 2008, 04:41 PM
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 21 2008, 11:12 PM
Post #18


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



@jaclaz
QUOTE (jaclaz @ Feb 20 2008, 07:05 PM) *
I will add the .cue parsing routine to it later, can you post an example .cue file, so I can test it in a "real world" situation?

Please find an example I just created here:

http://classoneproductions.podcastactive.com/audio/boot/

It's called example.7z. It contains a small .cue and .wav pair.

QUOTE
Can I assume that the "IMGBURN" example posted by cdob is correct?

Yes, to a point. The command works fine but would I suspect be flawed when run from a directory containing multiple .wav files.
QUOTE
What program do you use to create the .cue + .wav?

I still use Exact Audio Copy (EAC).
Go to the top of the page
 
+Quote Post
cdob
post Feb 22 2008, 07:47 AM
Post #19


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



Does previous posted ImgBurn CUE SHEET example makes sense?

The named IMGBURN command line was for basic testing purposes. Without cue sheet parsing, there has to be some assumptions.
It's assumes, one directory contains one *.cue and relating *.wav files. There maybe several *.wav files to one CD.
Cue sheet has to use relative path. That's no path in that case.

Do you create at Exact Audio Copy (EAC) one *.cue file and one *.wav file?

What's the final goal?
Support one *.cue file and one relating *.wav file?
Support several CDA possiblities?
Support CUE Sheets in general?
Go to the top of the page
 
+Quote Post
Captain Dan
post Feb 22 2008, 08:14 AM
Post #20


Member
**

Group: Members
Posts: 95
Joined: 13-January 06
From: Sydney, Australia
Member No.: 16,635



QUOTE
Does previous posted ImgBurn CUE SHEET example makes sense?


Yes.

QUOTE
Do you create at Exact Audio Copy (EAC) one *.cue file and one *.wav file?

Yes I do. The cue sheet provides the track layout for the complete CD, thus eliminating the need to split the CD into a bunch of separate .wav files.

QUOTE
What's the final goal?
Support one *.cue file and one relating *.wav file?
Support several CDA possiblities?
Support CUE Sheets in general?


For me the goal is the first idea...'Support one *.cue file and one relating *.wav file'

The app should know which .wav because it should read/parse the .cue file

I myself certainly have no need for anything extra as you have listed above. However it's really up to the person who codes the app.
It might be easy to include support for uncompressed formats that the burner (in this case imgburn) can accept because it's only (as far as the app is concerned) an issue of file extension. For example, imgburn can accept .cue/.wav and .cue/.bin - both are used for audio CD images and both are uncompressed formats. When you start talking about compressed formats like MP3 you then have to introduce a codec and a transcoding routine.....unnecessary IMHO.

However, as jaclaz pointed out, there may be enough reason to unify functions from similar apps, ISO2EXE for example.

Dan

This post has been edited by Captain Dan: Feb 22 2008, 08:22 AM
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2nd September 2010 - 04:19 PM