PSP Media Center and decoder library ports

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

PSP Media Center and decoder library ports

Post by Warren »

Hey guys, lately adresd and I have been busy rocking out some sound stuff and decided to package it all into a Media Center package.

I sat down yesterday and ported libmad and Tremor for MP3 and OGG playback and adresd has been working on .MOD support for a few days now.

Right now the play fully supports:
  • 44khz MP3s
    partial OGG support (jitters)
    Protracker .mod support (no other mod formats yet)
Features under development:
  • XviD video playback (generic library ported, will need much optimisation)
    OGG playback refinement
    .ahx tracker format
Features we want to implement in the future:
  • H.264 video support (hopefully using Sony's libraries from flash)
    AAC audio support
You can download a v0.5 preview from http://kelley.ca/psp/PSPMediaCenter-v0_5.rar

Feedback and feature suggestions are welcome but note that we are working on full res XviD support so don't bother suggesting it.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

That's the best name you could come up with? C'mon don't pay any homage to the illegitimate Xbox "scene" :P.
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

Looks good, now I just gotta move an mp3 over to the parent directory so it can play a song.

Suggestions:

-Support for all MPEG, AVI, QT and if possible RM formats.(maybe Windows Media formats as well, if possible)
-Support for WAV format.
-File system browsing(take a look at the SNES emu for an example of that)

For the distant future, maybe a GUI interface?
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

mrbrown wrote:That's the best name you could come up with? C'mon don't pay any homage to the illegitimate Xbox "scene" :P.
Ssshhh, we're riding their coattails to fame and loose women! ;)
Èl Nächó
Posts: 27
Joined: Sun Apr 03, 2005 4:02 pm

Post by Èl Nächó »

You know the PSP plays mp3s natively right? :p

nah, just kidding. Looks good so far. Keep up the good work.
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

Got an error, but still plays the song:

"recoverable frame level error (lost synchronization)"

have no idea what that means, but it still plays the songs.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

F9zDark wrote:Looks good, now I just gotta move an mp3 over to the parent directory so it can play a song.

Suggestions:

-Support for all MPEG, AVI, QT and if possible RM formats.(maybe Windows Media formats as well, if possible)
-Support for WAV format.
-File system browsing(take a look at the SNES emu for an example of that)

For the distant future, maybe a GUI interface?
MPEG is easily doable but is it worth the bloat? Will anyone actually use it?

AVI is tricky, the AVI container will most likely be supported but there are a jillion codecs that can live inside it.

If anyone wants to come up with a logo or better screens for the MS feel free to do so and post in this thread.

QT same deal as AVI, the most popular codec is sorenson 3 which is not opensource. You have to remember mplayer only supports a lot of formats because it can load the codec .dlls - this also only works on x86 systems which the PSP is not.

RM might be a possibility but not very high on my todo list atm. If we ever get networking going it might be nice to have for streaming video.

WMV is next to impossible and will likely never be done. Plus why would you? XviD and H.264 are much better.

I've been thinking of including a generic MJPG codec for AVI & QT so people can view camera movies. Would people find this useful?

As for GUI and filebrowser, they are being worked on. The text mode look of the current version was just for testing so we could concentrate on getting things working and not on a pretty GUI.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

F9zDark wrote:Got an error, but still plays the song:

"recoverable frame level error (lost synchronization)"

have no idea what that means, but it still plays the songs.
It's because of the ID3 tag. I have libID3 ready to do in, just took time to package things up and didn't do it yet.
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

My suggestion with MPEG was to allow users who didn't really want to spend the time converting to mpeg4 format just to watch a few minutes of video on the PSP.

It would be more of a creature comfort, but may be invaluable. I know I'd use it. Can't speak for anyone else though.
shifty
Posts: 32
Joined: Thu Jun 16, 2005 8:59 am
Location: MIT
Contact:

mp3 playback library release

Post by shifty »

hiya Warren, can you inform how much modification the
tremor library was?

I'd love to have a two-stream mp3 dj'ing application for PSP,
so if you would post your tremor port source, it would rule...

unless it was trivial, then i'll just do it myself. i dig the way you
released the % file! I dig it becuase i have a mac and don't have
to boot my pc to run kxploit....tho i'd luv to see an osx kxploit...
inomine
Posts: 53
Joined: Thu May 05, 2005 7:26 pm

Post by inomine »

Warren wrote: MPEG is easily doable but is it worth the bloat? Will anyone actually use it?
Yes, the porn monkeys will ;)

Warren wrote: AVI is tricky, the AVI container will most likely be supported but there are a jillion codecs that can live inside it.
As long as it supports generic Xvid/DivX with MP3 audio I will be quite happy. Anything beyond that like OGG or AC3 will be icing on the cake.

Anyway, nice work, and sorry for the feature requests. ;)[/quote]
pdc
Posts: 107
Joined: Wed Mar 09, 2005 9:49 am
Location: Rainy Yorkshire, England
Contact:

Post by pdc »

looking good!
Can't wait for more features and a nice GUI.

There is a small problem listing files. I can't quite figure out for sure what though.
1.mp3 = not listed
aaa.mp3 = not listed
Aaa.mp3 = listed OK

Files with either spaces or capital letters seem to list.

Anyway, good work guys!
netddos
Posts: 9
Joined: Fri Jun 17, 2005 4:03 pm

Post by netddos »

Hopefull it will support asf and wmv files.

Good job so far~ keep it up!

edit: It'd be nice if it supports other languages...[japanese and korean preferably]. :)
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Re: mp3 playback library release

Post by Warren »

shifty wrote:hiya Warren, can you inform how much modification the
tremor library was?

I'd love to have a two-stream mp3 dj'ing application for PSP,
so if you would post your tremor port source, it would rule...

unless it was trivial, then i'll just do it myself. i dig the way you
released the % file! I dig it becuase i have a mac and don't have
to boot my pc to run kxploit....tho i'd luv to see an osx kxploit...
Tremor is for OGG, libmad is for MP3, there were a few mods but this is currently in PSPSVN which should be opened to the public sometime next week after the PSPSDK release.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

pdc wrote:looking good!
Can't wait for more features and a nice GUI.

There is a small problem listing files. I can't quite figure out for sure what though.
1.mp3 = not listed
aaa.mp3 = not listed
Aaa.mp3 = listed OK

Files with either spaces or capital letters seem to list.

Anyway, good work guys!
Hrm yeah I noticed that last night too, will look into it
Hazuki
Posts: 21
Joined: Sun Mar 20, 2005 2:33 am

Post by Hazuki »

cool, this is awesome news,

my opinion on requested supported formats. i think just xvid and mp3 in .avi container is plenty!

just asked if anyone was working on a media player yesterday! coincidence...i think so!

keep up the work!
Marco_N
Posts: 46
Joined: Sun May 29, 2005 10:27 am

Post by Marco_N »

Warren,

have you contacted the PSP Video 9 community to see if you can use their MP4 codec, and lift it up to full resolution? I'm assuming here that the 76,800 pixel limitation is built-in Sony's own player and won't be an issue with PSP Media Center.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

Marco_N wrote: have you contacted the PSP Video 9 community to see if you can use their MP4 codec, and lift it up to full resolution? I'm assuming here that the 76,800 pixel limitation is built-in Sony's own player and won't be an issue with PSP Media Center.
It's not 'their' format, it's standard mpeg4 video with AAC audio. XviD will handle the video and I'll have to port an AAC player for the audio.
MarfPSP
Posts: 27
Joined: Sat Jan 22, 2005 10:55 am

Post by MarfPSP »

Cant wait for this one guys, no more converting video before watching!!
jmac
Posts: 1
Joined: Mon May 30, 2005 11:27 am

Post by jmac »

superb idea for the media centre man! after watching some of the UMD sample movies, I was mightily disappointed with the "under-res" MP4 video on PSP. XVid at 480x272! I can't wait! :D
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

Here is another possible feature I thought of:

-Streaming of content across WiFi
-Support of DVD playback(across WiFi connection)

I think it might be possible, if there were some sort of disc sharing protocols installed to access a DVD-Rom on a computer connected to a WiFi router. This could then playback the DVD video on the PSP.

It kinda sucks having to buy UMDs of every movie I want to watch on the PSP, especially if I already own them on DVD. And for a price of 30 bucks, when I can buy a DVD for 10 bucks less that will play on ANY device I stick it in that has a DVD drive...
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Could you stop the unproductive "that's a cool idea dude! go go go!". Next post like that, and I'll clean up this thread out of that crap.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

pixel wrote:Could you stop the unproductive "that's a cool idea dude! go go go!". Next post like that, and I'll clean up this thread out of that crap.
The thread author asked if we could post feedback and suggestions. I don't see why you need to moderate what feedback and suggestions we give to him...
CoreCZ
Posts: 8
Joined: Tue May 24, 2005 7:36 pm
Location: UMD Drive
Contact:

Post by CoreCZ »

I think you should still keep ogg playback but scrap mp3 as we can already do that and add support for flac and mpc.

flac - lossles codec
mpc - best lossy codec at mid-high
ogg - good opensourced codec which is good at low bitartes with say aotuv beta 4
User avatar
sq377
Posts: 87
Joined: Mon Apr 11, 2005 3:30 am

Post by sq377 »

Why would you scrap mp3? Many formats use mp3 underlying video (my entire southpark collection and half my movies). Maybe use the other ones temporarily to get working, but by all means do not scrap it.

Btw... are we using both procs yet? We have the media proc and the main one...
chaos
Posts: 135
Joined: Sun Apr 10, 2005 5:05 pm

Post by chaos »

F9zDark wrote:
pixel wrote:Could you stop the unproductive "that's a cool idea dude! go go go!". Next post like that, and I'll clean up this thread out of that crap.
The thread author asked if we could post feedback and suggestions. I don't see why you need to moderate what feedback and suggestions we give to him...
exactly.
Chaosmachine Studios: High Quality Homebrew.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

Please do not make me too posts, request things that already have been request OR debate whether or not MP3 support should be included, this is a media player and aims to play media.

The planned feature list for right now is:
- get ogg working right
- get XviD working (having some trouble with floating point and libc at the moment)
- get AAC audio playing
- get XviD & MP3 and/or OGG playing from an AVI and possibly OGM container
- get XviD & AAC audio playing from .mp4 container

There are no immediate plans to work on anything else until these five things are completed. Other codecs may be implemented at our whim but we are not going to support every obscure format under the sun.

Also, do NOT expect XviD to play full speed out of the box. It will take much optimisation and usage of the VFPU to get it running at an acceptable speed. Since we do not have the ability to compile VFPU code yet it will be a while before this can be done. DO NOT whine about not being able to use the VFPU, it is a very hard thing to get gcc and binutils working correctly with. Anyone doing so will be banned.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

sq377 wrote: Btw... are we using both procs yet? We have the media proc and the main one...
We have not yet figured out how to run code on the media engine. Right now people are focusing on more important things like getting a legal SDK out of the door for everyone to use.

After the dust has settled and things are going smoothly I'm sure someone will figure it out. If you want it done faster, pony up and figure it out and let us know how to get things running on it.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

F9zDark wrote:Here is another possible feature I thought of:

-Streaming of content across WiFi
-Support of DVD playback(across WiFi connection)
Once the media player is working well (ie after we get VFPU working) streaming content is planned.

DVD playback will likely never exist in PSPMediaCenter as:
- it's much larger than PSP screen and would take a lot of power to decode and resize
- 802.11b networks are not fast enough in practical usage to keep up with DVD bitrates
- I really don't think it's worth incorporating MPEG2 video support
- in case you haven't noticed already not many open source dvd playing software supports DVD menus so you might as well just rip the DVD anyway
- it's easy as hell to use PSPVideo9 or related utilities to transcode your DVD to mpeg4
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Warren wrote: - it's much larger than PSP screen and would take a lot of power to decode and resize
If the psp can decode mpeg4 in realtime, mpeg2 probably isn't a stretch, and as a texture on a sprite it would be nearly free to scale down.
Warren wrote: - 802.11b networks are not fast enough in practical usage to keep up with DVD bitrates
Well, 802.11b can go to 11Mbps, DVD can go to 10Mbps. Yes, its close... but possible with buffering. I haven't seen many outside of those superbit versions that even come close to the max rate as it would fill the disc too quickly.
Warren wrote: - I really don't think it's worth incorporating MPEG2 video support
I hear the application of cash and prizes to this 'warren bottleneck' can increase performance greatly. Perhaps you should look into this.
Post Reply