IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Create track list with times and file header
SiUK
post Jun 18 2013, 14:04
Post #1





Group: Members
Posts: 4
Joined: 18-June 13
Member No.: 108711



Hi, first post here.

After hundreds of years (well a lot) using WinAMP I dumped it last year and started using Fb2k exclusively. Can't believe I never switched sooner, although I get stuck in my ways so...

Anyhow, I am currently using EAC to rip my CDs to flac (always used EAC and haven't got any intention of changing that because the process is accurate and quick...and easy and familiar). However, after ripping a lot of albums I realised I'd forgotten to export the blasted db for each cd as a text file in EAC (something I like to do). This produces a text file with the cd title containing a track listing and the play time of each track next to it. Eg.

CODE
CD: Angélique Kidjo - Ayé

01. Agolo    [0:04:49.37]
02. Adouma    [0:04:28.38]
03. Azan Nan Kpé    [0:04:10.50]
04. Tatchédogbé    [0:04:21.00]
05. Djan - Djan    [0:04:11.25]
06. Lon Lon Vadjro    [0:05:09.30]
07. Houngbati    [0:04:44.07]
08. Idjé - Idjé    [0:05:48.63]
09. Yemandja    [0:04:14.12]
10. Tombo    [0:04:54.38]



I didn't want to have to go through every single CD again and insert it into the drive, so I am loading the ripped albums into Fb2k using the playlist automatically produced by EAC when ripping to albums flac. I have installed a component called text tools and configured it to copy track listings with times like so:

CODE
[%tracknumber%. ]%title%$tab() '['%length_ex%']'



Now from the right-click context menu in Fb2K I can choose my custom Text Tools copy command and then paste into a new text file which produces this:

CODE
01. Summertime     [3:32.520]
02. Voodoo Child (Slight Return)     [3:51.960]
03. Agolo     [4:48.013]
04. Fifa     [3:59.200]
05. Batonga     [4:34.320]
06. Wombo Lombo     [4:13.547]
07. Malaïka     [4:13.973]
08. Open Your Eyes (feat. Kelly Price)     [4:30.453]
09. The Sound of the Drums     [4:58.360]
10. Adouma     [4:27.813]
11. Naïma (feat. Carlos Santana)     [4:29.333]
12. Tourner la page     [2:54.667]
13. Babalao     [4:28.840]
14. Agossi     [4:01.427]
15. Idjé Idjé     [5:06.627]
16. Tombo     [3:58.533]
17. Wé Wé     [4:07.293]
18. Sénié     [1:51.320]


This is 'okay' but I'd prefer to have the artist and title of the cd above the track listing as with the EAC text files. Is there any addon to Fb2K that can allow me to do this? It would be even better to be able to export to a text file rather than have to create a text file manually and then copy and paste details...which is a bit laborious to say the least.

Thanks.

Si
Go to the top of the page
+Quote Post
yanni
post Jun 18 2013, 14:16
Post #2





Group: Members
Posts: 82
Joined: 3-June 06
Member No.: 31415



You can use Text Tools -> Advanced... to specify a group header. It also remembers this setting, so you won't have to enter it each time.
Go to the top of the page
+Quote Post
SiUK
post Jun 18 2013, 14:51
Post #3





Group: Members
Posts: 4
Joined: 18-June 13
Member No.: 108711



QUOTE (yanni @ Jun 18 2013, 13:16) *
You can use Text Tools -> Advanced... to specify a group header. It also remembers this setting, so you won't have to enter it each time.


Hi. Thanks for replying.

I actually tried that but it doesn't work as I thought it would. This is what it does:

CODE
CD: Kate Rusby - Sir Eglamore  
01. Sir Eglamore
CD: Kate Rusby - As I Roved Out  
02. As I Roved Out
CD: Kate Rusby - Jolly Plough Boys  
03. Jolly Plough Boys
CD: Kate Rusby - Annan Waters  
04. Annan Waters
CD: Kate Rusby - Stananivy - Jack & Jill  
05. Stananivy - Jack & Jill
CD: Kate Rusby - A Rose In April  
06. A Rose In April
CD: Kate Rusby - Radio Sweethearts  
07. Radio Sweethearts
CD: Kate Rusby - I Am Stretched On Your Grave  
08. I Am Stretched On Your Grave
CD: Kate Rusby - Old Man Time  
09. Old Man Time
CD: Kate Rusby - Drowned Lovers  
10. Drowned Lovers
CD: Kate Rusby - Bold Riley  
11. Bold Riley


Don't understand why it inserts above each line though.
Go to the top of the page
+Quote Post
marc2003
post Jun 18 2013, 14:55
Post #4





Group: Members
Posts: 4326
Joined: 27-January 05
From: England
Member No.: 19379



it looks like you've put the title as part of the group header. you probably want the album there.
Go to the top of the page
+Quote Post
SiUK
post Jun 18 2013, 14:59
Post #5





Group: Members
Posts: 4
Joined: 18-June 13
Member No.: 108711



QUOTE (marc2003 @ Jun 18 2013, 13:55) *
it looks like you've put the title as part of the group header. you probably want the album there.


Thankyou. Just this second worked it out as well. Now have this:

CODE
[%tracknumber%. ]%title%$tab() '['%length_ex%']'

CODE
CD: %artist% - %album%$crlf()


which produces this:

CODE
CD: Kate Rusby - Hourglass
  
01. Sir Eglamore     [4:14.667]
02. As I Roved Out     [3:45.867]
03. Jolly Plough Boys     [4:09.893]
04. Annan Waters     [5:29.307]
05. Stananivy - Jack & Jill     [3:09.400]
06. A Rose In April     [5:45.360]
07. Radio Sweethearts     [3:35.973]
08. I Am Stretched On Your Grave     [3:05.360]
09. Old Man Time     [3:51.640]
10. Drowned Lovers     [5:09.533]
11. Bold Riley     [4:31.960]


Thanks for help. I remember a windows shell extension that allowed creation of a text file from file or folder name so that would save a lot of poncing about with the creation of the text file if I can find it again.

Cheers

Si

This post has been edited by SiUK: Jun 18 2013, 15:00
Go to the top of the page
+Quote Post
SiUK
post Jun 18 2013, 15:23
Post #6





Group: Members
Posts: 4
Joined: 18-June 13
Member No.: 108711



"...I remember a windows shell extension that allowed creation of a text file from file or folder name so that would save a lot of poncing about with the creation of the text file if I can find it again."

Found it. It's called Filenote (old shell extension) and works just fine.

Cheers for help. This will certainly speed process up a bit.

Si
Go to the top of the page
+Quote Post
Kohlrabi
post Jun 18 2013, 15:40
Post #7





Group: Super Moderator
Posts: 953
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



You cannot easily extract the track length from Windows cmd, but crawling through all directories and putting out all files is trivial. Assuming %artist%\%album%\%tracks% structure:
CODE
for /D %a in (*) do echo ******* >> tracks.out && echo %a >> tracks.out && echo ******* >> tracks.out&& for /D %b in ("%a"/*) do echo ------- >> tracks.out && echo %b >> tracks.out && echo ------- >> tracks.out && for %c in ("%a"/"%b"/*.flac) do echo %~nc >> tracks.out

Sample output:
CODE
*******
A Perfect Circle
*******
-------
2000 - 3 Libras
-------
01 - 3 Libras
02 - Magdalena (Live)
03 - 3 Libras (Remix)
04 - Judith (Live)
05 - 3 Libras (Live)
-------
2000 - Mer De Noms
-------
01 - The Hollow
02 - Magdalena
03 - Rose
04 - Judith
05 - Orestes
06 - 3 Libras
07 - Sleeping Beauty
08 - Thomas
09 - Renhold‰r
10 - Thinking of You
11 - Bre¤a
12 - Over


I just noticed that apparently cmd redirection fails miserably on Unicode strings. sad.gif

EDIT: Even starting a cmd with /U does print garbage to the file, just 2 bytes long. I guess redirection of Unicode in Win7 cmd is somehow broken.

EDIT 2: Windows Powershell has no such bugs:
CODE
dir * |% {$artist=$_; $artist.basename >> output.txt; dir $artist} |% {$album=$_; "`t"+$album.basename >> output.txt; dir $artist\$album\*.flac} |% {$track=$_; "`t`t"+$track.basename >> output.txt }

Sample output:
CODE
A Perfect Circle
2000 - 3 Libras
01 - 3 Libras
02 - Magdalena (Live)
03 - 3 Libras (Remix)
04 - Judith (Live)
05 - 3 Libras (Live)
2000 - Mer De Noms
01 - The Hollow
02 - Magdalena
03 - Rose
04 - Judith
05 - Orestes
06 - 3 Libras
07 - Sleeping Beauty
08 - Thomas
09 - Renholdër
10 - Thinking of You
11 - Breña
12 - Over
2003 - Thirteenth Step
01 - The Package
02 - Weak and Powerless
03 - The Noose
04 - Blue
05 - Vanishing
06 - A Stranger
07 - The Outsider
08 - Crimes
09 - The Nurse who Loved Me
10 - Pet
11 - Lullaby
12 - Gravity


This post has been edited by Kohlrabi: Jun 18 2013, 17:08


--------------------
Audiophiles live in constant fear of jitter.
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: 16th April 2014 - 19:15