 |
 |
All times are GMT +2. The time now is 12:41 PM. |
| Official SMS Forums Forum for discussing SMS: Simple Media System player for the ps2. |

08-30-2005, 10:09 AM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
Work in progress
...created on demand  . I hope that it won't be "one man thread". I'm doing nothing now waiting for poll results (yet 5 days). Well, I'm actually playing a bit with IPU.c file attempting to win some extra fps  ...
|

08-31-2005, 10:27 PM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 23
|
|
Quote:
|
Originally Posted by EEUG
Well, I'm actually playing a bit with IPU.c file attempting to win some extra fps  ...
|
Guess I`d need a 4x speedup for playing my qPel-encoded Files, so Im glad to hear that
Started to improve AVI-Compatibility - Multiple RIFF Chunks, ignoring optional (read: unknown) Lists/Chunks, fetching indx-chunks
Might try to prepare functions for seeking and selecting Audio-Stream (as I usually keep the dubbed and the original Track in my Files)
|

09-01-2005, 09:55 AM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
@Npl: I've shortened a bit CSC-display cycle, so we've got slight speedup (my estimation is ~5%)  . Now it needs some testings an if everything will be OK, then 1.4 (Rev.1) will come up this weekend. I'm glad you've put your hands on SMS, really. One note: SMS code that deals with I/O (it all resides inside 'FileContext.c') is not optimized for seeking operations (they are rather slow, since I'm using only 1 sector for cache (2352 bytes for CDDAFS and 4096 bytes for other devices)). I've optimized it only for streaming (using asynchronous I/O and much larger cache). So, it would be really nice to review I/O code first (increase the cache and implement faster seek operations while streaming) - it will also be good for 'FFWD' and 'REV' things. Btw., I've put 'DDravSrv.exe' to the SVN (utils folder)...
|

09-02-2005, 05:24 PM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 23
|
|
|
I`m progressing slowly, coding only takes place between researching AVI-Stuff, understanding SMS-Code and futile attempts to find accurate descriptions of eesyscalls. (I`m a noob when it comes to PS2-Programming)
For now I`ll leave FileContext.c untouched as long as it works, seeking will be something expense anyway and optimising is alot easier if stuff already works.
Now a question: I`ve seen you use lots of threads and from what I gathered PS2-multitasking is cooperative. The VidRender thread has lower priority than the rest, what would happen if it gets interrupted - wouldnt it effectively have to wait till all other threads idle themselfes (which the _sms_play_a_v routine wont ) ?
|

09-02-2005, 08:23 PM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
|
@Npl: well, VidRendered does actually very little work. It just synchronizes video to audio (in quite crapy way) and sends CSC-display request (it is done in about 5ms for average 640x480 movie) to the IPU. The rest is performed asyncronously by interrupt handlers while other threads are busy with decoding. You can assign same priority to it as for other threads, but in this case sound gets inteppupted sometimes. The whole thing works like this: main threads demuxes avi packets and feeds 2 queues for audio and video. It sleeps when bothe queues are full. Decoder threads decode packets and queue decoded frames for renderers. Again, they are sleeping when their queues are full. Audio renderer sleeps while waiting for space available in the sound buffer at the IOP side, so video renderer gains control at that point...
|

09-02-2005, 08:47 PM
|
|
Buffalo Bill is coming for you!
|
|
Join Date: May 2004
Posts: 1,638
|
|
Quote:
|
Originally Posted by EEUG
...created on demand  . I hope that it won't be "one man thread". I'm doing nothing now waiting for poll results (yet 5 days). Well, I'm actually playing a bit with IPU.c file attempting to win some extra fps  ...
|
dont ever be afraid to ask certain individuals directly for help. Sometimes its the only way to get people to collaborate with you. many times, especially in the ps2 scene things have to be done this way in order to even get simple things done.
|

09-02-2005, 10:02 PM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 23
|
|
Quote:
|
Originally Posted by EEUG
You can assign same priority to it as for other threads, but in this case sound gets inteppupted sometimes.
|
if anything, I would priorize both render-threads higher (lower value) than the decoders, prolly sound higher than vid too.
Quote:
|
Originally Posted by EEUG
The whole thing works like this: main threads demuxes avi packets and feeds 2 queues for audio and video. It sleeps when bothe queues are full.
|
Aaah.. missed that last bit, now it makes sense.
|

09-04-2005, 07:10 PM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
...now I'm investigating a possibility to use DVD video disks as possible media for avi files (DVDVFS  ). I'll be back to start programming SMS's Christmas tree items after that (just because I really need some break (a lot of things happened in just 3 months), sorry for that)...
|

09-04-2005, 08:35 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 15
|
|
|
OK! Hi EEUG, I am waiting with much patience for the SMS's Christmas tree items...
Good luck ;-)
|

09-05-2005, 12:51 AM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Australia
Posts: 214
|
|
Quote:
|
Originally Posted by EEUG
...now I'm investigating a possibility to use DVD video disks as possible media for avi files (DVDVFS  ). I'll be back to start programming SMS's Christmas tree items after that (just because I really need some break (a lot of things happened in just 3 months), sorry for that)...
|
For DVD playback wouldn't you need to implement MPEG decoding? Also a non-modded PS2 should be able to read the DVD's, right?
__________________
"My logical data analysis sector indicates that would be highly unlikely. And my bullshit meter agrees."
Sheila, Red VS Blue
|

09-05-2005, 02:56 AM
|
|
Guest
|
|
Join Date: Jun 2003
Posts: 412
|
|
|
EEUG isn't talking about DVD playback, he said a "media for avi files". Sort of like how he 'hid' avi data on an audio CD, he is trying to find a way for non-modded consoles to access 'hidden' avi files from a Video-DVD.
BTW: XviD/DivX AVI's are MPEG4 (implemented in SMS) and Video-DVD streams are MPEG2 (irrelevant).
|

09-05-2005, 02:57 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 139
|
|
Quote:
|
Originally Posted by taz030485
For DVD playback wouldn't you need to implement MPEG decoding? Also a non-modded PS2 should be able to read the DVD's, right?
|
He is talking about creating a special filesystem for burning avi files straight to dvd to be read by sms without the use of a modchip just like he created the CDDAFS for cd's.
|

09-05-2005, 02:59 AM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Australia
Posts: 214
|
|
Quote:
|
Originally Posted by rathunter
EEUG isn't talking about DVD playback, he said a "media for avi files". Sort of like how he 'hid' avi data on an audio CD, he is trying to find a way for non-modded consoles to access 'hidden' avi files from a Video-DVD.
BTW: XviD/DivX AVI's are MPEG4 (implemented in SMS) and Video-DVD streams are MPEG2 (irrelevant).
|
Quote:
|
Originally Posted by Cordy
He is talking about creating a special filesystem for burning avi files straight to dvd to be read by sms without the use of a modchip just like he created the CDDAFS for cd's.
|
Sorry my bad 
__________________
"My logical data analysis sector indicates that would be highly unlikely. And my bullshit meter agrees."
Sheila, Red VS Blue
|

09-05-2005, 06:48 PM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
...finally I've managed to read sectors from DVD video disk (the burned one  ), so, I think it's quite possible to store .avi files on it. Now, I'm going to try to implement .irx driver to handle DVD video disks (this will take ages (never wrote .irx before)), so, maybe next release of SMS will support such a disks  ...
|

09-11-2005, 05:43 PM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
Edit: test scenario has been deleted  . Thank you for your efforts...
Last edited by EEUG; 09-11-2005 at 10:40 PM.
|

09-11-2005, 08:46 PM
|
|
Guest
|
|
Join Date: Jun 2003
Posts: 412
|
|
|
NTSCv7:
rom0: MCMAN: -200
rom0: MCSERV: -200
MCPATCH: -200 0
|

09-11-2005, 08:54 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Location: Auburn, Massachusettes
Posts: 17
|
|
Quote:
|
Originally Posted by EEUG
@all who interested: I'd like to execute attached .elf on your consoles and see its output (stating also console info, if possible  ). Thanks in advance for cooperation.
Best regards
Eugene
|
I'm runnin an NTSC V7 Ps2 with the PS2HDD. It is currently modded with a DMS3+ updated with its latest beta firmware. My PS2 is running via component cables out.
I'm using Launchelf v3.41k to boot the test.elf from memory card in the 1st slot. The file is in a folder called "TEST" on that memory card.
I get a black screen with the following info:
rom0:MCMAN: -200
rom0:MCSERV: -200
MCPATCH: -200 0
It is displayed at the top left corner of my screen.
that's it.
By the way, just setup SMS yesterday, FANTASTIC work! Looking forward to watching the development of this app!
Scott
Last edited by pubert; 09-11-2005 at 08:55 PM.
Reason: added info.
|

09-11-2005, 08:58 PM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
@pubert: thank you. I see already that this test code is console dependent already  (on my Station I've got different results  )...
@rathunter: thank you too...
|

09-11-2005, 08:59 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 139
|
|
|
test.elf
Unmodded NTSC V9 120GBHDD/Official Sony 40GB
rom0:MCMAN: -200
rom0:MCSERV: -200
MCPATCH: -200 0
Ran through uLaunchELF v3.41k host and ps2client
|

09-11-2005, 09:00 PM
|
|
Moderator
|
|
Join Date: Jul 2005
Posts: 1,323
|
|
@Cordy: thanks to you too  ....
|

09-11-2005, 09:43 PM
|
|
| |