![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
mpg123 v1.6.2 for iLiad
This is a console mode mp3 player. Because of its console mode user interface, it's fast and lightweighted, and easy to be controlled from contentlister.
There are two ways to control mpg123, one is from shell, and the other is from its "Generic Control Interface". The former is what I used in the package for illustration. The later is used to provide an interface to all frontends. Ideally, using "Generic Control Interface" is a better way to control mpg123 from contentlister, but I don't know how. I still don't know how to do it, so I can only point this out and leave it for people to study. How to install: 1. Download and unpack the attachment to dir "programs" of your SD/MMC, and then a dir "mpg123" will emerge. 2. put a mp3 in "mpg123" dir, rename it as "test.mp3". 3. The path is not mandatory, unpack it to anywhere should be working. How to operate: 1. Tap "play music" from contentlister, wait for music play and then you can open your favorite book. 2. In the attachment, I provide an expample to play one mp3 file, and you can't stop, pause, control volume... more control commands can be added to shell script. But I would suggest people study how to control mpg123 via "Generic Control Interface". 3. After music played, it seems that mpg123 is still in idle process, so I can't play it once more, unless after reboot. It should be fixable by using proper command. This man doc is well formated. See it here. There are two attachments. Just download v1.6.3pre. It works fine for remote control interface. Thanx for Thomas' help. Added: I mistakenly removed some static lib from 1.6.3pre package. It's re-uploaded now. Last edited by ericshliao; 12-19-2008 at 04:13 PM. |
![]() |
![]() |
![]() |
#2 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Below is command option of mpg123. FYI.
Quote:
use "mpg123 -R" to start, and tranfer command through pipe. |
|
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I tried to execute the following command in console:
Code:
mkfifo /tmp/pipe mpg123 -R < /tmp/pipe & echo "load test.mp3" < /tmp/pipe & ![]() |
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
The FIFO control doesn't work on my PC either, but if you compile it with --enable-fifo=yes, then you can do the following:
Code:
mpg123 -R --fifo /tmp/fifo & echo "load file.mp3" > /tmp/fifo Last edited by -Thomas-; 12-19-2008 at 06:18 PM. |
![]() |
![]() |
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Ah! thanx for this info. But it's strange. According to help info, fifo should be auto enabled on Linux. Anyway, I'll give it another try.
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I have checked it. Compile option "fifo" is auto enabled.
Which mpg123 version are you using on your PC? It seems that command option "--fifo" is not available for v1.62. Added: I was wrong. I should use "mpg123 -R --fifo /tmp/fifo &" instead of "mpg123 -R --fifo=/tmp/fifo &". It works now. Thanx again. Last edited by ericshliao; 12-19-2008 at 03:29 PM. |
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
I'm using version 1.4.3. The syntax you posted is right, I just corrected the little typo in my post.
Finally, was fifo support really auto-enabled or did you set the option manually? And why didn't --fifo show up in the command options? |
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I guess it's a bug in mpg123's configure script. In the final report produced by configure, it showed that fifo was enabled even though I didn't manyally enable it. But it's not actually enabled until manually enabled. That's why "--fifo" command option not shown.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iliad-regutils: Easy editing of the iLiad registry | Martijn | iRex | 7 | 09-04-2010 06:12 AM |
POLL to Iliad owners: Should people buy an Iliad or not? | ali | iRex | 20 | 01-20-2010 06:11 AM |
iLiad How to make iliad into a SSH server and connect with iLiad | tudou331100 | iRex Developer's Corner | 21 | 02-06-2009 05:35 AM |
Ended Iliad iRex + Iliad cover for sale in London | acorral | Flea Market | 0 | 01-16-2009 06:09 AM |
iLiad Book Edition slower than iLiad v2: different sw version? | SecondoMe | iRex | 17 | 05-14-2008 01:42 PM |