[ 
http://dev.sourcefabric.org/browse/LS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16780#action_16780
 ] 

Samuel Mimram commented on LS-542:
----------------------------------

Ok, so here you go. My test script pl2.liq is

#!../../liquidsoap/src/liquidsoap
%include "../../liquidsoap/scripts/pervasives.liq"
set("log.level",4)
set("log.file",false)
set("log.stdout",true)
source = playlist(id="src","~/music")
output.oss(fallible=true,source)

Notice that I have a fairly large number of files in this dir:

2011/06/29 15:39:14 [src:3] Playlist is a directory.
2011/06/29 15:39:14 [src:3] Successfully loaded a playlist of 3182 tracks.

I ran the target test2 in the following Makefile:

test2:
        while true; do $(MAKE) prep2; done

prep2:
        ./pl2.liq | grep Prepared >> pl2 &
        sleep 3
        killall pl2.liq

I get the following result:

$ cat pl2 | wc -l
298
$ cat pl2 | grep Shirley | wc -l
36

(I checked that I have only one file with "Shirley" in the title).

So, 36 / 298 = 12% is much much higher than random which should be around 1 / 
3182 = 0.03%. I think that this confirms that I often get the same song, no?

An interesting thing, this Shirley song is the first I get if I run the 
playlist in "normal" mode...

> randomize for playlists is not so random
> ----------------------------------------
>
>                 Key: LS-542
>                 URL: http://dev.sourcefabric.org/browse/LS-542
>             Project: Liquidsoap
>          Issue Type: Bug
>            Reporter: Samuel Mimram
>            Priority: Major
>
> I use "playlist(directory)" for testing, and by default the mode is 
> randomize. The starting song is "random", but I got many times the same song 
> as first song, too many times for me to believe in randomness (the directory 
> is my mp3 library which is fairly large...).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Savonet-devl mailing list
Savonet-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à