setting up "mp3 box" using mpg123Forum: Multimedia Topic: setting up "mp3 box" using mpg123 started by: ShiZzl3 Posted by ShiZzl3 on Feb. 26 2006,14:24
hi!i just installed DSL on a little maschine without any IDE devices, so its runnig from USB, booted from floppy disk. soundcard and network card plugged in, for the moment a graphic card is installed to, will be removed after configuration. Well, what i want to do now, is write a script to read pressed keys and control mpg123, in the way that the script reads all mp3s from a predefined folder, and when i press, lets say, the "P" key, it starts playing the first one, on key press "N" the next one in the directory. i searched a bit and also found something that worked on my main maschine, but it uses "screen" that is not avaible on DSL so i aks you, do you have any idea how this could be made?? i hope so :P Greetings ShiZzl3 ------------- PS: i'm not running X, if it is for any interest PS2: i'm german, so i apologize for my bad english :P Posted by cbagger01 on Feb. 27 2006,05:47
sudo suapt-get install screen Or maybe start up Synaptic and choose to install screen. Posted by Ruthje on Feb. 27 2006,11:36
I've made a screen.dsl you can find it under mydsl->wm_apps. It works for me. I'm using it also for a headless mp3-box. But I use it to control via ssh a program called mp3blaster. With screen I don't have to keep a session open. If you succeed to let your script work on dsl I'll be interessed.
Posted by ShiZzl3 on Feb. 27 2006,15:42
i finally gave up trying to find a solution with mpg123...it would be too much scripting work at all...although i managed to install screen,thx for the mydsl plugin!even if i didnt want to take it cause of my old maschine, i installed the mplayer.dsl and wrote a very simple script to create a playlist for it. mplayer itselfs includes everything i need like play/pause, skip and volume controls via keyboard. so i put this script into $PATH and are now able to search mp3s and play them or whole folders etc.
and yes..i found some very interestings frontends for mpg123 that looked quite the same than your mp3blaster, but the problem is that i want to use it headless, and without another maschine, so i want to control it without seeing any graphical output...thats why such a frontend doesnt work for me. thx for your help...i think i will install mp3blaster , too.....for later use maybe :P Greetz ShiZzl3 PS: dont wonder about the script, its not perfect at all...i started writing scripts in bash some days ago Posted by Ruthje on Feb. 28 2006,14:41
Ik think you can use mp3blaster without seeing anything. Just remember that "5" is play and "6" is next and ">" is volume up. But how do you create your playlist without seeing what you're doing? I never wrote a bash-script so maybe I just don't understand the sript. I think what you're trying is the same as I've in mind with my mp3box. So I hope you can keep me informed about your progress?
Posted by ShiZzl3 on Feb. 28 2006,15:06
the point is: i will have a maschine with some devices full of mp3 music and it will boot up to the shell...so i have only a keyboard to type a shell command, like accessing my script with findmp3 /dir/to/mp3/ [a search string maybe to find special mp3] [ADD if i want to add the files to the playlist] [shuffle to play in shuffe mode] findmp3 /sdb1/ * * shuffle plays all mp3s on second usb device in shufflemod and i dont need to see somethin to type in this. i know where i have which mp3s ;-) and LATER...i will install a 4x40 LCD display...to display current title or scroll through a directory listing...but thats a lot of work to be done, and i will do that in C cause i dont know bash good enough....i will keep you up to date with some screens too...for now its only simple headless mp3box..used by justed typing in mp3s on keyboard or access via SSH i got one more point, the commands you told me work fine with mp3blaster, so i might use it aswell, but my problem is, that i didnt figure out already, how to pass file arguments..my script doesnt work for it, so can you tell me, how to start mp3blaster with multiple files as commandline argument or a file list or something like that. would be great! greetz ShiZzl3 Posted by Ruthje on Feb. 28 2006,15:17
Okay just remember where your mp'3 are :-) LCD display is also my fantasy.I'm not at home at the moment so I cannot test but I thought the command was mp3blaster -a playlist.lst Otherwise there is some info about mp3blaster on the internet this is the webpage < Mp3blaster > Posted by MadCyborg on Mar. 22 2006,16:31
hi,I also want to build an mp3box and I want to use mp3blaster, but i've got a problem with installing it. when i do ./configure may machine says I need a ncurses library. so i've downloaded this library (libncurses.dsl or so) manualy from the ftp and installed it as described in the info-file. when I do ./configure now it happens the same as before... whats wrong? how can I check if this ncurses-thing is installed correctly and what does it actually do? Posted by Ajan on April 05 2006,13:39
I'm a new to this.Is it possible for me to install and run DSL on a Pentium166MHz PC with 16 MB RAM and use it as a juke box/ music player? Can somebody help me with step by step instructions to start with? |