LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: Do you play music in console?
always 6 9.52%
sometimes 35 55.56%
never 18 28.57%
maybe in the near future 4 6.35%
Voters: 63. You may not vote on this poll

Reply
  Search this Thread
Old 08-08-2006, 09:15 AM   #31
camlinux
Member
 
Registered: Feb 2003
Location: north dakota
Distribution: Gentoo, Debian
Posts: 90

Rep: Reputation: 15

I'm partial to mpd, mainly because you can use the console, a web browser, or a gui frontend. I also like the fact that you can wrap almost any language around it. I used the mpd php class and was able to write a simple ajax based web interface in less than an hour. And if you don't want to write your own, their are already multiple web interfaces that work well.
 
Old 08-09-2006, 03:06 AM   #32
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248

Original Poster
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by raskin
Maybe I'll test it for fun. But as I still have mplayer installed, what new possibility will I get from the program? Is it really easier to handle than mplayer? Can it rewind back at least (mplayer can)? Can it automatically pass mid files to Timidity which is installed (I guess mplayer cannot)?
hello raskin. can you test my scripts now? please i'd really like to hear some comments about it from you as compared to mplayer. you can find the link at my first post.

thanks in advance and best regards
 
Old 08-09-2006, 07:54 AM   #33
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Ok, I decided to try.. I downloaded tar.gz's and both (!) have correct gzip headers and gzip-1.3.5 doesn't want to unpack them. And no CVS. 2 sf mirrors tried - random and closest unofficial.
 
Old 08-09-2006, 08:37 AM   #34
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248

Original Poster
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
that's weird I'm sure I was able to properly upload the files yesterday. anyway it's now fixed. please try again. thanks.
 
Old 08-09-2006, 03:24 PM   #35
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
:se provocation
Quote:
I was able to properly upload the files yesterday.
Did you use this fantastic ability?
:se noprovocation

OK. So:
1. <just whining>
:se dream
Code:
$ cat Makefile
all:

install:
        ./install.sh
:se nodream
oops..
2. Sorry, why is not "mkdir /usr/local/lib/ampd" run during install?
3. Sorry, why /usr/local/etc/pathlist not created during install?
4. Sorry, why by default it tries to write to /usr/local/etc/ampd/ when run? And files are 744, not 755?
:se accusation
Do you run as root??
:se noaccusation
5. How should I guess that I need pathlist? If I add some file by full path, I thought I am adding it. ~ can be in the beginning of full name. Why is it looked up in prescanned list? Counter-intuitive.
6. You show prompt. But all the commands are no-Enter one-key commands. And Enter does nothing. And h-e-l-p-Enter (I type it quicker than see reaction) prints help and then brings VIM. Maybe it's worth the effort to allow comments and to make a header?
7. You do not add first match only, you let me choose.
8. What about auto-deduping (I agree if it will sort the list)?
9. Sorry, currently-running list is var, not etc entry.
10. Searching for .*MASK.* instead of MASK$ is sometimes good, but counter-intuitive.
11. You'd better tell me you are searching for regexps. It is good, but unexpected.
12. You clear ampd logs as if you write them.
13. Why after 'q' PARTY file is not empty?
14. Why I do not get errors from sox on console?
15. It would be nice to have delete-from-playlist-by-number feature.
16. Open shell means launching $SHELL, or at least bash, with modified prompt, not making user type without completion and even without indication of success.
17. Oh, and without select-player-by-type it's not so useful. But maybe I'll write unpack-like wrapper myself (I maintain an unpack script for myself. It is designed to extract valuable files from inconvenient-to-use-directly formats, like archives. Yes, wvHtml is just an example of unpacking).
18. Why do I have to press ENTER when launching VIM..

Oh yes, I forgot to say that it generally works..
 
Old 08-09-2006, 08:01 PM   #36
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248

Original Poster
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Wow that's a big list. Thanks raskin. I'll try to add more comments and help files to the code. BTW sf was offline 30mins after i first uploaded the files. Perhaps there was a problem with the uploads. The new uploads were the same files but when I compared them to the old ones, they were already different.

Quote:
Originally Posted by raskin
Code:
$ cat Makefile
all:

install:
        ./install.sh
yeah i'll add that. i just tried to make things simpler. 'bash install.sh ...' is better than running ./configure or modifying the Makefile.

2. Sorry, why is not "mkdir /usr/local/lib/ampd" run during install?
oops i forgot. i'll add that.

3. Sorry, why /usr/local/etc/pathlist not created during install?
ok i'll add a default empty file for that. btw it's the interfaces like ampkonsole that uses the file not ampd. in ampkonsole you can edit the file by pressing E then f after save to refresh the library.

4. Sorry, why by default it tries to write to /usr/local/etc/ampd/ when run? And files are 744, not 755?
Do you run as root??
I just set the program to run as root. Next time i'll make it compatible to run as user.

5. How should I guess that I need pathlist? If I add some file by full path, I thought I am adding it. ~ can be in the beginning of full name. Why is it looked up in prescanned list? Counter-intuitive.
ok i'll set additions beginning with '~' and '.' as one of the full paths.

6. You show prompt. But all the commands are no-Enter one-key commands. And Enter does nothing. And h-e-l-p-Enter (I type it quicker than see reaction) prints help and then brings VIM. Maybe it's worth the effort to allow comments and to make a header?[/code]
it's a one-key reading loop so it naturally slows down. i'll also add the shell-like commands that require the enter key next time.

7. You do not add first match only, you let me choose.
the first thing i did here was to add only the first match. now the user can select one from the matches. is it working that way?

8. What about auto-deduping (I agree if it will sort the list)?
nice idea. what part of the list? is it the filename only or the full pathname? or do you mean the search output?

9. Sorry, currently-running list is var, not etc entry.
ok next time i'll add an option to separate the big files like library and playlist from the sysconfig directory.

10. Searching for .*MASK.* instead of MASK$ is sometimes good, but counter-intuitive.
the best thing to do here i guess is to fully implement regular expressions. i'll try to do that.

11. You'd better tell me you are searching for regexps. It is good, but unexpected.
ok next time. i'll add it in the docs.

12. You clear ampd logs as if you write them.
i should have added an option for autoclear or not.

13. Why after 'q' PARTY file is not empty?
that's no problem. the interfaces are automatically checked for every announcements. closed interfaces are automatically removed from the list.

14. Why I do not get errors from sox on console?
it only appears when debug is on. i'll also add an option for that. but for now you can redirect the output of sox to fd 3.

15. It would be nice to have delete-from-playlist-by-number feature.
thanks. now i remember. i forgot to add the feature after i made play select.

16. Open shell means launching $SHELL, or at least bash, with modified prompt, not making user type without completion and even without indication of success.
ok i'll mod that.

17. Oh, and without select-player-by-type it's not so useful. But maybe I'll write unpack-like wrapper myself (I maintain an unpack script for myself. It is designed to extract valuable files from inconvenient-to-use-directly formats, like archives. Yes, wvHtml is just an example of unpacking).
yes it's included in the select-player-by-extension plan.

18. Why do I have to press ENTER when launching VIM..
i'll check that later.

Quote:
Originally Posted by raskin
Oh yes, I forgot to say that it generally works..
thanks pal. that's quite a big list there and it really helps. i'll add the fix, docs and features as soon as i can as i'm also helping with other projects.

if you want to help with ampd just tell me. you're welcome anytime.

the next step i'll do is setup the cvs and make the homepage before the stable 1.0.0 release.

btw i'm also planning to port the code to perl and ash (busybox). also make the ncurses interface i longed to have, ampbox. that's the alternate to ampkonsole.. but that will be later.

btw please email me at konsolebox [at] users.sourceforge.net for your next reply about ampd. not here anymore as it's kind of already out of topic. or should it be just fine to create a new topic about this?...

really big thanks to you raskin
more power and best regards
konsolebox

Last edited by konsolebox; 08-09-2006 at 08:03 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
play music m_talebi_z Ubuntu 10 06-17-2006 04:06 AM
Can't play music files annemarietjuhhh Linux - Software 6 01-18-2006 08:06 AM
cant play music king kong killa Fedora 2 06-11-2004 09:36 PM
Why can't I play Music CD's sgtbob Linux - Newbie 12 01-30-2004 06:28 PM
my music won't play JamDunc Linux - Newbie 4 08-03-2003 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration