VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    What exists out there, something that can randomly play MP3s from a folder (and optionally its sub-folder), maybe even multiple folders?
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  2. Member thecoalman's Avatar
    Join Date
    Feb 2004
    Location
    Pennsylvania
    Search PM
    PHP based?

    Code:
    <?php
    $list = array(); // Reinitiallize array for cleanliness
    $handle = fopen("list/playlist.txt","r"); // open the source file full of urls
    $i = 0;
    while (!feof($handle)) // As long as lines are coming in we do this
    {
    $temp=fgets($handle);
    $list[$i]=$temp;
    $i++;
    }
    shuffle($list);
    $z=0;
    fclose($handle);
    $handle=fopen("list/randomlist.m3u","w");
    while ($z < $i)
    {
    $temp=$list[$z];
    fputs($handle,$temp);
    $z++;
    }
    
    fclose($handle);
    ?>
    Can't take credit for it I grabbed it off the net somewhere, playlist.txt is a static list of URL's. It writes a temporary file called randomlist.m3u that is generated from that each time the page is loaded. Embed a player in some html code below the script and point it at randomlist.m3u

    I've haven't had the chance to get to it but have been meaning to just have it grab the directory contents instead of using a static list. [/code]
    Quote Quote  
  3. Member
    Join Date
    Jun 2004
    Location
    Victoria, Australia
    Search Comp PM
    Most "decent" player software (WinAmp, QMP, etc) has an "add folder tree to playlist" feature, as well as a simple "shuffle play" option.

    Trev
    Quote Quote  
  4. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Does QMP mean Quicktime?
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  5. Member thecoalman's Avatar
    Join Date
    Feb 2004
    Location
    Pennsylvania
    Search PM
    I was assuming you were aware of the shuffle option in most players....

    Very light option is Foobar : http://www.foobar2000.org/

    File>add directory

    Playback>shuufle tracks

    hit the play button.
    Quote Quote  
  6. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Some have it coalman, some don't. It may come as a surprise to you, but I've never had jukebox/player type software installed. I didn't want to start installing random stuff, I figured somebody here would know of something decent. And I was right!

    I never really had an environment where I'd want to use my computer as a music player until recently. I just listened in WMP, when I listened to music. Generally I listen to audio (usually not music) in an editor or NLE.

    That foobar was perfect. Thanks very much.
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  7. Member thecoalman's Avatar
    Join Date
    Feb 2004
    Location
    Pennsylvania
    Search PM
    WMP has a shuffle option too... :P
    Quote Quote  
  8. Disgustipated TooLFooL's Avatar
    Join Date
    Feb 2004
    Location
    Opium Den
    Search Comp PM
    well when you say 'randomly play files', do you need the ability to play any and all files that may be in a particular location, or is it feasable to create a playlist and use shuffle play?

    y'know, WMP actually has the ability to create 'auto playlists' where you set certain file properties, and it will play all the matching files it finds. if all you use is WMP anyway, try messing around with the auto playlists.. the only downside to this is the files always need to be added to WMP's library, but if you set it automatically monitor certain folders, it works pretty damn good!..
    I am just a worthless liar,
    I am just an imbecil
    Quote Quote  
  9. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Originally Posted by thecoalman
    WMP has a shuffle option too... :P
    I couldn't find it. I also don't like WMP that much, I don't trust it. Your Foobar software did precisely what I wanted, it was like it was made just for me.
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  10. Member
    Join Date
    Jun 2004
    Location
    Victoria, Australia
    Search Comp PM
    Originally Posted by lordsmurf
    Does QMP mean Quicktime?
    Sorry, Quintessential Media Player - sort of a WinAmp clone. I switched when WinAmp started to "bloat" with extra features
    It's available HERE

    Trev
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!