darkfeline / cantata

Automatically exported from code.google.com/p/cantata
GNU General Public License v3.0
0 stars 0 forks source link

Cue sheet support. #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please add .cue sheets (internal and external) support.

Thank you!

Original issue reported on code.google.com by alexandr...@campus.ul.pt on 28 Jun 2013 at 8:13

GoogleCodeExporter commented 9 years ago
As far as I know, cantata does support cue sheets. They should be listed in the 
artists and folder views.

however I don't actually use cue sheets myself. what functionality is missing???

Original comment by craig.p....@gmail.com on 28 Jun 2013 at 8:31

GoogleCodeExporter commented 9 years ago
Here, only a big track is listed.

cantata-1.0.3

Original comment by alexandr...@campus.ul.pt on 28 Jun 2013 at 8:37

GoogleCodeExporter commented 9 years ago
But what else should be displayed? Cantata does not parse the cue files, and 
there is no point to it parsing them. As far as I know, there is no way to load 
a segment of the file into mpd - so what would the point be to showing them???

Original comment by craig.p....@gmail.com on 28 Jun 2013 at 8:53

GoogleCodeExporter commented 9 years ago
MPD has support to .cue since version 17.

Need --enable-cue and libcue to work.

Thanks!

Original comment by alexandr...@campus.ul.pt on 28 Jun 2013 at 9:01

GoogleCodeExporter commented 9 years ago
So how does a client ask mpd to play the third segment of a cue file?

Original comment by craig.p....@gmail.com on 28 Jun 2013 at 9:07

GoogleCodeExporter commented 9 years ago
There are a few clients supporting that (some web based):

ie. ncmpcpp (from 0.5.8)

http://ncmpcpp.rybczak.net/

Original comment by alexandr...@campus.ul.pt on 28 Jun 2013 at 9:08

GoogleCodeExporter commented 9 years ago
Sorry, 

Ncmpc does a better work with cue than ncmpcpp (ncmpcpp just add duplicates).
http://mpd.wikia.com/wiki/Client:Ncmpc

*libcue actually is not needed.

Thank you!

Original comment by alexandr...@campus.ul.pt on 28 Jun 2013 at 9:38

GoogleCodeExporter commented 9 years ago
There are 2 files (cue_parser.{c,h}) in mpd-0.17.3/src/cue/ for cue support.

Original comment by alexandr...@campus.ul.pt on 2 Jul 2013 at 12:27

GoogleCodeExporter commented 9 years ago
Please update to trunk, if you can. I've now added better cue file support. If 
cantata can read the cue file (which means it needs to know the music folder 
location), then it will create a 'virtual' track for each segment in the cue 
file. The only issue is that there is no way for cantata to know the length of 
the last track, so this is shown as Unknown.

As I said I dont actually have any cue files, but I hacked one together with a 
self compiled MPD - and it seemed to work as expected.

Please update and let me know if this is now working ok.

Original comment by craig.p....@gmail.com on 2 Jul 2013 at 7:28

GoogleCodeExporter commented 9 years ago
I forgot to mention, but you will need to either delete cantata's cache of the 
mpd library, or update the mpd database to see any changes. To delete the 
cache, use the cache page in the settings dialog - the restart cantata

Original comment by craig.p....@gmail.com on 2 Jul 2013 at 9:22

GoogleCodeExporter commented 9 years ago
Tested :-)

1 - There are the length of the tracks. Its works!
2 - I don't know if related but the album folder won't be displayed on the 
"Artist" tab (tree) and the artist/album are listed as "Unknown" (track names 
and numbers are correct). But there are the album folder on the top-left after 
start playing the album/track;
3 - On the "Albums" tab there are no reference at all.
4 - On the tree two files are displayed: .flac and .cue, just .cue play indeed.

I can provide a .cue album if you like, but .cue a just have a bit noise/metal 
albums, I think.

Thank you!!!

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 1:48

GoogleCodeExporter commented 9 years ago
Can you paste the contents of a cue file here? As I said, I dont have *any* cue 
files - I just hacked one up using a sample from wikipedia!

As well as the cue file contents, can you also state:

1. Relative path to the cue file (eg SomeArtist/TheAlbum/Album.cue
2. Relative paths of all files referenced in the cue file
3. Metadata (eg. ID3 tags) for each file referenced in the cue file

Thanks.

-------------

As to your points above
2. The artist and album names should have been taken from the cue file, I take 
it they are not listed in the cue file? Should the metadata for this come from 
the flc/mp3/etc  file instead?
3. Odd, if its in the artists tab I would have expected to see it in the albums 
tab too
4. Which tree? The artists tab? If only two files are displayed, cue and flac, 
this would imply that Cantata could not parse the cue file - and has fallen 
back to its previous behavior.

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 7:17

GoogleCodeExporter commented 9 years ago
*4 - Yes, Artists tab.

This is the same cue file used for test:

1,2 - All files (.{cue,flac,log}) are on the same folder: 
/home/$USER/Music/AlbumTitle/
3 -  I will extract that and paste here soon.

VREM GENRE "Thrash Metal"
REM DATE 1983
REM DISCID AF0B6A0D
REM COMMENT "ExactAudioCopy v0.99pb4"
PERFORMER "Slayer"
TITLE "Show No Mercy"
FILE "Slayer - Show No Mercy.flac" WAVE
  TRACK 01 AUDIO
    TITLE "Evil Has No Boundaries"
    PERFORMER "Slayer"
    INDEX 00 00:00:00
    INDEX 01 00:00:25
  TRACK 02 AUDIO
    TITLE "The Antichrist"
    PERFORMER "Slayer"
    INDEX 00 03:10:65
    INDEX 01 03:11:40
  TRACK 03 AUDIO
    TITLE "Die By The Sword"
    PERFORMER "Slayer"
    INDEX 00 06:00:67
    INDEX 01 06:01:62
  TRACK 04 AUDIO
    TITLE "Fight Till Death"
    PERFORMER "Slayer"
    INDEX 00 09:38:42
    INDEX 01 09:39:50
  TRACK 05 AUDIO
    TITLE "Metal Storm / Face The Slayer"
    PERFORMER "Slayer"
    INDEX 00 13:17:27
    INDEX 01 13:18:35
  TRACK 06 AUDIO
    TITLE "Black Magic"
    PERFORMER "Slayer"
    INDEX 00 18:12:30
    INDEX 01 18:13:57
  TRACK 07 AUDIO
    TITLE "Tormentor"
    PERFORMER "Slayer"
    INDEX 00 22:17:32
    INDEX 01 22:18:07
  TRACK 08 AUDIO
    TITLE "The Final Command"
    PERFORMER "Slayer"
    INDEX 00 26:02:50
    INDEX 01 26:03:07
  TRACK 09 AUDIO
    TITLE "Crionics"
    PERFORMER "Slayer"
    INDEX 00 28:35:40
    INDEX 01 28:35:72
  TRACK 10 AUDIO
    TITLE "Show No Mercy"
    PERFORMER "Slayer"
    INDEX 01 32:04:70
  TRACK 11 AUDIO
    TITLE "Chemical Warfare*"
    PERFORMER "Slayer"
    INDEX 00 35:13:02
    INDEX 01 35:13:32
  TRACK 12 AUDIO
    TITLE "Captor Of Sin*"
    PERFORMER "Slayer"
    INDEX 00 41:15:30
    INDEX 01 41:15:70
  TRACK 13 AUDIO
    TITLE "Haunting The Chapel*"
    PERFORMER "Slayer"
    INDEX 00 44:44:65
    INDEX 01 44:45:32

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 11:38

GoogleCodeExporter commented 9 years ago
I did manually. I don't know a software to auto-extract id3tags.
*I'm looking for a copyright free album to share, for tests purposes.

Title - Evil Has No Boundaries
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 1
Disc number - 
Genre - Thrash Metal

Title - The Antichrist
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 2
Disc number - 
Genre - Thrash Metal

Title - Die By The Sword
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 3
Disc number - 
Genre - Thrash Metal

Title - Fight Till Death
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 4
Disc number - 
Genre - Thrash Metal

Title - Metal Storm / Face The Slayer
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 5
Disc number - 
Genre - Thrash Metal

Title - Black Magic
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 6
Disc number - 
Genre - Thrash Metal

Title - Tormentor
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 7
Disc number - 
Genre - Thrash Metal

Title - The Final Command
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 8
Disc number - 
Genre - Thrash Metal

Title - Crionics
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 9
Disc number - 
Genre - Thrash Metal

Title - Show No Mercy
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 10
Disc number - 
Genre - Thrash Metal

Title - Chemical Warfare*
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 11
Disc number - 
Genre - Thrash Metal

Title - Captor Of Sin*
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 12
Disc number - 
Genre - Thrash Metal

Title - Haunting The Chapel*
Artist - Slayer
Album artist - Slayer
Album - Show No Mercy
Track number - 13
Disc number - 
Genre - Thrash Metal

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 3:33

GoogleCodeExporter commented 9 years ago
Thanks for this, it does help :-)

Can you please update to trunk - and see if this is now ok?

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 3:44

GoogleCodeExporter commented 9 years ago
I added a new album and the things are a bit different with that.

1 - On the artists tab still the same as before with the Slayer album, but 
doesn't work with the new album. (I will be sharing that soon)
2 - Albums tab now display the Slayer album as unknown but without the cover 
image, and display correct infos of the new album but without the cover. 
Indeed, perhaps, there are no album cover on server to use on that.

I did some screens screenshots:

http://www.mediafire.com/folder/cq9e8osceodviga,3m5ad9mif0gqp5i,o533u0ufd2ur8eg,
qilass6zaqtmfsy/shared

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 4:54

GoogleCodeExporter commented 9 years ago
Did you delete cantata's cache first? You need to-do this, and then restart 
cantata before you will see any changes

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 5:08

GoogleCodeExporter commented 9 years ago
Here is a Folk Scottish Music Album.

https://mega.co.nz/#!gRRFXTDD!bvoP_XfKStz4TAWMfFQ9hw70UCEMREnkvxo7jWRmTkM

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 5:18

GoogleCodeExporter commented 9 years ago
Yes, cache cleaned, cantata restarted, database updated.

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 5:35

GoogleCodeExporter commented 9 years ago
You dont need to update the database, just deleting cantata's cache is enough - 
because if this is not deleted, cantata will use that when its restarted.

The linked file only contains the flac, can you post the cue file too?

Also, just so that I have the *same* setup, what is the folder structure like? 
I'm assuming:

/var/lib/mpd/music/Various/Various - The Rough Guide to Scottish Music - Music 
Rough Guide 2nd Edition.flac
/var/lib/mpd/music/Various/Various - The Rough Guide to Scottish Music - Music 
Rough Guide 2nd Edition.cue

where the rest of my music is also, e.g.

/var/lib/mpd/music/A.S.A.P./Silver And Gold/01 The Lion.mp3
...etc

and /var/lib/mpd/music is listed in Cantata as the MPD music folder.

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 5:48

GoogleCodeExporter commented 9 years ago
On mine is:

/home/$USER/Music/Various/Various - The Rough Guide to Scottish Music - Music 
Rough Guide 2nd Edition.flac
/home/$USER/Music/Various/Various - The Rough Guide to Scottish Music - Music 
Rough Guide 2nd Edition.cue

Default music folder on mpd.conf

/home/$USER/Music/OTHERSARTISTS

/var/lib/mpd/music is also listed in Cantata as the MPD music folder.

I was certain that the cue file was placed along:
*I will try to create the same using another than K3B, may be a K3B issue.

Thanks!

REM Cue file written by K3b 2.0.2

PERFORMER "Various"
TITLE "The Rough Guide to Scottish Music - Music Rough Guide 2nd Edition"
FILE "Various - The Rough Guide to Scottish Music - Music Rough Guide 2nd 
Edition.flac" FLAC
  TRACK 01 AUDIO
    PERFORMER "Battlefield Band"
    TITLE "Chuir I Guin Air A Bhodach_DJ MacLEod's_The Ness Pipers_The Earl of Space"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    PERFORMER "Emily Smith"
    TITLE "Fair Helen of Kirkconnel"
    INDEX 00 04:20:61
    INDEX 01 04:22:32
  TRACK 03 AUDIO
    PERFORMER "Finlay MacDonald"
    TITLE "Cowden Hall"
    INDEX 00 07:42:17
    INDEX 01 07:43:57
  TRACK 04 AUDIO
    PERFORMER "Deaf Shepherd"
    TITLE "Millennium Village (Islay's Charms_Fairwell to Millennium Village_Pierre's Right Arrm_Alec C. MacGregor)"
    INDEX 00 11:39:12
    INDEX 01 11:43:60
  TRACK 05 AUDIO
    PERFORMER "Capercaillie"
    TITLE "Skye Walking Song - Chuir M' Athair Mise Dhan Taigh Charraideach (My Father Sent Me  to a House of Sorrow)"
    INDEX 00 16:38:51
    INDEX 01 16:41:20
  TRACK 06 AUDIO
    PERFORMER "Bob Hobkirk"
    TITLE "Neil Gow's Lament For His Second Wife"
    INDEX 00 21:18:00
    INDEX 01 21:19:52
  TRACK 07 AUDIO
    PERFORMER "Jennifer & Hazel Wrigley"
    TITLE "Utiseta (Roseness_Churchill Barriers_Deerness Reel)"
    INDEX 00 23:15:43
    INDEX 01 23:17:33
  TRACK 08 AUDIO
    PERFORMER "Jack Beck"
    TITLE "Fordell Ball"
    INDEX 00 26:55:54
    INDEX 01 26:57:37
  TRACK 09 AUDIO
    PERFORMER "Pete Clark"
    TITLE "Coilsfield House"
    INDEX 00 31:05:53
    INDEX 01 31:07:34
  TRACK 10 AUDIO
    PERFORMER "Christine Primrose"
    TITLE "Do Ghaidheil Shiatail"
    INDEX 00 34:13:73
    INDEX 01 34:16:30
  TRACK 11 AUDIO
    PERFORMER "Robert Mathieson"
    TITLE "Calypso (The Carnival Reel_The Calypso Piper)"
    INDEX 00 37:39:11
    INDEX 01 37:41:07
  TRACK 12 AUDIO
    PERFORMER "Boys of the Lough"
    TITLE "Brother Gildas_Calliope House"
    INDEX 00 40:13:68
    INDEX 01 40:15:47
  TRACK 13 AUDIO
    PERFORMER "Heather Heywood"
    TITLE "Logie O'Buchan"
    INDEX 00 44:04:29
    INDEX 01 44:06:25
  TRACK 14 AUDIO
    PERFORMER "Cliar"
    TITLE "Cailleach An Airgid_Rachainn A Shuridh' Air Oighrig"
    INDEX 00 47:37:53
    INDEX 01 47:41:12
  TRACK 15 AUDIO
    PERFORMER "Donald Black & Malcolm Jones"
    TITLE "6_8 March, Hornpipe"
    INDEX 00 50:52:46
    INDEX 01 50:54:49
  TRACK 16 AUDIO
    PERFORMER "Blazin' Fiddles"
    TITLE "Dancing On The Moon (Celtic Cousins_The Flaggon_Dannsa Air A' Ghealach)"
    INDEX 00 53:45:65
    INDEX 01 53:47:58
  TRACK 17 AUDIO
    PERFORMER "Pipe Sergeant Gordon J. Walker"
    TITLE "Gaelic Air & Hornpipes (My Love, My Joy_Duncan Johnstone_Doctor MacInnes' Fancy)"
    INDEX 00 56:53:55
    INDEX 01 56:55:43
  TRACK 18 AUDIO
    PERFORMER "Alison McMorland & Geordie McIntyre"
    TITLE "Rowan In The Rock"
    INDEX 00 60:30:21
    INDEX 01 60:33:14

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 6:01

GoogleCodeExporter commented 9 years ago
So, cantata is NOT configured with the correct MPD music folder? If it is not - 
then it will not be able to access the cue file. MPD only passes Cantata the 
relative folder.

e..g if MPD is set to use /var/lib/mpd/music, and you have  
/var/lib/mpd/music/a/b.cue MPD will list the cue file as a/b.cue. Unless 
Cantata is configured with the correct MPD music folder, it cant possible load 
the cue file.

If you have MPD's music folder configured as "/home/$USER/Music/OTHERSARTISTS" 
how dies it find "home/$USER/Music/Various"??? Surely you mean MPD's music 
folder is ""/home/$USER/Music/" ???

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 6:09

GoogleCodeExporter commented 9 years ago
So, I fix the correct music folder in Cantata. I was never noticied thats 
wrong, since everything work out-of-the-box.

Yes, "/home/$USER/Music/"

Now, everything fixed, cache cleaned, cantata restarted but same as before.

I noticied now, when I click on the cue file of the Scottish album there are 
this error message: "Bad Song Index". Play only if I click on the .flac

Sorry for that mistakes.

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 6:25

GoogleCodeExporter commented 9 years ago
OK, I've just done the following:

1. Built 0.17.4 of MPD (as Ubuntu only has 0.16)
2. Started a new MPD instance, with the following config

music_directory "/home/craig/Music"
playlist_directory "/home/craig/Music/.mpd/playlists"
sticker_file "/home/craig/Music/.mpd/sticker.sql"
db_file "/home/craig/Music/.mpd/tag_cache"
pid_file "/home/craig/Music/.mpd/pid"
state_file "/home/craig/Music/.mpd/state"
log_file "/dev/null"
metadata_to_use "artist,album,title,track,name,genre,date,disc,albumartist"
audio_output {
  type "alsa"
  name "Output"
}
mixer_type "software"
audio_buffer_size "8192"
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
bind_to_address         "any"
port                            "6601"

3. Placed the cue and flac from above into /home/craig/Music/Various

4. Started MPD

5. Started Cantata - configured it for the new server, with music folder set to 
/home/craig/Music

6. Only 1 artist and album appears in the artist tab. This is The flac with all 
tracks and the cue file listed

7. Only 1 album appears in the albums tab. Again this is the correct album with 
the correct title and track listing.

So, it does appear to work. There is no 'Unknown' album for me.

However, I do get the bad index warning - so need to fix this.

If you start a new MPD, with a config similar config to the above, do you get 
the same results?

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 6:41

GoogleCodeExporter commented 9 years ago
Mind you, I cant load the file at all - not even with gmpc!

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 7:05

GoogleCodeExporter commented 9 years ago
I'm using the same configurations except the username and I'm using pulseaudio.:

Using the same album I get the same results. But when using the first tested 
album, the Slayer album, I get different:

1. The Artist is unkown
2. The Album is unkown
3. Only one .flac and one .cue file appear, OK
4. The are no bad index warning here
5. When start playing clinking on the cue file, there are on the righ side 
(playlist) the artist name, album name, tracks numbers and correct lenghts.
6. On Top Left the album cover is displayed but isn't displayed on the Artist 
tab.
7. That album is also as Unkown on Album Tab and without cover picture.

I can also share the first album, the Slayer album (there are no issues for 
me), but I don't know if there are any issues doing it here.

Thank you.

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 7:06

GoogleCodeExporter commented 9 years ago
Mind you, I cant load the file at all - not even with gmpc!

I'm installing the rubyripper (I believe it also create cue files) to avoid K3B 
issues when creating the cue file, but it will take a while (Gentoo running on 
old laptop). There are all ruby stuff to be compiled too.

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 7:11

GoogleCodeExporter commented 9 years ago
The album and artist will be 'Unknown' if the flac file itself has no meta 
data. MPD informs Cantata of the flac and cue files. MPD should send the flac 
filename and details first, if this has no meta data - then iit will be 
assigned to 'Unknown' by 'Unknown' Then MPD should send the name of the cue 
file. *if* Cantata is configured correctly. it will attempt to read the cue 
file (for this to work the correct music folder needs to be set in Cantata's 
config).

I've just tested, by using kde3 to remove the metadata from the above flac, and 
deleting cantata's cache file. When Cantata was restarted, the album was given 
the correct details from the cue file.

--------------

If you update trunk, I've now added some logging that /might/ help. 

1. Delete Cantata's cache file (rm ~/.cache/cantata/library/*.xml.gz)
2. Start Cantata from a terminal window as follows:

CANTATA_DEBUG=2 ./cantata

This should now log lines such as:

MPDParseUtils Got playlist item "Various/Various - The Rough Guide to Scottish 
Music - Music Rough Guide 2nd Edition.cue" prevFile: "Various/Various - The 
Rough Guide to Scottish Music - Music Rough Guide 2nd Edition.flac" 
MPDParseUtils Parsed file, songs: 18 files: 1 
MPDParseUtils Create new track from cue "cue:///Various/Various - The Rough 
Guide to Scottish Music - Music Rough Guide 2nd Edition.cue?pos=0" "Chuir I 
Guin Air A Bhodach_DJ MacLEod's_The Ness Pipers_The Earl of Space" "Various" 
"The Rough Guide to Scottish Music - Music Rough Guide 2nd Edition" 
MPDParseUtils Create new track from cue "cue:///Various/Various - The Rough 
Guide to Scottish Music - Music Rough Guide 2nd Edition.cue?pos=1" "Fair Helen 
of Kirkconnel" "Various" "The Rough Guide to Scottish Music - Music Rough Guide 
2nd Edition" 
MPDParseUtils Create new track from cue "cue:///Various/Various - The Rough 
Guide to Scottish Music - Music Rough Guide 2nd Edition.cue?pos=2" "Cowden 
Hall" "Various" "The Rough Guide to Scottish Music - Music Rough Guide 2nd 
Edition" 
MPDParseUtils Create new track from cue "cue:///Various/Various - The Rough 
Guide to Scottish Music - Music Rough Guide 2nd Edition.cue?pos=3" "Millennium 
Village (Islay's Charms_Fairwell to Millennium Village_Pierre's Right Arrm_Alec 
C. MacGregor)" "Various" "The Rough Guide to Scottish Music - Music Rough Guide 
2nd Edition" 
...............
MPDParseUtils Create new track from cue "cue:///Various/Various - The Rough 
Guide to Scottish Music - Music Rough Guide 2nd Edition.cue?pos=17" "Rowan In 
The Rock" "Various" "The Rough Guide to Scottish Music - Music Rough Guide 2nd 
Edition" 
MPDParseUtils Removing 1  files from  "Unknown" 
MPDParseUtils Removing empty previous album "Unknown" 
MPDParseUtils Adding playlist file to "Various" "The Rough Guide to Scottish 
Music - Music Rough Guide 2nd Edition" 

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 7:29

GoogleCodeExporter commented 9 years ago
The "Unknown" album here is the "Slayer - Show no Mercy":

Covers "" requestImage "Show No Mercy/Slayer - Show No Mercy.flac" "Slayer" 
"Slayer" "Show No Mercy" 
Covers "" locateImage "Show No Mercy/Slayer - Show No Mercy.flac" "Slayer" 
"Slayer" "Show No Mercy" 
Covers "" locateImage Failed to locate image 
Covers "" requestImage "Show No Mercy/Slayer - Show No Mercy.flac" "Slayer" 
"Slayer" "Show No Mercy" Need to download 
CoverDownloader "" download "Show No Mercy/Slayer - Show No Mercy.flac" 
"Slayer" "Slayer" "Show No Mercy" 
CoverDownloader "" downloadViaLastFm 
"http://ws.audioscrobbler.com/2.0/?method=album.getInfo&api_key=11172d35eb8cc2fd
33250a9e45a2d486&autocorrect=1&artist=Slayer&album=Show No Mercy" 
Covers "" locateImage "Show No Mercy/Slayer - Show No Mercy.flac" "Slayer" 
"Slayer" "Show No Mercy" 
Covers "" locateImage Failed to locate image 
Covers "" requestImage "Show No Mercy/Slayer - Show No Mercy.flac" "" "Unknown" 
"" 
Covers "" locateImage "Show No Mercy/Slayer - Show No Mercy.flac" "" "Unknown" 
"" 
Covers "" locateImage Failed to locate image 
Covers "" requestImage "Show No Mercy/Slayer - Show No Mercy.flac" "" "Unknown" 
"" Need to download 
CoverDownloader "" download "Show No Mercy/Slayer - Show No Mercy.flac" 
"Slayer" "Slayer" "Show No Mercy" 
CoverDownloader "" download "Show No Mercy/Slayer - Show No Mercy.flac" "" 
"Unknown" "" 
CoverDownloader "" downloadViaLastFm 
"http://ws.audioscrobbler.com/2.0/?method=artist.getInfo&api_key=11172d35eb8cc2f
d33250a9e45a2d486&autocorrect=1&artist=Unknown" 
CoverDownloader "" lastFmCallFinished status 0 "Unknown error" 
CoverDownloader "" lastFmCallFinished download 
"http://userserve-ak.last.fm/serve/300x300/69526808.png" 
CoverDownloader "" lastFmCallFinished status 0 "Unknown error" 
CoverDownloader "" lastFmCallFinished download 
"http://userserve-ak.last.fm/serve/252/64768805.jpg" 
CoverDownloader "" jobFinished status 0 "Unknown error" 
CoverDownloader "" saveImg "Show No Mercy/Slayer - Show No Mercy.flac" 
"/home/privacychain/.cache/cantata/covers/Unknown.jpg" 
CoverDownloader "" jobFinished artist image, null? false 
Covers "" gotArtistImage emit artistImage "Show No Mercy/Slayer - Show No 
Mercy.flac" "" "Unknown" "" 252 209 
"/home/privacychain/.cache/cantata/covers/Unknown.jpg" 
CoverDownloader "" jobFinished status 0 "Unknown error" 
CoverDownloader "" saveImg "Show No Mercy/Slayer - Show No Mercy.flac" 
"/home/privacychain/.cache/cantata/covers/Slayer/Show No Mercy.png" 
CoverDownloader "" jobFinished got cover image 
"/home/privacychain/.cache/cantata/covers/Slayer/Show No Mercy.png" 
Covers "" gotAlbumCover emit cover "Show No Mercy/Slayer - Show No Mercy.flac" 
"Slayer" "Slayer" "Show No Mercy" 300 300 
"/home/privacychain/.cache/cantata/covers/Slayer/Show No Mercy.png" 
Covers "" requestImage "Show No Mercy/Slayer - Show No Mercy.flac" "Unknown" 
"Unknown" "Unknown" 
Covers "" locateImage "Show No Mercy/Slayer - Show No Mercy.flac" "Unknown" 
"Unknown" "Unknown" 
Covers "" locateImage Failed to locate image 
Covers "" requestImage "Show No Mercy/Slayer - Show No Mercy.flac" "Unknown" 
"Unknown" "Unknown" Need to download 
CoverDownloader "" download "Show No Mercy/Slayer - Show No Mercy.flac" 
"Unknown" "Unknown" "Unknown" 
CoverDownloader "" downloadViaLastFm 
"http://ws.audioscrobbler.com/2.0/?method=album.getInfo&api_key=11172d35eb8cc2fd
33250a9e45a2d486&autocorrect=1&artist=Unknown&album=Unknown" 
CoverDownloader "" lastFmCallFinished status 0 "Unknown error" 
CoverDownloader "" lastFmCallFinished Failed to download cover image - try 
other app 
Covers "" gotAlbumCover emit cover "Show No Mercy/Slayer - Show No Mercy.flac" 
"Unknown" "Unknown" "Unknown" 0 0 ""

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 7:39

GoogleCodeExporter commented 9 years ago
...um, you need to update and compile trunk. that debug is the cover fetching.

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 7:41

GoogleCodeExporter commented 9 years ago
I compiled from trunk around 3 hours ago. There are something new?

I believe there are 2 issues:

1. K3B cue issue
2. A issue with the Slayer album cue file (ExactAudioCopy v0.99pb4).

This is the cue file from rubyripper, appear working OK.

REM GENRE Scottish Folk
REM DATE 2003
REM COMMENT "Rubyripper 0.6.2"
REM DISCID 080f0412
REM FREEDB_QUERY "080f0412 18 150 19832 34932 52935 75245 96127 104958 121462 
140209 154380 169732 181322 198625 214737 229249 242233 256318 272639 3846"
PERFORMER "Various"
TITLE "The Rough Guide to Scottish Music - Music Rough Guide 2nd Edition"
FILE "Battlefield Band - The Rough Guide to Scottish Music - Music Rough Guide 
2nd Edition (2003).flac" WAVE
  TRACK 01 AUDIO
    TITLE "Chuir I Guin Air A Bhodach"
    PERFORMER "Battlefield Band"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Fair Helen of Kirkconnel"
    PERFORMER "Emily Smith"
    INDEX 01 04:22:32
  TRACK 03 AUDIO
    TITLE "Cowden Hall"
    PERFORMER "Finlay MacDonald"
    INDEX 01 07:43:57
  TRACK 04 AUDIO
    TITLE "Millennium Village (Islay's Charms"
    PERFORMER "Deaf Shepherd"
    INDEX 01 11:43:60
  TRACK 05 AUDIO
    TITLE "Skye Walking Song"
    PERFORMER "Capercaillie"
    INDEX 01 16:41:20
  TRACK 06 AUDIO
    TITLE "Neil Gow's Lament For His Second Wife"
    PERFORMER "Bob Hobkirk"
    INDEX 01 21:19:52
  TRACK 07 AUDIO
    TITLE "Utiseta (Roseness"
    PERFORMER "Jennifer & Hazel Wrigley"
    INDEX 01 23:17:33
  TRACK 08 AUDIO
    TITLE "Fordell Ball"
    PERFORMER "Jack Beck"
    INDEX 01 26:57:37
  TRACK 09 AUDIO
    TITLE "Coilsfield House"
    PERFORMER "Pete Clark"
    INDEX 01 31:07:34
  TRACK 10 AUDIO
    TITLE "Do Ghaidheil Shiatail"
    PERFORMER "Christine Primrose"
    INDEX 01 34:16:30
  TRACK 11 AUDIO
    TITLE "Calypso (The Carnival Reel"
    PERFORMER "Robert Mathieson"
    INDEX 01 37:41:07
  TRACK 12 AUDIO
    TITLE "Brother Gildas"
    PERFORMER "Boys of the Lough"
    INDEX 01 40:15:47
  TRACK 13 AUDIO
    TITLE "Logie O'Buchan"
    PERFORMER "Heather Heywood"
    INDEX 01 44:06:25
  TRACK 14 AUDIO
    TITLE "Cailleach An Airgid"
    PERFORMER "Cliar"
    INDEX 01 47:41:12
  TRACK 15 AUDIO
    TITLE "6"
    PERFORMER "Donald Black & Malcolm Jones"
    INDEX 01 50:54:49
  TRACK 16 AUDIO
    TITLE "Dancing On The Moon (Celtic Cousins"
    PERFORMER "Blazin' Fiddles"
    INDEX 01 53:47:58
  TRACK 17 AUDIO
    TITLE "Gaelic Air & Hornpipes (My Love, My Joy"
    PERFORMER "Pipe Sergeant Gordon J. Walker"
    INDEX 01 56:55:43
  TRACK 18 AUDIO
    TITLE "Rowan In The Rock"
    PERFORMER "Alison McMorland & Geordie McIntyre"
    INDEX 01 60:33:14

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 7:47

GoogleCodeExporter commented 9 years ago
Yeah, I added the debug logging :-)   ...so you need to update to get that!

I've just tried with the cue from above (changed the FILE setting to match the 
flac I have), and it now works ok for me.

Is it now working for you???

Do you still have issues with the Slayer cue file?

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 7:50

GoogleCodeExporter commented 9 years ago
The Scottish album ripped with rubyripper is working. :-) Just not have the 
cover art, but I think there are no cover art for that on server.

The Slayer Album still the same and with these outputs:

MPDParseUtils Got playlist item "Show No Mercy/Slayer - Show No Mercy.cue" 
prevFile: "Show No Mercy/Slayer - Show No Mercy.flac" 
MPDParseUtils Adding playlist file to "Unknown" "Unknown"

I'll ripp a 3º album* in order to avoid issues with cover picture.

*"Dave Matthews Band - Before These Crowded Streets" (I know there are cover 
for that)

Rubyripper is too slow, but seems to work better than others. :-)

Off topic: Does Cantata look for a embedded cover art on music files?

Thank you!

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 8:18

GoogleCodeExporter commented 9 years ago
I ripped the DMB album and everything work as expected: :-D

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 8:44

GoogleCodeExporter commented 9 years ago
With the slayer album, is it 1 cue file = 1 flac file with multiple tracks?

Because, judging by the debug either cantata did not or could not parse the 
file. It will only parse, and use the cue file if:

1. MPD is >-0.17
2. Filename ends with .cue
3. It can be parsed - this means it could be opened (so need correct music 
path), and the code could parse the contents
4. The number of flac/mp3/etc files mentioned in the cue is LESS  than the 
number of tracks. (So, if you have 1 cue = 1 flac, and the cue has multiple 
tracks then this would be ok)

If all the above succeeded, you would have had a log line such as:

 "Parsed file, songs:" 12 "files:" 1

...but you did not.

that said, I used the slayer cue file from above with the flac that you linked 
to (renaming the files and the FILE line), and it was listed OK. (The cover 
even appeared in both artists and albums views)

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 9:07

GoogleCodeExporter commented 9 years ago
With the slayer album, is it 1 cue file = 1 flac file with multiple tracks?

Yes

1. mpd-0.17.4
2. Yes
3. Yes
4. No, the numbers of tracks actually  match.

Just that two lines on debug. Not the:

"Parsed file, songs:" 12 "files:" 1

I tried just right now with a 4º album also created by "ExactAudioCopy 
v0.99pb4". Same issue. So, there are a bug (or something) with "ExactAudioCopy 
v0.99pb4" when ripping.

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 9:24

GoogleCodeExporter commented 9 years ago
Then that is the problem. If there is only one music file (flac, mp3, etc) and 
only one track, then cantata will not use the cue file. This was to work around 
another potential issue. But I guess the code could be changed so that it will 
use it in this case if there is no meta data for the audio file

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 9:41

GoogleCodeExporter commented 9 years ago
Also, why would you have this? I mean why have 1 track with no meta data in the 
audio file, but have the meta data in the cue file. I don't see why you would 
ever want this...

Original comment by craig.p....@gmail.com on 3 Jul 2013 at 9:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I riped with ExactAudioCopy v1.00 Beta 2 and more issues come. So that sofware 
is the problem.

Also, why would you have this?

I have TBs of music in tons of organized folders, IMO is easy to organize and 
maintain having only two files instead many.

Also, sometimes, there are some releases of the same album: more compressed  
but with some bonus, less compressed without bonus and better sound; from vinyl 
24/192, from CD 16/44 (better for portable devices). And using separated files 
I can accidentally mix them.

Thank you!!!

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 10:01

GoogleCodeExporter commented 9 years ago
When I said more compressed or less compressed is about in audio mastering. Not 
flac, mp3 etc. Currently, with digital music, most music are being masterized 
with a lot of compression in order to play loud easily at cost of the music 
quality, detail, dynamics, better soundstage, etc. They simple can't do that on 
vinyl due to fisical limitations. ;-)

Thank you very much for your attention!!!

Original comment by alexandr...@campus.ul.pt on 3 Jul 2013 at 10:20

GoogleCodeExporter commented 9 years ago
OK, please update to trunk again. I've changed the code so that the cue file 
should now be parsed if the artist and album are currently Unknown. This should 
fix the remaining issue.

Original comment by craig.p....@gmail.com on 4 Jul 2013 at 11:14

GoogleCodeExporter commented 9 years ago
Oh, now it work better than expected. B-)

1. Artist tab: there are the cover art, album and artist name. Instead of 1 
.flac file are all track separated (like the normal way) plus the .cue file.
2. Album tab: There are the cover art, album and artist name.

Thank you!

Original comment by alexandr...@campus.ul.pt on 4 Jul 2013 at 9:20

GoogleCodeExporter commented 9 years ago
Glad its now finally fixed :-)

Original comment by craig.p....@gmail.com on 4 Jul 2013 at 9:33