LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2006, 03:58 PM   #1
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
need a fixed point media player


I am trying to play music on a 200Mhz ARM9 processor. I know it can do it, because madplay works on the board already and it sounds great. I want to create a frontend so I can play playlists and also so I can use an LCD that's attached to the board. Madplay is a bad choice as a backend, because it is designed to take input directly from tty instead of stdin (or something like that...you don't need to hit enter at the end of a command anyway).

The second obvious choice is mpg321, because it has a remote mode especially made for frontends. Also, it claims that all calculations are in fixed point because it uses the MAD library. Well, turns out that there are about 2 floating point calculations in the program (not in MAD)...per frame. Songs sound terrible as a result. I tried to take out the floating points, granted I didn't try too hard, but the program seems to really need the 2 calculations to be doubles.

Anyway...
I need a media player that must:
run from the command line
play mp3s
be very light (200 mhz, 32 MB ram is all I have)
not use any floating point numbers (or very few infrequently).

Any suggestions?
 
Old 03-05-2006, 05:24 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
mplayer can run by the command line because that is what it is designed to run from. You can use stdin to contol it. Another program (actually a library) is xine-lib. You have to make a user interface like a CLI or even better the ncurse to handle it. Use LAME mp3 decoder instead of mpg321. These programs should be able to compile on a ARM chip.

Try edit the code so the double converts to float point instead of the floating point converting to double.

You can try to include -msoft-float for CFLAGS and CXXFLAGS. It will implement floating point emulation instead of doing the real thing from the hardware.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Media Player doralsoral Linux - Software 8 11-01-2005 11:55 AM
Media Player Elemental Fear Linux - Newbie 3 09-08-2005 12:36 AM
Media player mouldy_punk SUSE / openSUSE 11 05-09-2005 09:59 PM
Is there an audio player with content library like Media Player? Merlin53 Linux - Software 4 11-24-2004 06:42 PM
Which media player?! odd Linux - Software 5 05-04-2004 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:59 AM.

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