IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Bug? APLs from cuesheet not timed correctly, Pregap in first track not ignored
gfngfgf
post Apr 2 2006, 22:22
Post #1





Group: Members
Posts: 894
Joined: 2-November 04
Member No.: 17951



So I have an album image of Kylie Minogue's "Light Years" album, generated using EAC's "Copy Image and Create Cuesheet" feature with Wavpack as the external compressor. I then edited the cuesheet with foobar2000 and created APL link files by right-clicking all the tracks in the cuesheet and selecting "Utils->Write APL link files".

The problem is that there is a hidden track before the first track. Even though my CD drive doesn't read the gap before track 1, I guess the album image still includes silence in its place. Anyway, when I load the cuesheet in foobar2000 and play, the tracks line up correctly, and the silence before the first track is ignored like it should be. When I load the APL files, though, the tracks are not lined up correctly. The first track includes the silence from the gap before track 1. I'm wondering whether this is a bug, or intended behavior that I just need to work around. Thanks.

PS, here's the first few lines of the cuesheet in question:

CODE
REM GENRE Pop
REM DATE 2001-04-21
PERFORMER "Kylie Minogue"
TITLE "Light Years"
REM REPLAYGAIN_ALBUM_GAIN -8.77 dB
REM REPLAYGAIN_ALBUM_PEAK 0.979705
FILE "Kylie Minogue - (2001) Light Years.wv" WAVE
TRACK 01 AUDIO
TITLE "Spinning Around"
REM REPLAYGAIN_TRACK_GAIN -6.89 dB
REM REPLAYGAIN_TRACK_PEAK 0.979705
INDEX 00 00:00:00
INDEX 01 03:48:35
TRACK 02 AUDIO
TITLE "On a Night Like This"
REM REPLAYGAIN_TRACK_GAIN -7.48 dB
REM REPLAYGAIN_TRACK_PEAK 0.979705
INDEX 00 07:15:45
INDEX 01 07:16:22
TRACK 03 AUDIO
TITLE "So Now Goodbye"
...
Go to the top of the page
 
+Quote Post
Alex B
post Apr 10 2006, 13:39
Post #2





Group: Members
Posts: 904
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



It must be a bug. The APL system should work just like the original cue sheet. The passage between the first INDEX 00 and INDEX 01 pointers is not supposed to be included in the apl file. I have used custom cue sheets for making separate apl files of that kind of hidden tracks.

Check my answer here: http://www.hydrogenaudio.org/forums/index....ndpost&p=380827


Edit: Made a small correction...

This post has been edited by Alex B: Apr 10 2006, 13:41
Go to the top of the page
 
+Quote Post
Alex B
post Apr 12 2006, 00:18
Post #3





Group: Members
Posts: 904
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



I wanted to confirm that this really is a bug in v.0.9. It appears to be so. I used the two first tracks of your cue file to and made corresponding apl files with MakeAPL, foobar 0.83 and foobar 0.9.

Here are the blocks listed inside the apl files:

Monkey's Audio MakeAPL v.3.99:

CODE
Track #1

[Monkey's Audio Image Link File]
Image File=Kylie Minogue - (2001) Light Years.ape
Start Block=10075380
Finish Block=19240536

Track #2

[Monkey's Audio Image Link File]
Image File=Kylie Minogue - (2001) Light Years.ape
Start Block=19240536
Finish Block=-1

The Finish Block value -1 is correct, it just means that the track 2 plays until the source audio file ends.


foobar2000 v.0.83 (the last Special Installer version)

CODE
Track #1

[Monkey's Audio Image Link File]
Image File=Kylie Minogue - (2001) Light Years.ape
Start Block=10075380
Finish Block=19240536

Track #2

[Monkey's Audio Image Link File]
Image File=Kylie Minogue - (2001) Light Years.ape
Start Block=19240536
Finish Block=24010980

This is also correct. Obviously foobar 0.83 calculated the last Finish Block value. (The source file I used was a bit over nine minutes.)


foobar2000 v.0.9 (the release version)

CODE
Track #1

[Monkey's Audio Image Link File]
Image File=Kylie Minogue - (2001) Light Years.ape
Start Block=0
Finish Block=9165156

Track #2

[Monkey's Audio Image Link File]
Image File=Kylie Minogue - (2001) Light Years.ape
Start Block=9165156
Finish Block=13935600

v.0.9 has a bug. Because it ignores the first pregap information and starts counting from the beginning of the the source audio file all tracks will be incorret if the cue sheet has an INDEX 00 line before the first INDEX 01 line.

Luckily, I have not yet used 0.9 for making my archive apl files.


Edit

I compared the foobar 0.83 and MakeAPL files that have different Finnish Block values (-1 vs 24010980). The converted wave files are identical:

QUOTE
INFO (foo_bitcompare) : Comparing:
INFO (foo_bitcompare) : location: "file://E:\Test\02 - On a Night Like This foobar_foobar083.wav" (0)
INFO (foo_bitcompare) : location: "file://E:\Test\02 - On a Night Like This_MakeAPL.wav" (0)
INFO (foo_bitcompare) : No differences in decoded data found.
INFO (foo_bitcompare) : Finished successfully.


This post has been edited by Alex B: Apr 12 2006, 07:57
Go to the top of the page
 
+Quote Post
gfngfgf
post Apr 12 2006, 14:04
Post #4





Group: Members
Posts: 894
Joined: 2-November 04
Member No.: 17951



Thanks for doing the research. Maybe I'll use v0.8.3 for now to make my APL files.
Go to the top of the page
 
+Quote Post
Alex B
post Jul 4 2006, 16:28
Post #5





Group: Members
Posts: 904
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



I just tested fb2k 0.9.2 with the latest Monkey's Audio component (v. 2.1).

This bug has not been fixed yet.
Go to the top of the page
 
+Quote Post
Alex B
post Jul 4 2006, 17:39
Post #6





Group: Members
Posts: 904
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



I would like to add that the INDEX 00 - INDEX 01 passage before the first track doesn't have to contain a hidden track. The passage can be silent as well. This bug leads to incorrect APL files always when an INDEX 00 line is present before the first INDEX 01 line.

Quite often cue files start like this:

CODE
PERFORMER "Vivaldi/Corelli/Albinoni"
TITLE "The Four Seasons and More Concertos - CD 1"
FILE "The Four Seasons and More Concertos - CD 1.ape" WAVE
  TRACK 01 AUDIO
    TITLE "Vivaldi / The Four Seasons - Spring (Allegro)"
    PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
    INDEX 00 00:00:00
    INDEX 01 00:00:33
  TRACK 02 AUDIO  ...

This example cue would make all track APL files to start 0.44 s too early. (= 19404 samples @ 44.1 kHz sample rate).


Edit: grammar

This post has been edited by Alex B: Jul 4 2006, 18:13
Go to the top of the page
 
+Quote Post
Peter
post Jul 4 2006, 19:33
Post #7


foobar2000 developer


Group: Admin
Posts: 2804
Joined: 30-September 01
Member No.: 84



Try again with updated Monkey's Audio support DLL (in attachement).
Attached File(s)
Attached File  foo_input_monkey.zip ( 135.27K ) Number of downloads: 96
 
Go to the top of the page
 
+Quote Post
Alex B
post Jul 4 2006, 21:10
Post #8





Group: Members
Posts: 904
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



QUOTE (Peter @ Jul 4 2006, 21:33) *
Try again with updated Monkey's Audio support DLL (in attachement).

Thanks,

I tested the new DLL file quickly. I used my example cue:

CODE
PERFORMER "Vivaldi/Corelli/Albinoni"
TITLE "The Four Seasons and More Concertos - CD 1"
FILE "The Four Seasons and More Concertos - CD 1.ape" WAVE
TRACK 01 AUDIO
TITLE "Vivaldi / The Four Seasons - Spring (Allegro)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 00:00:00
INDEX 01 00:00:33
TRACK 02 AUDIO
TITLE "Vivaldi / The Four Seasons - Spring (Largo)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 03:23:48
INDEX 01 03:27:20
TRACK 03 AUDIO
TITLE "Vivaldi / The Four Seasons - Spring (Allegro)(Danza pastorale)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 05:40:33
INDEX 01 05:41:43
TRACK 04 AUDIO
TITLE "Vivaldi / The Four Seasons - Summer (Allegro)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 09:39:53
INDEX 01 09:43:10
TRACK 05 AUDIO
TITLE "Vivaldi / The Four Seasons - Summer (Adagio)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 14:57:58
INDEX 01 14:59:03
TRACK 06 AUDIO
TITLE "Vivaldi / The Four Seasons - Summer (Presto)(Tempo impetuoso d'estate)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 17:07:55
TRACK 07 AUDIO
TITLE "Vivaldi / The Four Seasons - Autumn (Allegro)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 20:01:08
INDEX 01 20:06:55
TRACK 08 AUDIO
TITLE "Vivaldi / The Four Seasons - Autumn (Adagio molto)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 25:11:65
INDEX 01 25:14:58
TRACK 09 AUDIO
TITLE "Vivaldi / The Four Seasons - Autumn (Allegro)(La Caccia)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 27:19:63
TRACK 10 AUDIO
TITLE "Vivaldi / The Four Seasons - Winter (Allegro non molto)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 30:36:43
INDEX 01 30:40:25
TRACK 11 AUDIO
TITLE "Vivaldi / The Four Seasons - Winter (Largo)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 34:14:50
TRACK 12 AUDIO
TITLE "Vivaldi / The Four Seasons - Winter (Allegro)"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 35:59:08
TRACK 13 AUDIO
TITLE "Vivaldi / Violin Concerto in A minor - Allegro"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 39:24:25
INDEX 01 39:28:23
TRACK 14 AUDIO
TITLE "Vivaldi / Violin Concerto in A minor - Largo"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 42:32:28
INDEX 01 42:36:58
TRACK 15 AUDIO
TITLE "Vivaldi / Violin Concerto in A minor - Presto"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 45:04:60
INDEX 01 45:06:40
TRACK 16 AUDIO
TITLE "Corelli / Concerto Op. 6 Nr. 4 - Adagio - allegro"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 47:26:33
INDEX 01 47:28:23
TRACK 17 AUDIO
TITLE "Corelli / Concerto Op. 6 Nr. 4 - Adagio"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 50:20:20
TRACK 18 AUDIO
TITLE "Corelli / Concerto Op. 6 Nr. 4 - Vivace"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 53:02:20
TRACK 19 AUDIO
TITLE "Corelli / Concerto Op. 6 Nr. 4 - Allegro"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 01 54:13:20
TRACK 20 AUDIO
TITLE "Albinoni / Concerto a Cinque - Allegro moderato"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 57:28:73
INDEX 01 57:31:10
TRACK 21 AUDIO
TITLE "Albinoni / Concerto a Cinque - Adagio"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 59:33:60
INDEX 01 59:35:10
TRACK 22 AUDIO
TITLE "Albinoni / Concerto a Cinque - Allegro vivace"
PERFORMER "Baroque Festival Orchestra, I Solisti di Zagreb"
INDEX 00 61:05:33
INDEX 01 61:07:15



The results:

foobar2000 0.83 special

Track 1
Start Block=19404
Finish Block=9140460

Track 2
Start Block=9140460
Finish Block=15063384

Track 22 (the last track)
Start Block=161723520
Finish Block=165683700

foobar2000 0.92, Monkey's Audio component v.2.1

Track 1
Start Block=0
Finish Block=9121056

Track 2
Start Block=9121056
Finish Block=15043980

Track 22 (the last track)
Start Block=161704116
Finish Block=165664296

foobar2000 0.92, Monkey's Audio component fixed dll 2006-07-04

Track 1
Start Block=19404
Finish Block=9140460

Track 2
Start Block=9140460
Finish Block=15063384

Track 22 (the last track)
Start Block=161723520
Finish Block=165683700


The fixed DLL file made correct APL files. All 22 APL files had identical start and end blocks with the foobar 0.83 APL files. The APE tags were not bit-to-bit identical, but I suppose they are fine (perhaps just in a different order).

I didn't try anything else, just APL creation.

Edit: typo

This post has been edited by Alex B: Jul 5 2006, 17:32
Go to the top of the page
 
+Quote Post
Alex B
post Jul 5 2006, 17:29
Post #9





Group: Members
Posts: 904
Joined: 14-September 05
From: Helsinki, Finland
Member No.: 24472



I investigated a bit the tagging differences between the fb2k v.0.83 special and v.0.92 "fixed DLL" APL files.

As I guessed, the order is different and in addition fb2k 0.92 makes a few extra tags. For example:

fb2k 0.83
CODE
[Monkey's Audio Image Link File]..Image File=Yello - The Eye.ape..Start Block=28814352..Finish Block=37306836....----- APE TAG (DO NOT TOUCH!!!)
-----..APETAGEXÐ.............. ................Album.The Eye........Title.Soul On Ice........Artist.Yello........Track.4........Year.2003........Genre.ElectronicAPETAGEXÐ............
...........

fb2k 0.92
CODE
[Monkey's Audio Image Link File]..Image File=Yello - The Eye.ape..Start Block=28814352..Finish Block=37306836....----- APE TAG (DO NOT TOUCH!!!) -----..APETAGEXÐ...í.......... ................GENRE.Electronic........Year.2003........DISCID.C70E380E........COMMENT.ExactAudioCo
py v0.95b3........album.The Eye........title.Soul On Ice........artist.Yello........Track.4........totaltracks.14APETAGEXÐ...í...................

I used this cue sheet:
CODE
REM GENRE Electronic
REM DATE 2003
REM DISCID C70E380E
REM COMMENT "ExactAudioCopy v0.95b3"
PERFORMER "Yello"
TITLE "The Eye"
FILE "Yello - The Eye.ape" WAVE
TRACK 01 AUDIO
TITLE "Planet Dada"
PERFORMER "Yello"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Nervous"
PERFORMER "Yello"
INDEX 01 03:08:38
TRACK 03 AUDIO
TITLE "Don Turbulento"
PERFORMER "Yello"
INDEX 01 06:02:24
TRACK 04 AUDIO
TITLE "Soul On Ice"
PERFORMER "Yello"
INDEX 01 10:53:29
TRACK 05 AUDIO
TITLE "Junior B"
PERFORMER "Yello"
INDEX 01 14:05:72
TRACK 06 AUDIO
TITLE "Tiger Dust"
PERFORMER "Yello"
INDEX 01 18:10:74
TRACK 07 AUDIO
TITLE "Distant Solution"
PERFORMER "Yello"
INDEX 01 23:11:54
TRACK 08 AUDIO
TITLE "Hipster's Delay"
PERFORMER "Yello"
INDEX 01 27:55:01
TRACK 09 AUDIO
TITLE "Time Palace"
PERFORMER "Yello"
INDEX 01 32:33:48
TRACK 10 AUDIO
TITLE "Indigo Bay"
PERFORMER "Yello"
INDEX 01 36:53:15
TRACK 11 AUDIO
TITLE "Unreal"
PERFORMER "Yello"
INDEX 01 42:44:01
TRACK 12 AUDIO
TITLE "Bougainville"
PERFORMER "Yello"
INDEX 01 46:46:06
TRACK 13 AUDIO
TITLE "Star Breath"
PERFORMER "Yello"
INDEX 01 50:41:41
TRACK 14 AUDIO
TITLE "Planet Dada (Flamboyant)"
PERFORMER "Yello"
INDEX 01 55:59:73
Go to the top of the page
 
+Quote Post

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

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 14:59