Time to write my Hard drive based Divx player

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply

Is it worth my effort, and will people help me to get going

Well worth it, and I will help where I can
8
29%
Well worth it, and I would help but I dont know how to code
10
36%
Well worth it, but dont turn to me for help
2
7%
Not fussed about the app, but will help anyway
3
11%
Not fussed about the app, and dont ask me for help
0
No votes
Stop waisting your time, its not worth writing one
5
18%
 
Total votes: 28

wootty2000
Posts: 3
Joined: Thu Dec 30, 2004 10:35 am

Time to write my Hard drive based Divx player

Post 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
New to Programming PS2s, so please cut me some slack :-p
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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.
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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.
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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

A company actually gave back to a project? Nice. :)
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Yeah, it's huh... lemme find back

.
.
.

Ah, right: BroadQ which is using ffmpeg inside their product.
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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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 ;)
Shoot Pixels Not People!
Makeshift Development
wootty2000
Posts: 3
Joined: Thu Dec 30, 2004 10:35 am

Post 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
New to Programming PS2s, so please cut me some slack :-p
bbraun
Posts: 5
Joined: Sat Jan 01, 2005 1:11 am

Post 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.
wootty2000
Posts: 3
Joined: Thu Dec 30, 2004 10:35 am

Post 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
New to Programming PS2s, so please cut me some slack :-p
zerocom
Posts: 12
Joined: Tue Jun 08, 2004 7:45 am

Post 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...
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Grunt work?! W00t, gimme! :P
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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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.
zerocom
Posts: 12
Joined: Tue Jun 08, 2004 7:45 am

Post 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.
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Well, give it to me privately or something. I'll clean it up so it will be okay for releasing.
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.
CrestDem0n
Posts: 3
Joined: Fri Jan 07, 2005 5:47 am

Post 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
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

That site requires registration to view. You should probably warn people about that.
User avatar
_tmator_
Posts: 19
Joined: Mon Nov 15, 2004 5:57 pm
Location: France

Post by _tmator_ »

this movie is just an use of a modified cd of action replay.....
this project is not real.
lmc
Posts: 4
Joined: Thu Mar 18, 2004 8:16 am

Post 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.
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Aah, nice! Thank for the link, I haven't noticed it.
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.
lmc
Posts: 4
Joined: Thu Mar 18, 2004 8:16 am

Post 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).
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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 ?
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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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.
lmc
Posts: 4
Joined: Thu Mar 18, 2004 8:16 am

Post 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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
lmc
Posts: 4
Joined: Thu Mar 18, 2004 8:16 am

Post 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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
CrestDem0n
Posts: 3
Joined: Fri Jan 07, 2005 5:47 am

Post by CrestDem0n »

How's this coming along? Any progress? :)
hypersonic
Posts: 9
Joined: Sat Nov 13, 2004 11:25 am

Post 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....
phunk
Posts: 9
Joined: Thu Feb 17, 2005 8:22 am

Post 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...
Post Reply