Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2021-03-31 Thread bobcoupee


callesoroe wrote: 
> Just curious. What can this plugin do, that you not already can do with
> Don't stop the music/Last mix ???
> 
> This works exellent also with Tidal.

Hi

I often use the "Random Mix" option but it can create a quite jarring
song mix. I thought LMSMusly might create more suitable mixes from my
personal collection.



bobcoupee's Profile: http://forums.slimdevices.com/member.php?userid=70646
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2021-03-30 Thread callesoroe


bobcoupee wrote: 
> Hi
> 
> Just wondering if anyone has got LMSmusly working on an install of LMS
> created via picorePlayer?
> 
> If so was it fairly easy?
> 
> Thanks.

Just curious. What can this plugin do, that you not already can do with
Don't stop the music/Last mix ???

This works exellent also with Tidal.



Callesoroe
Living room: Transporter, Preamp Gato PRD-3S NPM, Martin Logan Vista
speakers, Power-AMP Gato DPA-4004 (biamp setup).
Kitchen: Transporter - Prodipe Pro 5 active bi-amp speakers. Bedroom:
Receiver+UE boombox, Kids: Receiver+Active speakers, Summerhouse: Touch
- Bencmark DAC1, JBL LSR305 active speakers , TIDAL HIFI flac
streaming.
http://www.last.fm/user/callesoroe

callesoroe's Profile: http://forums.slimdevices.com/member.php?userid=22693
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2021-03-22 Thread Roland0


bobcoupee wrote: 
> Just wondering if anyone has got LMSmusly working on an install of LMS
> created via picorePlayer?
> 
As I'm not familiar with picorePlayer, I can't really answer that. The
main task probably would be to get python and ffmpeg installed on it.
However, note that LMSmusly doesn't have to be installed on the same
computer as LMS itself.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | DB Optimizer | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2021-03-21 Thread bobcoupee


Hi

Just wondering if anyone has got LMSmusly working on an install of LMS
created via picorePlayer?

If so was it fairly easy?

Thanks.



bobcoupee's Profile: http://forums.slimdevices.com/member.php?userid=70646
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-10-18 Thread Roland0


afriend wrote: 
> Just to be sure: did you mean 
> without deleting missing files from the -database- (= not cleaning the
> databse) 
> or 
> without deleting them (= not deleting the actual -files-)?
> 
both
> 
> in case you meant the first, would Musly recognize invalid files and
> exclude them from its suggestions? 
> 
Musly won't, but LMS will

> 
> And wouldn't the database get cluttered over time?
> 
Not an issue unless you have tens of thousands of dead entries in the
DB.

> 
> BTW how satisfied are you with the suggestions? 
> 
fairly, depends on the music type. good with some, strange tangents with
others.
I'd suggest checking out the integration with extgui4lms, as you can
interactively find similar tracks just by clicking on any track in the
playlist
31895
> 
> And is Musly the only -local- option or is there a -locally- hosted
> alternative that works just as well and is maybe easier to setup?
> 
AFAIK, MusicIP is the only alternative (the motivation to write LMS
Musly and LMS Essentia was actually to replace it for me)


+---+
|Filename: eg-mus.png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31895|
+---+


'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-10-18 Thread afriend


Thank you for your reply.

Roland0 wrote: 
> The latter (without deleting missing files)
Just to be sure: did you mean 
without deleting missing files from the -database- (= not cleaning the
databse) 
or 
without deleting them (= not deleting the actual -files-)?

In case you meant the first, would Musly recognize invalid files and
exclude them from its suggestions? And wouldn't the database get
cluttered over time?

BTW how satisfied are you with the suggestions? And is Musly the only
-local- option or is there a -locally- hosted alternative that works
just as well and is maybe easier to setup?

Sorry for all the questions. I'm totaly new to this but I like the idea
of it all very much.



afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-10-17 Thread Roland0


afriend wrote: 
> Does anyone here have Musly running on a mac (10.15)? Is it possible?
> 
Most likely, but you'll have to build libmusly yourself. See the
homepage for some info.

> 
> Every now and then I correct some tracks' artist, album or track names
> which in turn changes the path of these music files.
> I suppose I'd have to redo the analysis then
> 
Yes

> 
> Does Musly delete the whole database and create a new one from scratch -
> or does it merely update the existing database, skipping existing
> already analyzed tracks, deleting missing ones, and only analyzing new
> ones?
> 
The latter (without deleting missing files), so only new files will be
analyzed.
Also, libmusly.db is a SQLite database, so the path(s) could be modified
in the DB without re-running the analysis.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-10-17 Thread afriend


Does anyone here have Musly running on a mac (10.15)? Is it possible?


Every now and then I correct some tracks' artist, album or track names
which in turn changes the path of these music files.

I suppose I'd have to redo the analysis then but what happens when I
do?

Does Musly delete the whole database and create a new one from scratch -
or does it merely update the existing database, skipping existing
already analyzed tracks, deleting missing ones, and only analyzing new
ones?

Thank you for your replies.



afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-08-10 Thread NFLnut


How is this different from Spicefly Sugarcube? Doesn't it do the same
thing?



NFLnut's Profile: http://forums.slimdevices.com/member.php?userid=13180
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-07-26 Thread cpd73


Roland0 wrote: 
> You may have noticed that all tracks are added 
> (musly_jukebox_addtracks), the sample is only used for
> musly_jukebox_setmusicstyle. This wasn't my idea, I implemented it like
> this because that's how the "official" CLI client works. As that program
> was written by the same person who wrote the library (and the original
> Master thesis ("Mirage - High-Performance Music Similarity Computation
> and Automatic Playlist Generation") it descended from), I assumed that
> he knew what he was doing ;-)

...and certainly *much* more than I do :)

Roland0 wrote: 
> That being said, you could of course experiment with larger values of
> MUSLY_MUSTYLENUMTRACKS, maybe with today's hardware, this isn't the
> optimal value anymore. If you do that, I'd certainly be interested in
> the results.

>From my -very- limited running this morning, the 1000 tracks (out of
~20k) "setmusicstyle" seems fine to me. My main use case is just to
provide random, but related, tracks whilst I work. So, for me, this DSTM
mixer appears to be doing its job. And the analysis is massively faster
than MusicIP - plus being opensource is a huge plus for me.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
2. Open browser's developer tools 3. Open console tab in developer tools
4. REQ/RESP messages sent to/from LMS will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-07-25 Thread Roland0


cpd73 wrote: 
> I originally thought all tacks should be used. Now I wonder if this will
> adversly affect the mixes...
You may have noticed that all tracks are added 
(musly_jukebox_addtracks), the sample is only used for
musly_jukebox_setmusicstyle. This wasn't my idea, I implemented it like
this because that's how the "official" CLI client works. As that program
was written by the same person who wrote the library (and the original
Master thesis ("Mirage - High-Performance Music Similarity Computation
and Automatic Playlist Generation") it descended from), I assumed that
he knew what he was doing ;-)
That being said, you could of course experiment with larger values of
MUSLY_MUSTYLENUMTRACKS, maybe with today's hardware, this isn't the
optimal value anymore. If you do that, I'd certainly be interested in
the results.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-07-25 Thread cpd73


Roland0 wrote: 
> First of all, I wrote this ~3 years ago, so I have to admit  I'm a bit
> hazy on the details.
> However, one thing I noticed was this modification in add_tracks
> 
> > 
Code:

  >   > 
  > # original code
  > if numtracks > MUSLY_MUSTYLENUMTRACKS:
  > _LOGGER.debug("add_tracks: using subset for setmusicstyle")
  > snumtracks = MUSLY_MUSTYLENUMTRACKS
  > sample = random.sample(range(numtracks), k=MUSLY_MUSTYLENUMTRACKS)
  > smtracks_type = (ctypes.POINTER(self.mtrack_type)) * MUSLY_MUSTYLENUMTRACKS
  > smtracks = smtracks_type()
  > i = 0
  > for s in sample:
  > #_LOGGER.debug("add_tracks: subset setmusicstyle: {}".format(s))
  > smtracks[i] = mtracks[s]
  > i += 1
  > else:
  > smtracks_type = mtracks_type
  > smtracks = mtracks
  > snumtracks = numtracks
  > 
  > # NOT original code
  > smtracks_type = mtracks_type
  > smtracks = mtracks
  > snumtracks = numtracks
  > 
  > # original code continues
  > # int musly_jukebox_setmusicstyle (musly_jukebox * jukebox, musly_track **  
tracks, int  num_tracks
  > self.mus.musly_jukebox_setmusicstyle.argtypes = 
[ctypes.POINTER(MuslyJukebox), ctypes.POINTER(smtracks_type), ctypes.c_int ]
  > 

> > 
> 

D'oh That's it. Sorry. I originally thought all tacks should be
used, so removed the if part. And forgot to remove my mod when re-adding
the if/else. Strangely enough my jukebox file is now much smaller :o 
Thanks for this, and the original code! Now I wonder if this will
adversly affect the mixes...



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
2. Open browser's developer tools 3. Open console tab in developer tools
4. REQ/RESP messages sent to/from LMS will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-07-25 Thread Roland0


cpd73 wrote: 
> I've used your musly.py code to interface with musly, but added usage of
> python's concurrent features to speed up analysis. On my 5 year old i7
> laptop with an SSD card I can analyse ~20k in just over 1 hour - which
> is amazing compared to the ~1week for MusiIP (although that was not
> 24*7). Looking at the timing of the analysis, the last ~20minutes are
> taken by the call to setmusicstyle. This is not that bad when analysing
> all tracks, but setmusicstyle is called if more tracks are added - and
> takes ~20minutes again.
> 

First of all, I wrote this ~3 years ago, so I have to admit  I'm a bit
hazy on the details.
However, one thing I noticed was this modification in add_tracks


Code:


  # original code
  if numtracks > MUSLY_MUSTYLENUMTRACKS:
  _LOGGER.debug("add_tracks: using subset for setmusicstyle")
  snumtracks = MUSLY_MUSTYLENUMTRACKS
  sample = random.sample(range(numtracks), k=MUSLY_MUSTYLENUMTRACKS)
  smtracks_type = (ctypes.POINTER(self.mtrack_type)) * MUSLY_MUSTYLENUMTRACKS
  smtracks = smtracks_type()
  i = 0
  for s in sample:
  #_LOGGER.debug("add_tracks: subset setmusicstyle: {}".format(s))
  smtracks[i] = mtracks[s]
  i += 1
  else:
  smtracks_type = mtracks_type
  smtracks = mtracks
  snumtracks = numtracks
  
  # NOT original code
  smtracks_type = mtracks_type
  smtracks = mtracks
  snumtracks = numtracks
  
  # original code continues
  # int musly_jukebox_setmusicstyle (musly_jukebox * jukebox, musly_track **  
tracks, int  num_tracks
  self.mus.musly_jukebox_setmusicstyle.argtypes = 
[ctypes.POINTER(MuslyJukebox), ctypes.POINTER(smtracks_type), ctypes.c_int ]
  



which now always passes all tracks to setmusicstyle, instead of only a
sample if there are > MUSLY_MUSTYLENUMTRACKS tracks.
Not sure I understand the purpose of this modification - have you
noticed any issues with the sampling approach?

cpd73 wrote: 
> 
> Do you know of anyway to speed this call up? I tried re-compiling Musly
> with OpenMP but this made no difference.
> 
If only passing a sample instead of all tracks to it doesn't help,
probably not, as it is in libmusly itself.
However, I'll have a look if I can reproduce it on my system (IIRC, I've
never analysed that many tracks). Unfortunately, atm all fast-ish
systems I have are busy with other workloads - I'll post an update
later.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2020-07-24 Thread cpd73


Hi Roland. I've been playing with creating a Don't Stop The Music mixer
using Musly. For this I've create a python script to analyse files with
musly and provide a 'get similar tracks' API via Flask. I've used your
musly.py code to interface with musly, but added usage of python's
concurrent features to speed up analysis. On my 5 year old i7 laptop
with an SSD card I can analyse ~20k in just over 1 hour - which is
amazing compared to the ~1week for MusiIP (although that was not 24*7).
Looking at the timing of the analysis, the last ~20minutes are taken by
the call to setmusicstyle. This is not that bad when analysing all
tracks, but setmusicstyle is called if more tracks are added - and takes
~20minutes again. Do you know of anyway to speed this call up? I tried
re-compiling Musly with OpenMP but this made no difference.

I case you are interested, the code for the API server and DSTM mixer
are here:

https://github.com/CDrummond/musly-server
https://github.com/CDrummond/lms-muslymixer

...please be aware that I have not extensively tested this, and they're
probably no where near ready for prime time - but do seem to work OK in
my limited testing.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
2. Open browser's developer tools 3. Open console tab in developer tools
4. REQ/RESP messages sent to/from LMS will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-26 Thread Roland0

V0.1.0 has been released. In addition to various smaller improvements,
the main new features are options to control the similarity of the
tracks to be played, an option to avoid duplicate tracks, improved web
UI, and a JSON/RPC API.
This version includes all features originally planned for the
application, and seems to be quite stable.



SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-12 Thread bakker_be

Roland0 wrote: 
> Quite sure it does:
> > 
Code:

  >   > 
  > $ ./lmsmusly.py  --db-path ~/tmp dynamic -h
  > 
  > usage: lmsmusly.py dynamic [-h] --lms LMS [--lms-port LMS_PORT] --lms-player
  > LMS_PLAYER [--lms-notifications] [--read-jukebox]
  > [--numtracks NUMTRACKS]
  > [--seedtrack-index SEEDTRACK_INDEX]
  > [--no-duplicates [N]] [--webui]
  > [--webui-host WEBUI_HOST] [--webui-port WEBUI_PORT]
  > [--webui-logpath WEBUI_LOGPATH]
  > 
  > optional arguments:
  > -h, --helpshow this help message and exit
  > --lms LMS LMS server name
  > --lms-port LMS_PORT   LMS server port (default: 9000)
  > --lms-player LMS_PLAYER
  > LMS player ID. Format: 00:00:00:00:00:00
  > --lms-notifications   show notifications on player
  > --read-jukeboxread on-disk jukebox on startup
  > --numtracks NUMTRACKS
  > length of playlist (default: 10)
  > --seedtrack-index SEEDTRACK_INDEX
  > playlist index of track to use as seed (default: 0)
  > --no-duplicates [N]   Avoid repeating a track for the next N tracks
  > (default: 100)
  > --webui   provide a web-based user interface
  > --webui-host WEBUI_HOST
  > host name / IP address for WebUI (default: 0.0.0.0)
  > --webui-port WEBUI_PORT
  > port for WebUI (default: 8080)
  > --webui-logpath WEBUI_LOGPATH
  > logfile path for WebUI (default: /tmp)
  > 

> > 
Aha, it's dependent on playlist generation :) I hadn't really understood
it that way, sorry ...



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-12 Thread Roland0

OleHB wrote: 
> For my understanding it is necessary, that the music files are analysed.
> The analysed data is stored in a database. 
> 
Correct

> 
> Is it possible to save the analysed data in the tags (ID3-Tags) too? 
> 
Unlikely - even disregarding any size limits, there's no id3 frame type
designated for binary custom extensions.

> 
> In that way it is not necessary to analyse the music again after a
> re-installation (or something else)
> 
As long as you keep the database, there shouldn't be any issue with
preserving the analysis data. It's just a file, so you can easily back
it up.
The only obvious case for re-analysis would be if you move your music
files. However, since it's a sqlite3 DB, you could  use any sqlite3
client to update the paths.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-12 Thread Roland0

bakker_be wrote: 
> Are you certain? Even v0.0.4 doesn't seem to know about it :p
> 
Quite sure it does:

Code:


  $ ./lmsmusly.py  --db-path ~/tmp dynamic -h
  
  usage: lmsmusly.py dynamic [-h] --lms LMS [--lms-port LMS_PORT] --lms-player
  LMS_PLAYER [--lms-notifications] [--read-jukebox]
  [--numtracks NUMTRACKS]
  [--seedtrack-index SEEDTRACK_INDEX]
  [--no-duplicates [N]] [--webui]
  [--webui-host WEBUI_HOST] [--webui-port WEBUI_PORT]
  [--webui-logpath WEBUI_LOGPATH]
  
  optional arguments:
  -h, --helpshow this help message and exit
  --lms LMS LMS server name
  --lms-port LMS_PORT   LMS server port (default: 9000)
  --lms-player LMS_PLAYER
  LMS player ID. Format: 00:00:00:00:00:00
  --lms-notifications   show notifications on player
  --read-jukeboxread on-disk jukebox on startup
  --numtracks NUMTRACKS
  length of playlist (default: 10)
  --seedtrack-index SEEDTRACK_INDEX
  playlist index of track to use as seed (default: 0)
  --no-duplicates [N]   Avoid repeating a track for the next N tracks
  (default: 100)
  --webui   provide a web-based user interface
  --webui-host WEBUI_HOST
  host name / IP address for WebUI (default: 0.0.0.0)
  --webui-port WEBUI_PORT
  port for WebUI (default: 8080)
  --webui-logpath WEBUI_LOGPATH
  logfile path for WebUI (default: /tmp)
  




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-12 Thread Roland0

dermicha wrote: 
> 
> > 
Code:

  >   > 
  > DEBUG:__main__:static_playlist result id:   1 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/02 - You Know I'm No Good.flac
  > 

> > 
> 
The problem is the sim: nan part - this is the similarity score, and
it's supposed to be a number, but it's not (nan = not a number).
I'm not quite sure what's happening here - this score is calculated by
libmusly, so either there's already an bug when analyzing, or during the
calculation. 
Maybe libmusly cannot handle 24/96K tracks. Can you try the following:
- move the current database (lmsmusly.db) somewhere else (or use a
different DB path)
- analyse some non-24/96K tracks
- check if you get an output where the sim value is actually a number:

Code:


  DEBUG:__main__:static_playlist result id: 342 sim: 0.106720 file: 
/data/music/The Wrens - The Meadowlands/10 - Per Second Second.flac
  




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-12 Thread OleHB

For my understanding it is necessary, that the music files are analysed.
The analysed data is stored in a database. 
Is it possible to save the analysed data in the tags (ID3-Tags) too? 
In that way it is not necessary to analyse the music again after a
re-installation (or something else)

Thanks anyway for this great plugin!



OleHB's Profile: http://forums.slimdevices.com/member.php?userid=35873
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-12 Thread bakker_be

Roland0 wrote: 
> v0.0.3 includes a web interface (note this requires cherrypy to be
> installed - see homepage for specifics)

Are you certain? Even v0.0.4 doesn't seem to know about it :p

Code:


  bart@up-server:~/LMSmusly-0.0.4/src$ sudo ./lmsmusly.py -h
  usage: lmsmusly.py [-h] [-V] [--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}]
  --db-path DB_PATH [--pid-file PID_FILE]
  {analyze,static,dynamic,info,writejukebox} ...
  
  LMSmusly -- integrates musly into LMS
  
  LMSmusly v0.0.4.
  Copyright 2017 R.S.U. GPL v3. All rights reserved.
  https://www.nexus0.net/pub/sw/lmsmusly
  
  USAGE
  
  optional arguments:
  -h, --helpshow this help message and exit
  -V, --version show program's version number and exit
  --log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}
  set log level (default: INFO)
  --db-path DB_PATH Database path
  --pid-file PID_FILE   write PID to a file
  
  operation modes:
  {analyze,static,dynamic,info,writejukebox}
  analyze analyze music
  static  create static playlist
  dynamic serve dynamic playlist
  infoprint information
  writejukeboxcreate on-disk jukebox
  bart@up-server:~/LMSmusly-0.0.4/src$ cls
  No command 'cls' found, but there are 18 similar ones
  cls: command not found
  bart@up-server:~/LMSmusly-0.0.4/src$ sudo ./lmsmusly.py --db-path /mnt/music 
--webui
  usage: lmsmusly.py [-h] [-V] [--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}]
  --db-path DB_PATH [--pid-file PID_FILE]
  {analyze,static,dynamic,info,writejukebox} ...
  lmsmusly.py: error: unrecognized arguments: --webui
  bart@up-server:~/LMSmusly-0.0.4/src$
  




Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-11 Thread dermicha

Ok, I tried with jukebox and now it is only Amy Winehouse... :(


Code:

DEBUG:lmsmusly.libmusly.musly:get_tracks_db: 155943 rows
  DEBUG:lmsmusly.libmusly.musly:read_jukebox: jukebox path: 
/opt/musly-0.2/db/jukebox.bin
  INFO:lmsmusly.libmusly.musly:read_jukebox: musly_jukebox_fromfile: 155943 
tracks
  DEBUG:lmsmusly.libmusly.musly:get_jukebox_from_file: success
  DEBUG:__main__:init_muslytracksadded get_jukebox_from_file: numtracks 
155943/155943/155943
  INFO:__main__:static_playlist: building playlist based on track 
/mnt/MUSIC_2/MUSIC/MUSIK_2/LOSSLESS/D/Disconnect - Indivision (2011)/02 - Good 
Intentions (Part I).flac
  DEBUG:lmsmusly.libmusly.musly:get_similars: seedtrack = 
 numres=11
  DEBUG:__main__:static_playlist result id:   1 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/02 - You Know I'm No Good.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/02%20-%20You%20Know%20I%27m%20No%20Good.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 224
  DEBUG:__main__:static_playlist result id:   4 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/05 - Back To Black.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/05%20-%20Back%20To%20Black.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 202
  DEBUG:__main__:static_playlist result id:   7 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/08 - Wake Up Alone.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/08%20-%20Wake%20Up%20Alone.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 213
  DEBUG:__main__:static_playlist result id:   5 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/06 - Love Is A Losing Game.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/06%20-%20Love%20Is%20A%20Losing%20Game.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 220
  DEBUG:__main__:static_playlist result id:   8 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/09 - Some Unholy War.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/09%20-%20Some%20Unholy%20War.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 209
  DEBUG:__main__:static_playlist result id:   9 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/10 - He Can Only Hold Her.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/10%20-%20He%20Can%20Only%20Hold%20Her.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 214
  DEBUG:__main__:static_playlist result id:  10 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/11 - You Know I'm No Good.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/11%20-%20You%20Know%20I%27m%20No%20Good.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 222
  DEBUG:__main__:static_playlist result id:   6 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/07 - Tears Dry On Their Own.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/07%20-%20Tears%20Dry%20On%20Their%20Own.flac
  DEBUG:requests.packages.urllib3.connectionpool:"POST /jsonrpc.js HTTP/1.1" 
200 223
  DEBUG:__main__:static_playlist result id:   2 sim:  nan file: 
/mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy Winehouse - Back To Black 
(24,96000) (2007)/03 - Me & Mr Jones.flac
  DEBUG:lmsmusly.lms.player:playlist_add: url= 
file:///mnt/MUSIC_1/MUSIC/MUSIK/24BIT_LOSSLESS/A/Amy%20Winehouse%20-%20Back%20To%20Black%20%2824%2C96000%29%20%282007%29/03%20-%20Me%20%26%20Mr%20Jones.flac
  DEBUG:r

Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-10 Thread Roland0

v0.0.3 includes a web interface (note this requires cherrypy to be
installed - see homepage for specifics)



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-10 Thread Roland0

bakker_be wrote: 
> After 16 hours the analysis crashed, no specific message in the log ...
Well, that makes finding the issue tricky.
I'd suggest you analyze in batches. While I don't thing the size of the
collection is the issue (someone wrote he analyzed ~120K songs
successfully), it will narrow it down, and the tracks analyzed will be
in the DB.
One way to do it (adjust for your setup):

Code:


  find /mnt/music/ -type f|split -l 1 -d - tracks.
  for i in tracks.*; do ./lmsmusly.py analyze --db-path  "$i"; done
  




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-10 Thread bakker_be

After 16 hours the analysis crashed, no specific message in the log ...



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-08 Thread Roland0

bakker_be wrote: 
> 
> a way to limit the number of repetitions. Spicefly SugarCube, the best
> MusicIP implementation for LMS allows for several weighting options
> 
edit src/lmsmusly/utils/config.py:
MSKIPDUPS = True

> 
> it should use the last track of the current playlist in stead of the
> first. This would allow for a more "meandering" selection throughout the
> time music is played.
> 
edit src/lmsmusly/utils/config.py:
LMS_SEEDTRACKIDX = 9

Important: you'll have to start with a 10 track playlist for the latter
to work

Both of this options haven't really been tested, expect weird behavior



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-08 Thread bakker_be

First run, without jukebox 24342

Code:


  2018-01-08 21:07:44 __main__ INFO database: /mnt/music/lmsmusly.db 
  2018-01-08 21:07:44 requests.packages.urllib3.connectionpool INFO 
Starting new HTTP connection (1): 192.168.1.100
  2018-01-08 21:07:44 __main__ INFO Server info: 192.168.1.100:9000 
(7.9.1)
 - player: T550_SqueezeLite [54:ee:75:8a:f0:f9] @ 192.168.1.132:62641
  2018-01-08 21:17:15 lmsmusly.libmusly.musly INFO add_tracks: added 29361 
tracks
  2018-01-08 21:17:15 __main__ INFO static_playlist: building playlist 
based on track /mnt/music/Various/Long Version Dossier/4722-Medley (P. 
Machinery-Relax).mp3
  2018-01-08 21:17:15 requests.packages.urllib3.connectionpool INFO 
Resetting dropped connection: 192.168.1.100
  2018-01-08 21:17:18 __main__ INFO player 54:ee:75:8a:f0:f9: 25 tracks 
added
  


Jukebox creation

Code:


  2018-01-08 21:25:51 __main__ INFO database: /mnt/music/lmsmusly.db 
  2018-01-08 21:25:51 __main__ INFO reading database
  2018-01-08 21:35:20 lmsmusly.libmusly.musly INFO add_tracks: added 29361 
tracks
  2018-01-08 21:35:20 __main__ INFO created jukebox with 29361 tracks
  2018-01-08 21:35:20 __main__ INFO jukebox written to 
/mnt/music/jukebox.bin
  


Second run, using jukebox 24341

Code:


  2018-01-08 21:37:02 __main__ INFO database: /mnt/music/lmsmusly.db 
  2018-01-08 21:37:02 requests.packages.urllib3.connectionpool INFO 
Starting new HTTP connection (1): 192.168.1.100
  2018-01-08 21:37:02 __main__ INFO Server info: 192.168.1.100:9000 
(7.9.1)
 - player: T550_SqueezeLite [54:ee:75:8a:f0:f9] @ 192.168.1.132:62641
  2018-01-08 21:37:06 lmsmusly.libmusly.musly INFO read_jukebox: 
musly_jukebox_fromfile: 29361 tracks
  2018-01-08 21:37:06 __main__ INFO static_playlist: building playlist 
based on track /mnt/music/Various/Tour Of Duty/03-Born To Be Wild.flac
  2018-01-08 21:37:09 __main__ INFO player 54:ee:75:8a:f0:f9: 25 tracks 
added
  



With the exception of some repeated tracks the mixes seem OK. IMO this
now needs 2 major changes:
  
- a way to limit the number of repetitions. Spicefly SugarCube, the
  best MusicIP implementation for LMS allows for several weighting
  options24340
- it should use the last track of the current playlist in stead of the
  first. This would allow for a more "meandering" selection throughout
  the time music is played.
-


+---+
|Filename: LMS_MUSLY_001.txt|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=24342|
+---+


Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread bakker_be

Roland0 wrote: 
> I'd suggest either using nohup (which will keep the process running
> after you log out), or tmux / GNU screen (which let you detach /
> re-attach your terminal session).
> In the latter case, set the log to debug, pipe the output to tee and
> grep for INFO, then you can easily have debug to a file and info to the
> screen without any fiddling with the code.

Thanks for the nohup tip. In the meantime I'd discovered that indeed
just closing putty actually terminates the session, not leaving the
process running :p This saved me the time to search for a solution to
that. It's running against my "Various Artists" compilation folder now,
±30K tracks. Based on what I saw from a few earlier test runs, that
should take around 11.5 hours on my system, as it averages 1.4
seconds/track.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread Roland0

V0.0.2 has been released. It includes a new feature (persisting a
jukebox to the file system), which decreases startup times
significantly.
See the homepage for details on how to use it (section "writejukebox")

Speedup is quite dramatic (on a RPi3 with 3000 tracks 5s vs. 2m6s):

Code:


  $ time ./lmsmusly.py  --log-level INFO --db-path ~/tmp/soft/musly/ static 
--lms raspi3-64  --lms-player 00:11:22:33:44:55  20
  INFO:__main__:player 00:11:22:33:44:55: 20 tracks added
  real  2m6.303s
  
  $ time ./lmsmusly.py  --log-level INFO --db-path ~/tmp/soft/musly/ static 
--lms raspi3-64  --lms-player 00:11:22:33:44:55 --read-jukebox 20
  INFO:__main__:player 00:11:22:33:44:55: 20 tracks added
  real  0m5.064s
  




SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread Roland0

dermicha wrote: 
> 
> The creation of the mix needs 12 minutes to finish and it doesn´t
> matter what seed track I use, I get always "Amy Winehouse - Back to
> Black" flac24 tracks. Always the same album. If I jump to the last
> track, I get the same tracks again.
> 

Run the app with debug logging (--log-level DEBUG), and check the lines

Code:


  LMSWorker: seed track url= 
  


which is the song the next tracks will be based on.Is it always the same
track?

> 
> The static mix works without any problem, but it also needs about 12
> minutes to finish and uses 100% cpu on one core for this time.
See next post.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread Roland0

bakker_be wrote: 
> Since the machine which will host this, along with my LMS and other
> assorted duties in my home network, is running completely headless I'm
> doing everything through Putty from my laptop. This of course means that
> it's not always connected to my home network, so the session gets
> interrupted and I don't know wether it's finished, nor how long it took
> to run 

I'd suggest either using nohup (which will keep the process running
after you log out), or tmux / GNU screen (which let you detach /
re-attach your terminal session).
In the latter case, set the log to debug, pipe the output to tee and
grep for INFO, the you can easily have debug to a file and info to the
screen without any fiddling with the code.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread Roland0

srasher wrote: 
> 
> 1. Installation on the ODroid:
> Getting it to run the playlist generation on the Odroid wasn't possible
> for me with medium effort. python3-requests could only be installed on
> Ubuntu 14.04 (max2play's latest available version base for the U3) in a
> compatible version (> 2.4.2) by using PIP. That was somehow OK. After
> several minor issues, I reached a dead end due to some other command
> used inside lmsmusly.py only working with >= Python 3.5. Trying to
> install that beside the "default" 3.4 version on the Odroid lead to
> dependency issues in apt, so at some point I gave up.
> 
If you can tell me which command are only working with >= Python 3.5, I
can see if there's a workaround.
Meanwhile, I'd suggest building python 3.6 yourself, and install it into
/opt/python3.6. Should be simple, all the dependencies will already be
available (some -dev packages will be needed for the compilation).

> 
> Within those 20 songs (and I tried 5 or 6 times with always different
> seed tracks) it never had less than 5 songs from the same album as the
> seed track. The additional songs then most of the time had a majority of
> songs from the same artist. And then there always where one or two songs
> that were totally "off". 

Well, this goes to show that people have very different expectations.
For me, a playlist with tracks from the same artist / album is exactly
what I want.
My experience is that for some music the results are really very focused
(e.g. for some Pixies tracks, I get 70% Pixies, 10% Frank Black (singer
of the Pixies), 10% Breeders (band of bass player of the Pixies), 10%
very similar stuff), for some it's more varied (but still very similar,
e.g. for a classical track, I get classical, neo classical, minimal
classic, film scores, neo folk, post rock), and others are more varied
still (but still not really this dissimilar - e.g. industrial rock
instead of indie rock)
And yes, sometimes an "inappropiate" track comes up, but nothing really
that jarring (e.g a slow song, although the seed was fast - not sure how
much speed is taken into account).

However, it seems you want actually more variety. You could check if
lower-ranked results are more to your liking (they are sorted by how
similar they are), and it would be possibe to e.g. get 20 results, and
queue 11-20.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread srasher

bakker_be wrote: 
> Hey Seb,

Hi,

bakker_be wrote: 
> >   >   > 
  - Did you listen to the generated playlist?
  > > > 

Yes, I did. And apart from that, there was no material included that I
hadn't been very "aware" of, so I actually pretty much know how those
songs sound.

bakker_be wrote: 
> >   >   > 
  - Apart from the frequent repetion of the same artist/album, was it
  > fine in the sense that it sounded coherent, making abstraction of
  > the genre itself?
  > > > 

Mostly, yes. Apart from that one/two songs that don't fit at all. Maybe
one could argue that they sound more or less coherent in the sense that
for example the Black Metal style song was from the more "catchy" end of
that genre's spectrum. Still, it was about screeching/growling vocals
compared to "normal" Rock voice style vocals in the seed and most other
tracks. So, well, pretty OK with some abnormalities, I would say.

bakker_be wrote: 
> >   >   > 
  - are you at all happy with the way e.g. Spotify, Tidal, Roon
  > generate "dynamic" playlists? As what you seemingly want from
  > lmsmusly is exactly what's wrong with those IMO. They focus to hard
  > on genre and not how a song sounds. To me there's nothing wrong with
  > putting a good country song, some Creedence Clearwater Revival and
  > e.g. a track from Tesla's "Five Man Acoustical Jam" next to one
  > another, as they do _sound_ similar. This to me was the strength of
  > MusicIP: it went all over my collection, regardless of tagging, but
  > always acoustically coherent.
  > > > 

Not at all happy with those "dynamic" playlists (though I nowadays only
rarely try one of them after initial disappointment.
You're right, lmsmusly was/is a big hope for me to get to something
MusicIP-like when it comes to generating "automated/dynamic" playlists.
And I am not totally disappointed with it, I just think that something
about the way it mixes is not yet ready/right. I know that "true" random
looks less random to humans than "controlled" random. Still the
"partitioning" of the generated playlist was odd in my view.

To be honest, my real dream application is something else:
Based on some MusicIP/musly-like mixing, I would like to be able to
generate dynamic playlists that come close to a very good DJ, but for a
less "closed"/consistent audience. Meaning: going through a collection
of extremely big spectrum of music (I always refer to it as "from Nena
to Napalm Death") that my wife and I have collected, I would like to get
an "slowly oscillating style" type of mix. E.g. starting of with a Hard
Rock track, going over to Classic Rock/Rock'n'Roll after some tracks,
proceeding to Pop, coming over whatever iterations to even Death or
Black Metal. All with some "coherence" within each bunch of 4-5 tracks,
having slow/soft transitions.

MusicIP was relatively close, but seems to have its limits when it comes
to opening the tracks taken into account over all possible styles of the
collection. Plus, it doesn't do "soft transitions" in the sense I tried
to explain above in a very clever way in my opinion.

Hard task, I know, still I dream of getting there some day ;-)



"The only word I know is 'Grunt' - and I can't spell it" (R.I.P. D.A.)

srasher's Profile: http://forums.slimdevices.com/member.php?userid=6209
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread dermicha

I have a problem with the dynamic mix. My database contains 156000 flac
and flac24 tracks. LMS runs on a vm with four cores and 4 GB ram.

The creation of the mix needs 12 minutes to finish and it doesn´t
matter what seed track I use, I get always "Amy Winehouse - Back to
Black" flac24 tracks. Always the same album. If I jump to the last
track, I get the same tracks again.

The static mix works without any problem, but it also needs about 12
minutes to finish and uses 100% cpu on one core for this time.



2x Transporter, 4x Touch, 5x Radio, H/K Onyx (AirPlay-Bridge), Marantz
Consolette (AirPlay-Bridge), iPhone 6 (iPeng), iMac-5k (SqueezePlay)

dermicha's Profile: http://forums.slimdevices.com/member.php?userid=65820
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread bakker_be

srasher wrote: 
> ... It generates them, but the mix is rather strange. Within those 20
> songs (and I tried 5 or 6 times with always different seed tracks) it
> never had less than 5 songs from the same album as the seed track. The
> additional songs then most of the time had a majority of songs from the
> same artist. And then there always where one or two songs that were
> totally "off". Example: when starting a playlist with Alice Cooper, I
> got 14 Alice Cooper songs, 7 from the same album, one from The Pogues,
> one from AC/DC, one from Deep Purple, one from Aerosmith (that's all
> fine), one song from Cradle of Filth (Black Metal, totally off
> genre-wise) and one from Cindy Lauper (well, discussable ;-)). Similar
> mix results with other seed tracks.
> 
> While the Cradle of Filth song might be something like a glitch, maybe
> caused by the 30 seconds analysis time window or something, the general
> distribution of the tracks was not what I had expected. Statistics: I
> have analyzed ~25000 songs from 2200 albums, wide variety of genres from
> Pop to Death Metal. All of the seed tracks "main genre's" have at least
> 100 albums within the collection, mostly from not less than 20 artists
> ...
> Seb

Hey Seb,
Some questions:

- Did you listen to the generated playlist?
- Apart from the frequent repetion of the same artist/album, was it
  fine in the sense that it sounded coherent, making abstraction of the
  genre itself?
- are you at all happy with the way e.g. Spotify, Tidal, Roon generate
  "dynamic" playlists? As what you seemingly want from lmsmusly is
  exactly what's wrong with those IMO. They focus to hard on genre and
  not how a song sounds. To me there's nothing wrong with putting a good
  country song, some Creedence Clearwater Revival and e.g. a track from
  Tesla's "Five Man Acoustical Jam" next to one another, as they do
  _sound_ similar. This to me was the strength of MusicIP: it went all
  over my collection, regardless of tagging, but always acoustically
  coherent.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread bakker_be

Since the machine which will host this, along with my LMS and other
assorted duties in my home network, is running completely headless I'm
doing everything through Putty from my laptop. This of course means that
it's not always connected to my home network, so the session gets
interrupted and I don't know wether it's finished, nor how long it took
to run :p To alleviate these points I've done 2 things:
  
- I tell lmsmusly.py to store the DB in the root of my music
  directory. If it exceeds the initial 7KB of creation, the process has
  run :p
- I've modified the logging.basicConfig to write the log to the same
  location.
- 
  
Since this is the very first time I'm modifying anything Python, it's
not really what I'd like, but it does the job.

Code:


  logging.basicConfig(level=args.log_level,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
filename= config.MUSLY_DBPATH + '/' + 
time.strftime('%Y%m%d%H%M%S') + '_lmsmusly.log',
filemode='w')
  


Ideally I'd like to have it still send the defined level to stdout,
while simultaneously writing a complete DEBUG log to the file, but thats
quite a bit above my competences at the moment. I believe I should
create a second logging instance to achieve this, which should then take
its level from the command arguments, while this one gets set to DEBUG
statically, but I'm afraid I don't understand Python well enough as yet
to see the ramifications of this approach.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread srasher

srasher wrote: 
> Then lmsmusly.py works from the command line. Great!
> 
> Next step will be to include it into LMS, will try this tomorrow.
> 
> Cheers,
> Seb

Well, I got mixed results for that:

1. Installation on the ODroid:
Getting it to run the playlist generation on the Odroid wasn't possible
for me with medium effort. python3-requests could only be installed on
Ubuntu 14.04 (max2play's latest available version base for the U3) in a
compatible version (> 2.4.2) by using PIP. That was somehow OK. After
several minor issues, I reached a dead end due to some other command
used inside lmsmusly.py only working with >= Python 3.5. Trying to
install that beside the "default" 3.4 version on the Odroid lead to
dependency issues in apt, so at some point I gave up.

2. Generated playlist contents:
My next try was to let lmsmusly.py run on the x86_64 machine. Not a
viable solution for everyday use but OK for trials in the beginning or
for the "Party only" use case. Well, it doesn't show exactly the results
that I had hoped for. First it took rather minutes than seconds to
generate a 20 song static playlist addition based on the first song of
the current playlist (one of the examples on the LMSmusly web page). It
generates them, but the mix is rather strange. Within those 20 songs
(and I tried 5 or 6 times with always different seed tracks) it never
had less than 5 songs from the same album as the seed track. The
additional songs then most of the time had a majority of songs from the
same artist. And then there always where one or two songs that were
totally "off". Example: when starting a playlist with Alice Cooper, I
got 14 Alice Cooper songs, 7 from the same album, one from The Pogues,
one from AC/DC, one from Deep Purple, one from Aerosmith (that's all
fine), one song from Cradle of Filth (Black Metal, totally off
genre-wise) and one from Cindy Lauper (well, discussable ;-)). Similar
mix results with other seed tracks.

While the Cradle of Filth song might be something like a glitch, maybe
caused by the 30 seconds analysis time window or something, the general
distribution of the tracks was not what I had expected. Statistics: I
have analyzed ~25000 songs from 2200 albums, wide variety of genres from
Pop to Death Metal. All of the seed tracks "main genre's" have at least
100 albums within the collection, mostly from not less than 20 artists.

I know that the generation isn't based on metadata at all, still the
genre and artist distribution is something I would look at to judge the
"quality" of the mix ;-)

Maybe something went strange in my analysis of the tracks (left
everything at default in the related config.py).

I think it is a very interesting tool, especially given the hassle that
MusicIP usage nowadays generates. Will do more trials soon.

Thanks for your efforts anyway, Roland! Much appreciated.

Cheers,
Seb



"The only word I know is 'Grunt' - and I can't spell it" (R.I.P. D.A.)

srasher's Profile: http://forums.slimdevices.com/member.php?userid=6209
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-07 Thread bakker_be

OK, thanks. I'll try a smaller batch before relaunching the whole
enchillada and be patient for it to complete then :p



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-06 Thread Roland0

bakker_be wrote: 
> Hmmm, something seems wrong at my end.
> > 
Code:

  >   > 
  > bart@up-server:~/LMSmusly-0.0.1/src$ ./lmsmusly.py --db-path 
/home/bart/musicip analyze /mnt/music/
  > INFO:__main__:database: /home/bart/musicip/lmsmusly.db
  > DEBUG:lmsmusly.libmusly.musly:musly init done
  > DEBUG:__main__:analyze: input: /mnt/music/ rep: None
  > DEBUG:lmsmusly.utils.tools:get_files_dir: 119591 files from /mnt/music/
  > INFO:lmsmusly.libmusly.musly:analyze_files: 119591 files to analyze
  > DEBUG:lmsmusly.libmusly.musly:file #0: /mnt/music/John Legend/Love In The 
Future/12-Wanna Be Loved.flac
  > DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: 
/mnt/music/John Legend/Love In The Future/12-Wanna Be Loved.flac
  > 

> > 
> It keeps on going like this. 
> 
Looks fine to me, this is just some debug output.
You can switch it off with --log-level INFO (which should be the default
anyway - I'll change that)

> 
> The lmsmusly.db is created where I tell it to be, so it's not a write
> permission issue. When I look at it with an SQLite browser, it contains
> 3 empty tables: jukebox, sqlite_sequence and tracks, as well as related
> indices.
The database only gets populated after the complete analysis is done.
I'd suggest you start with a smaller number of tracks and check if it
works.
It'll be interesting to see how well it scales to that large a number of
tracks (I've only tested with ~3000), especially wrt startup time
(however, the next version will hopefully include a feature which will
speed this up significantly)



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-06 Thread bakker_be

Hmmm, something seems wrong at my end. Probably something I've not done
correctly or misunderstood ;)
I'm getting this:

Code:


  bart@up-server:~/LMSmusly-0.0.1/src$ ./lmsmusly.py --db-path 
/home/bart/musicip analyze /mnt/music/
  INFO:__main__:database: /home/bart/musicip/lmsmusly.db
  DEBUG:lmsmusly.libmusly.musly:musly init done
  DEBUG:__main__:analyze: input: /mnt/music/ rep: None
  DEBUG:lmsmusly.utils.tools:get_files_dir: 119591 files from /mnt/music/
  INFO:lmsmusly.libmusly.musly:analyze_files: 119591 files to analyze
  DEBUG:lmsmusly.libmusly.musly:file #0: /mnt/music/John Legend/Love In The 
Future/12-Wanna Be Loved.flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: /mnt/music/John 
Legend/Love In The Future/12-Wanna Be Loved.flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: mtrack = 

  DEBUG:lmsmusly.libmusly.musly:file #1: /mnt/music/John Legend/Love In The 
Future/01-Love In The Future (Intro).flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: /mnt/music/John 
Legend/Love In The Future/01-Love In The Future (Intro).flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: mtrack = 

  DEBUG:lmsmusly.libmusly.musly:file #2: /mnt/music/John Legend/Love In The 
Future/10-What If I Told You (Interlude).flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: /mnt/music/John 
Legend/Love In The Future/10-What If I Told You (Interlude).flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: mtrack = 

  DEBUG:lmsmusly.libmusly.musly:file #3: /mnt/music/John Legend/Love In The 
Future/18-Bridge Over Troubled Water (Li.flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: /mnt/music/John 
Legend/Love In The Future/18-Bridge Over Troubled Water (Li.flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: mtrack = 

  DEBUG:lmsmusly.libmusly.musly:file #4: /mnt/music/John Legend/Love In The 
Future/15-Asylum.flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: /mnt/music/John 
Legend/Love In The Future/15-Asylum.flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: mtrack = 

  DEBUG:lmsmusly.libmusly.musly:file #5: /mnt/music/John Legend/Love In The 
Future/20-All Of Me (Live).flac
  DEBUG:lmsmusly.libmusly.musly:analyze_files: not found in DB: /mnt/music/John 
Legend/Love In The Future/20-All Of Me (Live).flac
  


It keeps on going like this. The lmsmusly.db is created where I tell it
to be, so it's not a write permission issue. When I look at it with an
SQLite browser, it contains 3 empty tables: jukebox, sqlite_sequence and
tracks, as well as related indices.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-06 Thread Roland0

srasher wrote: 
> 
> Initially I just left the libs where they were installed by "sudo make
> install" after compilation, which was "/usr/local/lib".
> 
This is the root cause of all subsequent issues - cmake needs to already
configure for the correct final destination (in order to set the correct
rpath for the libs).
Add the following to the beginning of musly's CMakeLists.txt if you
build from the shell (if Eigen3 isn't in /tmp, adjust the path):

Code:


  add_definitions(-DMUSLY_VERSION="${MUSLY_VERSION}")
  # start additions
  SET(CMAKE_INSTALL_PREFIX "/opt/musly-0.2")
  SET(CMAKE_BUILD_TYPE "Release")
  SET(CMAKE_SKIP_INSTALL_RPATH  FALSE)
  SET(CMAKE_SKIP_RPATH  FALSE)
  SET(EIGEN3_INCLUDE_DIR "/tmp/eigen-eigen-5a0156e40feb/")
  
  SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
  SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) 
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
  # end additions
  



srasher wrote: 
> 
> After that I got the same error for "libmusly_resample.so", although it
> was also put into the directory mentioned above.
> 
python's library loader cannot change the runtime linker path - while
the library to load (libmusly.so ) can be anywhere, any dependencies (
in this case, libmusly_resample.so) have to be either in the standard 
runtime linker path, or in the rpath specified when building
libmusly,so

srasher wrote: 
> 
> and latter grep for "libmusly_resample.so" in that log file found that
> neither "/usr/local/lib" nor "/opt/musly-0.2/lib" are used to search for
> that lib. So as a dirty solution I put it into "/usr/lib".
> 
Check if your runtime linker path  includes /usr/local/lib (files
/etc/ld.so.conf and/or /etc/ld.so.conf.d/). However, if libmusly.so is
built as described above, this shouldn't be necessary.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-06 Thread callesoroe

schoeppi wrote: 
> > Am 02.01.2018 um 00:31 schrieb Roland0  (DOT) forums.slimdevices.com>:
> > LMSmusly creates playlists / mixes based on track similarity -
> > basically, you point it to a song, and it will queue up songs similar
> to
> > it (comparable to MusicIP).
> 
> Cool addon for LMS!
> 
> Allthough I do not think that it will be possible, it would be great to
> have such a functionality for online services like Spotify or Deezer. Do
> you see any chance for this?
> 
> Ciao,
> 
> Schoepp

The LastMix plugin does this. Works fine with Tidal. I Think it works
with Spotty too(as Michael Herger has developed it). I even think it
works with Deezer too.



Callesoroe
Living room: Transporter, Tact RCS 2.2X digital preamp, Martin Logan
Vista speakers, AMPS(Icepower): Acoustic Reality Ear Enigma
PLUS(PANELS), Acoustic Reality Ear TWO MKII(Bas)
Kitchen: Receiver - S.M.S.L DAC, Prodipe Pro 5 active bi-amp speakers.
Bedroom: Receiver+UE boombox, Kids: Receiver+Active speakers, Office:
Transporter, JBL LSR305 active speakers , TIDAL HIFI flac streaming.
http://www.last.fm/user/callesoroe

callesoroe's Profile: http://forums.slimdevices.com/member.php?userid=22693
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-05 Thread srasher

Some more information that might be helpful for others: after analyzing
a portion of my collection on the Ubuntu x86_64 machine, I proceeded to
installing libmusly and lmsmusly on my server, which is an Odroid U3
running max2play.

I used the compilation from source for libmusly (because it's a 32-bit
machine) which was pretty straightforward (the libmusly source code
README contains instructions for necessary dependencies).
Initially I just left the libs where they were installed by "sudo make
install" after compilation, which was "/usr/local/lib".

I then chose to use the source archive for lmsmusly.

First error on running lmsmusly.py was that it couldn't find libmusly.so
and libmusly_resample.so.

A recursive grep on the src sub directory leads to the following line:


Code:

./lmsmusly/utils/config.py:MUSLY_LIB = "/opt/musly-0.2/lib/libmusly.so"



So one can either change that variable value or put the lib into that
directory (as instructed on Roland's page). I chose the second option.

After that I got the same error for "libmusly_resample.so", although it
was also put into the directory mentioned above.

An run of


Code:

strace -o strace.log ./lmsmusly.py info



and latter grep for "libmusly_resample.so" in that log file found that
neither "/usr/local/lib" nor "/opt/musly-0.2/lib" are used to search for
that lib. So as a dirty solution I put it into "/usr/lib".

After that I had to install python-requests via


Code:

sudo apt install python3-requests



Then lmsmusly.py works from the command line. Great!

Next step will be to include it into LMS, will try this tomorrow.

Cheers,
Seb



"The only word I know is 'Grunt' - and I can't spell it" (R.I.P. D.A.)

srasher's Profile: http://forums.slimdevices.com/member.php?userid=6209
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-03 Thread Roland0

srasher wrote: 
> First one was also right direction but didn't help immediately, the
> sys.path was having lots of paths but none similar to your site-packages
> path and I struggled,
It seems Debian has some 'non-standard python specifics'
(https://wiki.debian.org/Python), so maybe the modules have to be in
/usr/local/lib/pythonX.Y/dist-packages
Check the output of

Code:

python3 -c "import site; print(site.getsitepackages())"



(or just continue using the source package - doesn't really make any
difference wrt functionality)



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-03 Thread srasher

Roland0 wrote: 
> The built distribution is for python 3.6, not 3.5. While lmsmusly should
> run with older python 3 versions, the module install paths are
> different, so you'll have to move the 2 folders in the site-packages
> folder to the correct path, probably from
> /usr/lib64/python3.6/site-packages to
> /usr/lib64/python3.5/site-packages
> Check with
> > 
Code:

  >   > 
  > [user:~] $ python3
  > Python 3.6.3 (default, Dec 16 2017, 20:59:34) 
  > [GCC 7.2.0] on linux
  > >>> import sys
  > >>> print("\n".join( sys.path))
  > 

> > 
> 
> Check out 'this ppa'
> (https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-3)

Thanks a lot, the latter tip helped! First one was also right direction
but didn't help immediately, the sys.path was having lots of paths but
none similar to your site-packages path and I struggled, so I tried the
other method and it works. Currently analyzing. On the weekend I will
have time to try it on the actual server.

Cheers,
Seb



"The only word I know is 'Grunt' - and I can't spell it" (R.I.P. D.A.)

srasher's Profile: http://forums.slimdevices.com/member.php?userid=6209
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-03 Thread Roland0

schoeppi wrote: 
> Allthough I do not think that it will be possible, it would be great to
> have such a functionality for online services like Spotify or Deezer. Do
> you see any chance for this?
> 
None at all - the tracks have to be analyzed, which requires access to
the audio data.
However, I would have thought that most online services already include
a similar functionality (after all, Spotify bought Echo Nest (RIP) for
exactly this - which lead to the SmartMix plugin's demise, which was one
of the reasons for writing this application)



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-03 Thread Roland0

srasher wrote: 
> It's an x86_64 machine running Ubuntu 16.04 LTS, AVX is available in the
> CPU, python3.5 installed. I put libmusly files into the "/opt/musly..."
> location mentioned on your instruction page and extracted the tar
> archive of the pre-built LMSmusly package into the root dir (with sudo,
> of course).
> When I try to run
> lmsmusly.py -h
> it immediately throws an exception saying "libmusly.lmsmusly - lmsmusly
> is not a package".
> 
The built distribution is for python 3.6, not 3.5. While lmsmusly should
run with older python 3 versions, the module install paths are
different, so you'll have to move the 2 folders in the site-packages
folder to the correct path, probably from
/usr/lib64/python3.6/site-packages to
/usr/lib64/python3.5/site-packages
Check with

Code:


  [user:~] $ python3
  Python 3.6.3 (default, Dec 16 2017, 20:59:34) 
  [GCC 7.2.0] on linux
  >>> import sys
  >>> print("\n".join( sys.path))
  


> 
> PS: the OS anyway might be too outdated because when I tried to use the
> source distribution of LMSmusly, it threw an exception or errored out
> saying that libavcodec 5.7 isn't installed, which is correct because as
> far as I could see (maybe I have to look again), apt only gave me the
> option to install libavcodec 5.7 in my Ubuntu distribution...
Check out 'this ppa'
(https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-3)



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-03 Thread Christian Schoepplein
> Am 02.01.2018 um 00:31 schrieb Roland0 
> :
> LMSmusly creates playlists / mixes based on track similarity -
> basically, you point it to a song, and it will queue up songs similar to
> it (comparable to MusicIP).

Cool addon for LMS!

Allthough I do not think that it will be possible, it would be great to have 
such a functionality for online services like Spotify or Deezer. Do you see any 
chance for this?

Ciao,

  Schoepp


___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] LMSmusly - play similar music

2018-01-02 Thread srasher

Hi Roland,

thanks a lot for your efforts (also looking into the Essentia plugin)! I
tried to install the LMSmusly stuff, first on my desktop computer for
database analysis. It's an x86_64 machine running Ubuntu 16.04 LTS, AVX
is available in the CPU, python3.5 installed. I put libmusly files into
the "/opt/musly..." location mentioned on your instruction page and
extracted the tar archive of the pre-built LMSmusly package into the
root dir (with sudo, of course).

When I try to run

lmsmusly.py -h

it immediately throws an exception saying "libmusly.lmsmusly - lmsmusly
is not a package". Unfortunately I am not to familiar with the
python tool chain, so I might have missed something. Can you give any
hint on what's going wrong here?

Thanks a lot in advance!
Seb

PS: the OS anyway might be too outdated because when I tried to use the
source distribution of LMSmusly, it threw an exception or errored out
saying that libavcodec 5.7 isn't installed, which is correct because as
far as I could see (maybe I have to look again), apt only gave me the
option to install libavcodec 5.7 in my Ubuntu distribution...



"The only word I know is 'Grunt' - and I can't spell it" (R.I.P. D.A.)

srasher's Profile: http://forums.slimdevices.com/member.php?userid=6209
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins