IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Soft playlist + Foobar media library -> hard playlist
JohanDeBock
post Sep 26 2007, 22:30
Post #1





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



Will explain in more detail what I mean:
Soft playlist: a text file with on each line the crucial info to identify a song: Title Album Artist ...
Hard playlist: playlist in Foobar with 'hard' links.
Then use the soft playlist to create a hard playlist from the Foobar media library.
So this basically comes down to fuzzy querying of the Foobar media library for each line of the Soft playlist.

I hope this is clear?

Does this already exist and if not is anyone interested in programming a plugin to do it in Foobar?
I think this can be very handy for transferring playlists from other people or other programs to Foobar.
I would use it to transfer the playlists I make on my iPod to Foobar using the function in iTunes (which i only use for iPod management wink.gif) that copies a selection of songs to the clipboard.

This post has been edited by JohanDeBock: Sep 26 2007, 22:48


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
kanak
post Sep 26 2007, 22:49
Post #2





Group: Members
Posts: 1190
Joined: 12-January 06
From: Cambridge, MA
Member No.: 27052



QUOTE (JohanDeBock @ Sep 26 2007, 17:30) *
Will explain in more detail what I mean:
Soft playlist: a text file with on each line the crucial info to identify a song: Title Album Artist ...
Hard playlist: playlist in Foobar with 'hard' links.
Then use the soft playlist to create a hard playlist from the Foobar media library.
So this basically comes down to fuzzy querying of the Foobar media library for each line of the Soft playlist.

I hope this is clear?

Does this already exist and if not is anyone interested in programming a plugin to do it in Foobar?
I think this can be very handy for transferring playlists from other people or other programs to Foobar.
I would use it to transfer the playlists I make on my iPod to Foobar using the function in iTunes (which i only use for iPod management wink.gif) that copies the playlist to the clipboard.


The concept is quite interesting and i think we can use python or some other language to make a simple program that does the job. If you have all the information required to reconstruct the directory (e.g. If you're using Genre\Artist\year- Album\tracknumber- title, you need at least the genre, artist, album, year, tracknumber and title). If you can create a text file containing all these data delimited by a comma or a tab or something, it's then trivial to convert it to the path.
Go to the top of the page
+Quote Post
JohanDeBock
post Sep 26 2007, 22:56
Post #3





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



QUOTE (kanak @ Sep 26 2007, 23:49) *
The concept is quite interesting and i think we can use python or some other language to make a simple program that does the job. If you have all the information required to reconstruct the directory (e.g. If you're using Genre\Artist\year- Album\tracknumber- title, you need at least the genre, artist, album, year, tracknumber and title). If you can create a text file containing all these data delimited by a comma or a tab or something, it's then trivial to convert it to the path.

Well that is more or less what I mean, but it would be nice if it was integrated in Foobar using the media library.

This post has been edited by JohanDeBock: Sep 26 2007, 22:57


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
odyssey
post Sep 26 2007, 23:03
Post #4





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



I've been editing my library quite a lot lately, and often I find my created playlists useless because of this. Not only renaming files, but also often replacing lossy files with new lossless files. I've been thinking about this for a long time, but I have no idea how it would translate into a userinterface and how it would work behind that.

I like the idea smile.gif


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
JohanDeBock
post Sep 26 2007, 23:10
Post #5





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



QUOTE (odyssey @ Sep 27 2007, 00:03) *
I've been editing my library quite a lot lately, and often I find my created playlists useless because of this. Not only renaming files, but also often replacing lossy files with new lossless files.

Indeed, I also had these problems.

QUOTE (odyssey @ Sep 27 2007, 00:03) *
I've been thinking about this for a long time, but I have no idea how it would translate into a userinterface and how it would work behind that.

-For the importing from other programs you could use a simple "import soft playlist" menu option and then let the user select the soft playlist, a text file.
-For the dead playlist items you could use a "try to resolve dead items" menu option.

This post has been edited by JohanDeBock: Sep 26 2007, 23:10


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
foosion
post Sep 27 2007, 00:26
Post #6





Group: FB2K Moderator (Donating)
Posts: 4426
Joined: 24-February 03
Member No.: 5153



The XSPF playlist format includes this functionality to some extent; the concept is called "fuzzy names" there. I just wanted to point that out before you try to invent something new.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
JohanDeBock
post Sep 27 2007, 00:38
Post #7





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



QUOTE (foosion @ Sep 27 2007, 01:26) *
The XSPF playlist format includes this functionality to some extent; the concept is called "fuzzy names" there. I just wanted to point that out before you try to invent something new.


It's not the playlist format that is important with what I'm trying suggest but the algorithm that processes the soft playlist, that does a fuzzy lookup of the artist-album-track combination in the database.
But XSPF can of course be used as the standard soft play list format and then use for example a simple perl to convert the iTunes format to this standard format.

This post has been edited by JohanDeBock: Sep 27 2007, 00:56


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
JohanDeBock
post Sep 27 2007, 17:21
Post #8





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



If nobody is interested in implementing this I will try it myself when I have time and when I know enough about Foobar plugin programming.
(I secretly hope foosion is interested enough so that he will try implementing it wink.gif)
I think the Database Search SDK is probably a good start?
The "The Fnid parshe mode" or a more general version can maybe be used for the fuzzy lookup.
http://foosion.foobar2000.org/help/0.9/foo...ter_fnid_parshe
Ideal would be a lookup that starts from the exact string and the progressively allow more distorted version from it until one song has been found in the database, with a threshold on the total amount of distortion allowed.
Or fastest probably is do a fuzzy lookup with the worst distortion allowed and then sort all the results according to distortion and then take the least distorted result.
When I look at the mean database query times of foo_dbsearch the time needed to convert such a soft playlist or to resolve dead playlist entries should be acceptable, at least faster than doing it manually biggrin.gif

I really think this would set apart Foobar from any other player.
The inability to do this has bugged me in every player I've ever tried.

This post has been edited by JohanDeBock: Sep 27 2007, 18:12


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
nightfishing
post Oct 1 2007, 19:38
Post #9





Group: Members
Posts: 292
Joined: 4-February 06
Member No.: 27549



I am very interested in this idea (although not nearly versed enough to attack the component myself).

It may be worth talking to Florian who develops the Audioscrobbler component.

His component pulls playlists from LastFM and "translates" them into "hard" playlists in Foobar and it would seem that somewhere in that process lies the solution to the fuzzy to hard conversion.

Just an idea.
Go to the top of the page
+Quote Post
watsonalgas
post Oct 1 2007, 21:03
Post #10





Group: Members
Posts: 6
Joined: 6-November 06
Member No.: 37229



I'm probably way off, but does this have anything to do with what you are looking for? :

http://eolindel.free.fr/foobar0.9/autoplaylist.php
Go to the top of the page
+Quote Post
JohanDeBock
post Oct 1 2007, 21:10
Post #11





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



QUOTE (nightfishing @ Oct 1 2007, 20:38) *
I am very interested in this idea (although not nearly versed enough to attack the component myself).

It may be worth talking to Florian who develops the Audioscrobbler component.

His component pulls playlists from LastFM and "translates" them into "hard" playlists in Foobar and it would seem that somewhere in that process lies the solution to the fuzzy to hard conversion.

Just an idea.


Ah ok didn't know that, but indeed it should also contain a soft -> hard conversion based on the database.
Will check it out.

QUOTE (watsonalgas @ Oct 1 2007, 22:03) *
I'm probably way off, but does this have anything to do with what you are looking for? :

http://eolindel.free.fr/foobar0.9/autoplaylist.php


No, it's something different wink.gif


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
kanak
post Oct 1 2007, 22:08
Post #12





Group: Members
Posts: 1190
Joined: 12-January 06
From: Cambridge, MA
Member No.: 27052



I just realized that Chronial's component (foo_scrobblecharts) does something of the sort while parsing last.fm table into playlist. A lot of code could be reused smile.gif
Go to the top of the page
+Quote Post
JohanDeBock
post Oct 1 2007, 23:43
Post #13





Group: Developer
Posts: 250
Joined: 23-March 05
Member No.: 20866



QUOTE (kanak @ Oct 1 2007, 23:08) *
I just realized that Chronial's component (foo_scrobblecharts) does something of the sort while parsing last.fm table into playlist. A lot of code could be reused smile.gif


Indeed also uses same concept. It is just a question of letting it work on a standard soft playlist format like XSPF. Then you can use other conversion script for for example translating the 'clipboard playlist' in iTunes to XPSF. The we finally have a fast way to translate playlists made on an ipod to a playlist based on the foobar database.
Now we still have to find a developer wink.gif

This post has been edited by JohanDeBock: Oct 1 2007, 23:50


--------------------
foo_softplaylists: http://tiny.cc/kh9m9
Go to the top of the page
+Quote Post
Mikus Rakis
post Oct 1 2007, 23:45
Post #14





Group: Members
Posts: 35
Joined: 24-October 06
Member No.: 36732



wery time consuming task would be to use foo_random.dll and create playlist with entries lke:
(artist HAS meat) AND (album HAS attitude) AND (TRACKNUMBER IS 1)
(artist HAS meat) AND (album HAS attitude) AND (TRACKNUMBER IS 2)
(artist HAS meat) AND (album HAS attitude) AND (TRACKNUMBER IS 3)
...
Go to the top of the page
+Quote Post
nightfishing
post Oct 2 2007, 00:01
Post #15





Group: Members
Posts: 292
Joined: 4-February 06
Member No.: 27549



Yeah, sorry, I had Florian's and Chronial's LastFM components confused.

Right idea, wrong plugin :-(
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: 1st September 2014 - 15:19