forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mp3?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Wed Feb 08, 2006 7:07 pm    Post subject: mp3? Reply with quote

Hi all,
I discovered that purepwnage made a luaplayer 0.9 build that plays mp3's a while ago. I asked him on a forum if he could build that for 0.14 since my script doesn't run on his 0.9 build. He hasn't been responding though.

I started long ago on an app that lets you import playlists from iTunes and export them as m3u files wich are playable by the psp. A working version is ready, but to my horror I discovered that sony put a lot of limitations on the usage:

-must be in a direct subfolder of psp/music/
psp/music/ itself is not allowed
psp/music/madonna/ is allowed
psp/music/madonna/stairs/ is not allowed
- only one playlist in each folder, the rest is ignored
- mp3 files must be in the same folder

This makes my app quite useless, and because I felt sorry for myself I wanted to make an iTunes styled mp3 player out of it. (not very much work). Since purepwnage is not responding; can anyone tell me how to get an mp3 supporting luaplayer? (bear in mind: I haven't compiled a single program; but I think I can get Cygwin running on my windows-pc)
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Fri Feb 10, 2006 6:25 am    Post subject: Reply with quote

hi. there are some freely available sourcodes of mp3 de- and encoders writen in C.
I think the only thing is to compile one of them as an external library for Luaplayer.
Here is one i used some yrs ago:
http://www.mp3-converter.com/decoders/madaudio_review.htm
and here is the external lib. thread:
http://forums.ps2dev.org/viewtopic.php?t=4259
ciao ragazzo!
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Fri Feb 10, 2006 7:10 pm    Post subject: Reply with quote

It seems that they haven't got it working yet. Purepwnage somehow made it work with 0.9 (see http://forums.qj.net/showthread.php?p=174304#post174304) but I have an 2.00 psp so I can't test his modded luaplayer
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Fri Feb 10, 2006 8:25 pm    Post subject: Reply with quote

underminer, why do not you downgrade? you can set it back to 2.0 anytime you want..
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Sun Feb 12, 2006 12:39 am    Post subject: Reply with quote

Cause i'm playing Legend of Heroes(legal UMD), wich needs 2.00. The version changer doesn't work
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Feb 12, 2006 4:07 am    Post subject: Reply with quote

Hey everyone, I worked with purepwnage until he updated.
Heres the deal on the MP3.
At the time he wrote .1 and .2, he had no PSP. He knew little lua. He THOUGHT it could load MP3, BMP, and JPEG. So... one day I was bored and looked at his source code, and im like.... WHAT? This is so simple, I could make a better one for him! So, I contacted him, and I made .3. The only thing I was upset about was it had gotten a bad reputation from .1 and .2, so barely anyone downloaded it (the last I saw was 32).

Anyway, when I put out .3, he said that he HAD TO be the one to release it. So, he added all this annoying text on the title screen and edited the readme to say that it supports MP3.


So... yeah. I guess I could have shortned that a little....

Point is: MP3 is copyrighted, and shine said that the copyright holder could sue the person who adds MP3 into their program without a 15,000$ permission.
Back to top
View user's profile Send private message AIM Address
MikeHaggar



Joined: 18 Jul 2005
Posts: 116

PostPosted: Sun Feb 12, 2006 6:38 am    Post subject: Reply with quote

More info about mp3 here:

http://www.mp3licensing.com/mp3/history.html

http://www.mp3licensing.com/royalty/
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Sun Feb 19, 2006 12:35 am    Post subject: Reply with quote

So, youresam, I guess the party is over then? It doesn't support mp3 at all and, as a bonus, it's illegal too. Too bad mates! I wonder how all those freeware programs for the PC manage without being sued...

All the coding for nothing :-(
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
liquidjin



Joined: 19 Feb 2006
Posts: 12

PostPosted: Tue Mar 21, 2006 12:31 pm    Post subject: Reply with quote

youresam wrote:

Point is: MP3 is copyrighted, and shine said that the copyright holder could sue the person who adds MP3 into their program without a 15,000$ permission.


I just read the FAQ at the site Mike Haggar posted and it says the following:

www.mp3licensing.com wrote:

However, no license is needed for private, non-commercial activities (e.g., home-entertainment, receiving broadcasts and creating a personal music library), not generating revenue or other consideration of any kind or for entities with associated annual gross revenue less than US$ 100 000.00.


So what do we need to get MP3 support through LUA Player? My current project requires this functionality. I'm pretty new to this so I'm unfamiliar on how to go about it doing it, but I'm willing to help.
Back to top
View user's profile Send private message
matriculated



Joined: 04 Mar 2006
Posts: 31

PostPosted: Thu Mar 30, 2006 6:06 am    Post subject: Reply with quote

So has anyone thought about liquidjin's post? Is it possible to put support for mp3's into Lua legally and without any costs?
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Fri Mar 31, 2006 2:07 am    Post subject: Reply with quote

Since FFT is slow in Lua, maybe we can build an offline MP3 decoder,
which extracts the song before playing it. Or even better:
we extract the mp3 on a PC, and copy the wav to the MS. ha?

Btw. I am working on a Lua-based audio analyser SW.
Of course, based on FFT.
cheers, m.
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Fri Mar 31, 2006 4:45 am    Post subject: Reply with quote

matriculated wrote:
So has anyone thought about liquidjin's post? Is it possible to put support for mp3's into Lua legally and without any costs?


I'm not sure, there are some patents for MP3. But I would be glad if someone wants to write some code for adding Ogg/Vorbis. The format is better and there are free MP3 to Ogg converters, like the real cool Audacity: http://audacity.sourceforge.net/
Back to top
View user's profile Send private message
DiabloTerrorGF



Joined: 15 Jul 2005
Posts: 64

PostPosted: Fri Mar 31, 2006 6:57 am    Post subject: Reply with quote

Yeag, while I don't like OGG, it's the best free compression.

And with sound taking 99.9% of the size of my game, I rather it not.
Back to top
View user's profile Send private message
matriculated



Joined: 04 Mar 2006
Posts: 31

PostPosted: Sun Apr 02, 2006 4:24 am    Post subject: Reply with quote

I wonder if Ahman IRShell's mp3 prx can be used with the new external library support.
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Apr 02, 2006 9:32 am    Post subject: Reply with quote

matriculated wrote:
I wonder if Ahman IRShell's mp3 prx can be used with the new external library support.

Can you even get .18 alpha running?

I get an error...
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group