IPB

Welcome Guest ( Log In | Register )

Noncompliant to single wav cuesheet, Any automated tool?
DrGreen
post Feb 16 2006, 00:05
Post #1





Group: Members
Posts: 29
Joined: 22-January 05
Member No.: 19216



Hi,

i'm sorry if this was already asked here, but I couldn't found it with search.

Is there any tool that can convert a multiple files noncompliant cuesheet to a single image one?

The reason for this is that I have some albums stored as multiple files with a noncompliant cuesheet with gaps append to the end of previous track. Now I would like to join the files and create one appropriate cuesheet with all gaps preserved.

I've read the EAC CUE Sheets wiki page, and I see that it contains the method for converting, but it's difficult to apply it to a lot of cues by hand.

So I was thinking on some tool, or other clerver and quicker method to do it.

Thanks!
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Fandango
post Feb 23 2006, 00:47
Post #2





Group: Members
Posts: 1548
Joined: 13-August 03
Member No.: 8353



@mmortal03

Yes, and since WAVTools already supports adding first track pre-gap, it is perfect for CUETools which would provide the needed value automagically.


@Moitah

I did another test (with the new version):

Foobar2000 (upto 0.9 beta 6, dunno about newer betas) has the ability to add replaygain info into cue sheets.

For album gain it simply adds the following keywords (followed by the corresponding values) "REM REPLAYGAIN_ALBUM_GAIN" and "REM REPLAYGAIN_ALBUM_PEAK" after TITLE and before the first FILE entry. In the FILE/TRACK section it respectively adds "REM REPLAYGAIN_TRACK_GAIN" and "REM REPLAYGAIN_TRACK_PEAK" at the end. This is roughly how it is done with a single image cue sheet... now with a multi track cue sheet it is also possible but it looks a lot messier.

I dunno how, but CUETools does converting such a replaygained multi track cue sheet quite well, as far as I can see, except for one thing that makes fb2k reject such a single image cue sheet afterwards: the "REM REPLAYGAIN_*" lines are placed before the INDEX lines, but foobar2000 always puts them past the TITLE/*/INDEX lines in these single cues. It's best seen when looking at three example:

A non-compliant cue sheet after being "replaygained" by foobar2000:

CODE
PERFORMER "801"
TITLE "Live"
REM REPLAYGAIN_ALBUM_GAIN -1.16 dB
REM REPLAYGAIN_ALBUM_PEAK 0.999969
FILE "01 - Lagrima.wav" WAVE
TRACK 01 AUDIO
TITLE "Lagrima"
PERFORMER "801"
INDEX 01 00:00:00
FILE "02 - T.N.K. (Tomorrow Never Knows).wav" WAVE
REM REPLAYGAIN_TRACK_GAIN +10.39 dB
REM REPLAYGAIN_TRACK_PEAK 0.186646
TRACK 02 AUDIO
TITLE "T.N.K. (Tomorrow Never Knows)"
PERFORMER "801"
INDEX 01 00:00:00
FILE "03 - East Of Asteroid.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -2.03 dB
REM REPLAYGAIN_TRACK_PEAK 0.999969
TRACK 03 AUDIO
TITLE "East Of Asteroid"
PERFORMER "801"
INDEX 01 00:00:00
FILE "04 - Rongwrong.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -1.81 dB
REM REPLAYGAIN_TRACK_PEAK 0.904327
TRACK 04 AUDIO
TITLE "Rongwrong"
PERFORMER "801"
INDEX 01 00:00:00
FILE "05 - Sombre Reptiles.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -0.10 dB
REM REPLAYGAIN_TRACK_PEAK 0.762543
TRACK 05 AUDIO
TITLE "Sombre Reptiles"
PERFORMER "801"
INDEX 01 00:00:00
FILE "06 - Baby's On Fire.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -0.48 dB
REM REPLAYGAIN_TRACK_PEAK 0.814301
TRACK 06 AUDIO
TITLE "Baby's On Fire"
PERFORMER "801"
INDEX 01 00:00:00
FILE "07 - Diamond Head.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -1.19 dB
REM REPLAYGAIN_TRACK_PEAK 0.788879
TRACK 07 AUDIO
TITLE "Diamond Head"
PERFORMER "801"
INDEX 01 00:00:00
FILE "08 - Miss Shapiro.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -0.73 dB
REM REPLAYGAIN_TRACK_PEAK 0.807159
TRACK 08 AUDIO
TITLE "Miss Shapiro"
PERFORMER "801"
INDEX 01 00:00:00
FILE "09 - You Really Got Me.wav" WAVE
REM REPLAYGAIN_TRACK_GAIN -1.06 dB
REM REPLAYGAIN_TRACK_PEAK 0.866943
TRACK 09 AUDIO
TITLE "You Really Got Me"
PERFORMER "801"
INDEX 01 00:00:00
REM REPLAYGAIN_TRACK_GAIN -1.50 dB
REM REPLAYGAIN_TRACK_PEAK 0.784607
TRACK 10 AUDIO
TITLE "Third Uncle"
PERFORMER "801"
INDEX 00 03:21:74
FILE "10 - Third Uncle.wav" WAVE
INDEX 01 00:00:00
REM REPLAYGAIN_TRACK_GAIN -0.50 dB
REM REPLAYGAIN_TRACK_PEAK 0.764374


This was a clean single image compliant cue sheet which got replaygained:

CODE
PERFORMER "801"
TITLE "Live"
REM REPLAYGAIN_ALBUM_GAIN -1.16 dB
REM REPLAYGAIN_ALBUM_PEAK 0.999969
FILE "Live fb2k.wav" WAVE
TRACK 01 AUDIO
TITLE "Lagrima"
PERFORMER "801"
INDEX 01 00:00:00
REM REPLAYGAIN_TRACK_GAIN +10.39 dB
REM REPLAYGAIN_TRACK_PEAK 0.186646
TRACK 02 AUDIO
TITLE "T.N.K. (Tomorrow Never Knows)"
PERFORMER "801"
INDEX 01 02:33:72
REM REPLAYGAIN_TRACK_GAIN -2.03 dB
REM REPLAYGAIN_TRACK_PEAK 0.999969
TRACK 03 AUDIO
TITLE "East Of Asteroid"
PERFORMER "801"
INDEX 01 08:49:35
REM REPLAYGAIN_TRACK_GAIN -1.81 dB
REM REPLAYGAIN_TRACK_PEAK 0.904327
TRACK 04 AUDIO
TITLE "Rongwrong"
PERFORMER "801"
INDEX 01 13:47:15
REM REPLAYGAIN_TRACK_GAIN -0.10 dB
REM REPLAYGAIN_TRACK_PEAK 0.762543
TRACK 05 AUDIO
TITLE "Sombre Reptiles"
PERFORMER "801"
INDEX 01 18:52:72
REM REPLAYGAIN_TRACK_GAIN -0.48 dB
REM REPLAYGAIN_TRACK_PEAK 0.814301
TRACK 06 AUDIO
TITLE "Baby's On Fire"
PERFORMER "801"
INDEX 01 22:13:02
REM REPLAYGAIN_TRACK_GAIN -1.19 dB
REM REPLAYGAIN_TRACK_PEAK 0.788879
TRACK 07 AUDIO
TITLE "Diamond Head"
PERFORMER "801"
INDEX 01 27:16:32
REM REPLAYGAIN_TRACK_GAIN -0.73 dB
REM REPLAYGAIN_TRACK_PEAK 0.807159
TRACK 08 AUDIO
TITLE "Miss Shapiro"
PERFORMER "801"
INDEX 01 33:37:67
REM REPLAYGAIN_TRACK_GAIN -1.06 dB
REM REPLAYGAIN_TRACK_PEAK 0.866943
TRACK 09 AUDIO
TITLE "You Really Got Me"
PERFORMER "801"
INDEX 01 37:58:60
REM REPLAYGAIN_TRACK_GAIN -1.50 dB
REM REPLAYGAIN_TRACK_PEAK 0.784607
TRACK 10 AUDIO
TITLE "Third Uncle"
PERFORMER "801"
INDEX 00 41:20:59
INDEX 01 41:22:07
REM REPLAYGAIN_TRACK_GAIN -0.50 dB
REM REPLAYGAIN_TRACK_PEAK 0.764374


And this is was a replaygained multi track non-compliant cue sheet after being transformed by CUETools:

CODE
PERFORMER "801"
TITLE "Live"
REM REPLAYGAIN_ALBUM_GAIN -1.16 dB
REM REPLAYGAIN_ALBUM_PEAK 0.999969
FILE "Live.wav" WAVE
TRACK 01 AUDIO
TITLE "Lagrima"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN +10.39 dB
REM REPLAYGAIN_TRACK_PEAK 0.186646
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "T.N.K. (Tomorrow Never Knows)"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -2.03 dB
REM REPLAYGAIN_TRACK_PEAK 0.999969
INDEX 01 02:33:72
TRACK 03 AUDIO
TITLE "East Of Asteroid"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -1.81 dB
REM REPLAYGAIN_TRACK_PEAK 0.904327
INDEX 01 08:49:35
TRACK 04 AUDIO
TITLE "Rongwrong"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -0.10 dB
REM REPLAYGAIN_TRACK_PEAK 0.762543
INDEX 01 13:47:15
TRACK 05 AUDIO
TITLE "Sombre Reptiles"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -0.48 dB
REM REPLAYGAIN_TRACK_PEAK 0.814301
INDEX 01 18:52:72
TRACK 06 AUDIO
TITLE "Baby's On Fire"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -1.19 dB
REM REPLAYGAIN_TRACK_PEAK 0.788879
INDEX 01 22:13:02
TRACK 07 AUDIO
TITLE "Diamond Head"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -0.73 dB
REM REPLAYGAIN_TRACK_PEAK 0.807159
INDEX 01 27:16:32
TRACK 08 AUDIO
TITLE "Miss Shapiro"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -1.06 dB
REM REPLAYGAIN_TRACK_PEAK 0.866943
INDEX 01 33:37:67
TRACK 09 AUDIO
TITLE "You Really Got Me"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -1.50 dB
REM REPLAYGAIN_TRACK_PEAK 0.784607
INDEX 01 37:58:60
TRACK 10 AUDIO
TITLE "Third Uncle"
PERFORMER "801"
REM REPLAYGAIN_TRACK_GAIN -0.50 dB
REM REPLAYGAIN_TRACK_PEAK 0.764374
INDEX 00 41:20:59
INDEX 01 41:22:07



So I guess only a small tweaking of the code is necessary here...

Moderation: Amended to use codebox

-- Thx, Synthetic Soul. I knew there was a BBcode like this but I forgot its name.

This post has been edited by Fandango: Feb 23 2006, 19:11
Go to the top of the page
+Quote Post
mmortal03
post Feb 23 2006, 00:56
Post #3





Group: Members
Posts: 601
Joined: 19-July 02
From: USA
Member No.: 2667



QUOTE (Fandango @ Feb 22 2006, 06:47 PM)
@mmortal03

Yes, and since WAVTools already supports adding first track pre-gap, it is perfect for CUETools which would provide the needed value automagically.


Yeah, the next version of Burrrn allows you to specify the Write Offset, so once that is set, and you ripped them with the proper Read Offset, you wouldn't even need to use that feature, but it is true that you could if you needed it.


Also, about the ReplayGain...I save all my ReplayGain information into my individual FLACs, and not into the cuesheet. Obviously, you can't do that with WAVs.

But, given this, once the FLAC is encoded to one big wav compressed as a FLAC, the ReplayGain information wouldn't by default transfer over (e.g. FLAC.exe wouldn't know how to do it). As far as burning it replaygained, Burrrn has a ReplayGain option. But as far as for PLAYING back using the cuefiles, yeah, having Moitah's program reconstruct the full Replaygain value from the individual album gain info in the FLACs, and write that as the Replaygain value in the single FLAC image's metadata would be the best bet. I understand why you would want to write it to the cue for WAVs, but for FLACs, it might as well be written to the FLAC file.

This post has been edited by mmortal03: Feb 23 2006, 01:00


--------------------
WARNING: Changing of advanced parameters might degrade sound quality. Modify them only if you are expirienced in audio compression!
Go to the top of the page
+Quote Post

Posts in this topic
- DrGreen   Noncompliant to single wav cuesheet   Feb 16 2006, 00:05
- - smz   Good question... Foobar2000 doesn't seems to ...   Feb 16 2006, 02:43
- - Cosmo   The only simple solution involves owning the origi...   Feb 16 2006, 03:54
|- - smz   actually, just burning the non-compliant cuesheet ...   Feb 16 2006, 04:23
- - DrGreen   Thanks for the replies guys, and sorry for the wro...   Feb 16 2006, 12:57
|- - Moitah   QUOTE (DrGreen @ Feb 16 2006, 07:57 AM)maybe ...   Feb 16 2006, 13:12
- - Moitah   I got a good start on it tonight. I should have s...   Feb 17 2006, 11:53
- - Synthetic Soul   You're keen as a jellybean! Will the app ...   Feb 17 2006, 12:52
|- - Moitah   @Synthetic Soul: Yes, it will read a CUE sheet (a...   Feb 17 2006, 22:06
- - Synthetic Soul   Thanks for the reply. Looking forward to playing ...   Feb 17 2006, 22:15
- - DrGreen   Moitah, thank you so much Somehow the mail notif...   Feb 17 2006, 22:33
- - Moitah   [Link removed, see here for updated link] - .NET F...   Feb 18 2006, 01:43
- - DrGreen   Thanks Moitah! I will make some tests and rep...   Feb 18 2006, 12:57
|- - Moitah   @DrGreen: That's strange, usually my hosting i...   Feb 18 2006, 13:15
- - DrGreen   Got it now! Ok, I've made a test rip to d...   Feb 18 2006, 13:52
|- - Moitah   @DrGreen: Full paths don't work right now, I...   Feb 18 2006, 13:57
- - DrGreen   Yeah! I guess we have a winner! Did a qu...   Feb 18 2006, 14:13
- - Moitah   Glad it's working now . I guess the space thi...   Feb 18 2006, 14:17
- - DrGreen   I guess I misunderstood you when you talked about ...   Feb 18 2006, 15:14
- - Moitah   I fixed the full path issue, added the space/under...   Feb 18 2006, 15:17
- - DrGreen   found the problem with my cuesheet. It was a non ...   Feb 18 2006, 15:28
- - liekloo   Wow! Moitah you've done a terrific job...   Feb 20 2006, 22:04
- - mmortal03   Awesome work! Any chance this could be made...   Feb 20 2006, 23:13
|- - Moitah   Thanks for the feedback . @mmortal03: I can fix ...   Feb 20 2006, 23:31
|- - mmortal03   QUOTE (Moitah @ Feb 20 2006, 05:31 PM)Thanks ...   Feb 21 2006, 02:31
- - Moitah   CUE Tools v1.1.0 uses the directory information in...   Feb 21 2006, 15:26
- - mmortal03   The new version works like a charm. One very smal...   Feb 22 2006, 02:52
- - DrGreen   Moitah, this is getting even better Thanks for th...   Feb 22 2006, 13:14
- - DrGreen   I guess you have a little bug on your General.Time...   Feb 22 2006, 19:47
- - Moitah   I thought I tested that... wow, what a stupid bug ...   Feb 22 2006, 20:52
- - DrGreen   You're bug might be stupid... but my solution ...   Feb 22 2006, 21:14
- - Moitah   CUE Tools v1.2.0:Fixes the bug with writing timest...   Feb 22 2006, 23:47
- - Fandango   OMG! Awesome, Moitah. Another useful tools fro...   Feb 22 2006, 23:56
- - mmortal03   Yeah, I mean, if you integrated WAVTools and CUETo...   Feb 23 2006, 00:35
- - Fandango   @mmortal03 Yes, and since WAVTools already suppor...   Feb 23 2006, 00:47
|- - mmortal03   QUOTE (Fandango @ Feb 22 2006, 06:47 PM)@mmor...   Feb 23 2006, 00:56
|- - Fandango   QUOTE (mmortal03 @ Feb 23 2006, 12:56 AM)I un...   Feb 23 2006, 01:22
- - mmortal03   How can I properly store the Date Tag information ...   Feb 23 2006, 01:37
- - Fandango   The problem is not that the DATE line gets ommitte...   Feb 23 2006, 01:48
|- - mmortal03   QUOTE (Fandango @ Feb 22 2006, 07:48 PM)The p...   Feb 23 2006, 21:38
- - Moitah   I think I'm just going to remove those ReplayG...   Feb 23 2006, 19:57
- - Moitah   That said, I threw this together really quick. It...   Feb 23 2006, 20:26
- - Fandango   Yeah I guess you're absolutely right, preservi...   Feb 23 2006, 20:44
- - Cosmo   Nice. Might it be possible to re-introduce a gap ...   Feb 23 2006, 20:51
- - Moitah   @Cosmo: WAV Tools will let you do it either way.   Feb 23 2006, 20:53
|- - Cosmo   QUOTE (Moitah)@Cosmo: WAV Tools will let you do it...   Feb 23 2006, 23:13
- - Fandango   Yes, this is correct for the "old" cue s...   Feb 23 2006, 21:58
|- - mmortal03   QUOTE (Fandango @ Feb 23 2006, 03:58 PM)Yes, ...   Feb 24 2006, 01:21
|- - Martin H   QUOTE (mmortal03 @ Feb 24 2006, 01:21 AM)I do...   Feb 24 2006, 05:47
|- - mmortal03   QUOTE (Martin H @ Feb 23 2006, 11:47 PM)QUOTE...   Feb 25 2006, 20:53
|- - Martin H   QUOTE (mmortal03 @ Feb 25 2006, 08:53 PM)Whic...   Feb 26 2006, 04:11
|- - mmortal03   QUOTE (Martin H @ Feb 25 2006, 10:11 PM)QUOTE...   Feb 26 2006, 09:56
|- - Fandango   QUOTE (mmortal03 @ Feb 26 2006, 09:56 AM)Eith...   Feb 26 2006, 13:36
- - Moitah   I see what you're asking now. Yeah, I think I...   Feb 23 2006, 23:59
- - Moitah   After checking a non-compliant CUE sheet with a ga...   Feb 24 2006, 00:18
|- - Cosmo   QUOTE (Moitah)After checking a non-compliant CUE s...   Feb 24 2006, 16:31
- - Fandango   I got another suggestion concerning the file name ...   Feb 24 2006, 00:28
- - djet   This tool is just a dream! It saved a lot of m...   Feb 24 2006, 02:35
|- - Duble0Syx   QUOTE (djet @ Feb 23 2006, 05:35 PM)As you se...   Feb 24 2006, 03:07
|- - mmortal03   QUOTE (Duble0Syx @ Feb 23 2006, 09:07 PM)QUOT...   Feb 24 2006, 04:51
|- - Duble0Syx   QUOTE (mmortal03 @ Feb 23 2006, 07:51 PM)QUOT...   Feb 24 2006, 06:48
- - Moitah   I have the code working to convert to non-complian...   Feb 24 2006, 18:52
- - brimstone   QUOTE (Duble0Syx @ Feb 24 2006, 06:48 AM)QUOT...   Feb 24 2006, 19:40
- - Moitah   CUE Tools v1.3.0:Added: Conversion to the other 3 ...   Feb 25 2006, 14:20
- - Moitah   I think I am going to add the ability to process t...   Feb 25 2006, 14:31
- - HeadLessException   thanks for this great tool. keep up the good work   Feb 25 2006, 20:20
- - djet   Moitah, what about that PREGAP bug?   Feb 25 2006, 22:53
- - Moitah   I don't consider it a bug. The next version w...   Feb 25 2006, 23:08
|- - djet   QUOTE (Moitah @ Feb 26 2006, 02:08 AM)I don...   Feb 26 2006, 06:54
- - Moitah   The code to process the WAV files is done and test...   Feb 26 2006, 03:33
- - Moitah   I'll think about it. I'd have to test to ...   Feb 26 2006, 07:01
- - Moitah   CUE Tools v1.4.0:Added: Converts the WAV files as ...   Feb 27 2006, 00:12
- - DrGreen   Sweet Just made a couple of tests and it's r...   Feb 27 2006, 00:35
- - Moitah   CUE Tools v1.4.1:Added: Hidden option to write PRE...   Feb 27 2006, 04:15
|- - Vietwoojagig   QUOTE (Moitah @ Feb 27 2006, 04:15 AM)CUE Too...   Feb 27 2006, 12:06
- - Fandango   This is great! As easy as drag and drop now, ...   Feb 27 2006, 07:08
- - mmortal03   It would be awesome to have it eventually handle F...   Feb 27 2006, 08:38
- - Moitah   CUE Tools v1.4.2:Fixed: Extended ASCII characters ...   Feb 27 2006, 17:40
|- - Vietwoojagig   QUOTE (Moitah @ Feb 27 2006, 05:40 PM)Regardi...   Mar 1 2006, 15:59
|- - Vietwoojagig   QUOTE (Moitah @ Feb 27 2006, 05:40 PM)CUE Too...   Mar 7 2006, 10:40
- - Moitah   CUE Tools v1.4.3:Fixed: Small range of extended AS...   Feb 27 2006, 18:42
- - djet   Great!! Thank you!   Feb 27 2006, 23:36
- - Moitah   FLAC input files are now fully supported (output i...   Feb 28 2006, 23:26
- - mmortal03   I am assuming you haven't posted the FLAC deco...   Mar 1 2006, 01:21
- - Moitah   Not yet, it needs more testing. But either tonigh...   Mar 1 2006, 02:04
- - Moitah   CUE Tools v1.5.0:Added: Support for reading audio ...   Mar 1 2006, 04:58
|- - mmortal03   There is something about parenthesis that this new...   Mar 1 2006, 06:28
- - Moitah   Only for FLAC files? You are talking about the fi...   Mar 1 2006, 06:45
- - Moitah   CUE Tools v1.5.1:Fixed: FLAC files weren't bei...   Mar 1 2006, 21:34
|- - mmortal03   QUOTE (Moitah @ Mar 1 2006, 03:34 PM)CUE Tool...   Mar 2 2006, 05:03
- - Moitah   It's okay, the fact that libFLAC didn't ac...   Mar 2 2006, 05:25
- - djet   Is it possible to enable WavPack output?   Mar 2 2006, 16:49
- - Moitah   I'd rather work on FLAC output first, but if I...   Mar 2 2006, 16:51
- - Moitah   I didn't realize there was a POSTGAP command u...   Mar 7 2006, 12:07
- - Fandango   I get this error: "Index length cannot be 0....   Mar 24 2006, 23:09
|- - valnar   QUOTE (Fandango @ Mar 24 2006, 14:09) I g...   May 16 2006, 14:55
|- - Moitah   QUOTE (Fandango @ Mar 24 2006, 18:09) I g...   Jul 5 2006, 07:42
- - Fandango   seems like Moitah's taking a break... ^^   May 27 2006, 18:44
- - Fandango   QUOTE If you rip the CD in single-file mode does E...   Aug 2 2006, 19:04
- - greynol   QUOTE CODETRACK 01 AUDIO INDEX 01 00:00...   Aug 2 2006, 21:04
2 Pages V   1 2 >


Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd September 2014 - 14:28