Page 1 of 1

Time to write my Hard drive based Divx player

Posted: Thu Dec 30, 2004 10:30 pm
by wootty2000
After looking round numerious places and failing, I have decided that it is time for me to consider writing my own.

I am new to writing for the PS2s, so dont know what I am doing.
I am going to need help and pointers untill I really get in to the swing of things. I have done 2 1/2 years of Java, 5 years of VB, and about 5 hours of C/C++

What do people think about a PS2 Divx Player that will play from the Hard drive

Posted: Fri Dec 31, 2004 5:20 am
by J.F.
I think a completely open player program is definitely something worth doing. As a suggested starting point, look at such open player programs for the PC like xine, mplayer, and vlc.

Posted: Fri Dec 31, 2004 11:21 am
by pixel
Just a side note...

Thanks to all the recent additions to ps2sdk's libc, ffmpeg is compilable without needing newlib. That is, you can compile libavcodec (providing you disable the encoders) WITH the PS2 optimized stuff (recently added by some other company who commited back AND enabled their code inside libavcodec), which will provide decoders for alot of various stuff, and quite almost the libavformat (only have to provide some dumb stubs for sscanf and gettimeofday so your final binary links nicely) which will provide a lot of demuxer for alot of file formats (not only avi that is)

Dumb code can already decode frames of a divx streamed file for example.

Posted: Fri Dec 31, 2004 12:23 pm
by ooPo
A company actually gave back to a project? Nice. :)

Posted: Fri Dec 31, 2004 1:39 pm
by pixel
Yeah, it's huh... lemme find back

.
.
.

Ah, right: BroadQ which is using ffmpeg inside their product.

Posted: Fri Dec 31, 2004 3:10 pm
by Drakonite
/me applauds BroadQ

Back on topic a little... as much as a good thing an open media player would be, if you've only known C for a few hours you are going to have a very steep climb to get something running.

I don't mean to discourage you, but just giving a friendly heads up ;)

Posted: Fri Dec 31, 2004 8:45 pm
by wootty2000
I do know that learning while developing is not going to b easy.
However, I have done Java, which is very very close to C, so it is not too much of a learning curve.
Once I get my environment set up, and done the "Hello World" and "StarSim" samples, I should be getting on my way.
Its not going to be easy, but I do enjoy being set these sort of tasks (ones that seem impossible to start with)
If there are enough people that will just keep pointing me in the right direction from time to time, I should survive

Keep the poll going as it may make up my mind

Posted: Sat Jan 01, 2005 1:18 am
by bbraun
Iʻve been looking for a good media player for the PS2. The xbmc project for the xbox has made the xbox the single most useful consumer electronic device I have ever had. A similar project for the PS2 would be very useful for the PS2. I have been trying to contact the PS2 Reality folks as it would be far more useful to continue someone elseʻs work than to start from scratch. Since they have abandoned the project, I would have thought they would have been happy to have someone continue their work. However, that does not appear to be the case. So a new, open media player for the PS2 would be incredibly useful and I would contribute my time and resources to the project. If you need a place to host it, Iʻd be happy to provide that as well, although there are many other places, such as sourceforge.

Posted: Sat Jan 01, 2005 6:44 am
by wootty2000
Hope every one has a happy new year
I will decide if I shall write this software after the new year
Have a good one, and dont drink too much :-p

Posted: Sun Jan 02, 2005 3:06 am
by zerocom
I have a alpha version of a player for my libps2mpeg2 .... it still uses some functions from the s*ny sdk, but i guess someone with knowledge of the ps2sdk and some time will quickly make it work....

It supportes VCD/SVCD or files from cd/dvd in mpeg ps format. Audio support via MAD decoder even for mp3....

Is somebody interested? That maybe a good start.

Bye...

Posted: Sun Jan 02, 2005 3:25 am
by pixel
Grunt work?! W00t, gimme! :P

Posted: Sun Jan 02, 2005 3:53 am
by J.F.
If you put a link up, people should be able to grab it and give it a look-see. You might want to check with the ps2dev maintainers about getting it in the cvs. That would be the best way to make it available to folks. In the meantime, I'm interested in helping out.

Posted: Sun Jan 02, 2005 8:31 am
by zerocom
Do you think cvs would be a good idea? I could check it in, but without the official s*ny sdk, noone can compile it.

Posted: Sun Jan 02, 2005 8:58 am
by pixel
Well, give it to me privately or something. I'll clean it up so it will be okay for releasing.

Posted: Fri Jan 07, 2005 5:56 am
by CrestDem0n
I've been a longtime user of the PS2Reality Mediaplayer, too bad they keep the source to themselves. Support for the HD would really make it a killerapplication.

By the way, someone else started on a ps2media-project called The Black Project. Check out a video of some beta-version here: http://www.ps2-scene.org/forums/showpos ... stcount=21

Posted: Fri Jan 07, 2005 6:57 am
by J.F.
That site requires registration to view. You should probably warn people about that.

Posted: Sat Jan 08, 2005 12:06 am
by _tmator_
this movie is just an use of a modified cd of action replay.....
this project is not real.

Posted: Wed Jan 12, 2005 3:37 am
by lmc
The BroadQ patches to ffmpeg and mad can be found here: http://www.broadq.com/open_source/

There might be some interesting stuff in the patch which is not included in the official ffmpeg release.

Posted: Wed Jan 12, 2005 3:43 am
by pixel
Aah, nice! Thank for the link, I haven't noticed it.

Posted: Wed Jan 12, 2005 4:04 am
by lmc
Hello pixel

Don't you also need a libm to compile libavcodec? Last time I tried to build libavcodec for my ps2 without using newlib (one year ago) I linked against a libm based on code from http://www.netlib.org/fdlibm/ (pretty much the same libm as in newlib but with some fixes).

Posted: Wed Jan 12, 2005 5:28 am
by pixel
I am indeed using newlib's libm. There were some talks on the channel about having one libm inside ps2sdk, such as Cephes which seems to be AFL-compatible. I'll have a look at this fdlibm too. Any suggestion ?

Posted: Wed Jan 12, 2005 11:44 am
by J.F.
In my experience, programs calling libm are rarely using more than a few routines. Best to compile without libm, get a list of the "missing" functions, then grab the code for just those functions from the BSD libm. Of course, it may turn out to be less work to have a full libm. You never know until you check. If it's just a couple functions, don't bother with libm.

Posted: Wed Jan 12, 2005 11:28 pm
by lmc
Last I checked (one year ago) ffmpeg needed ceil, floor, rint, exp, log, pow, sqrt, cos, cosh, sin, sinh, tan and tanh which is more than a few routines.

IMHO it would be a good idea to add fdlibm, since its libm compatible, well tested (has been included in newlib for ages), not that bloated and AFAICT AFL compatible. Just my two cents.

Posted: Thu Jan 13, 2005 1:35 am
by Drakonite
fdlibm doesn't seem to have a license at all, which techincally means we are not given any express rights to use it or any of it's code. In that case it would not be AFL compatible.

Posted: Thu Jan 13, 2005 1:47 am
by lmc
Each file has a:

====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ====================================================

To me this looks AFL compatible, but then again, what do I know, I am not lawyer.

Posted: Thu Jan 13, 2005 3:21 am
by Drakonite
Ah, didn't open up each source file to check :) Maybe it is then, I'm not the one to ask for sure.

Posted: Tue Feb 15, 2005 1:55 am
by CrestDem0n
How's this coming along? Any progress? :)

Posted: Mon Feb 21, 2005 8:44 pm
by hypersonic
bbraun wrote:Since they have abandoned the project, I would have thought they would have been happy to have someone continue their work. However, that does not appear to be the case.
there is too much skeletons in ps2reality's closet (media player) for them to release the source code i think....

Posted: Tue Feb 22, 2005 4:18 am
by phunk
you should definitely do this. i have wanted something like this for a while now. would it be possible to make it mount samba partitions across the network to play files off those as well? :) i would settle for playing dvdrs containing avi files though...