PDA

View Full Version : How to play AVIs on CD/DVD right now using SMS_host alpha 3


dlanor
08-21-2005, 09:41 PM
As some of you already know, I have released a fully functional version of my host: interface for SMS, grafted onto SMS v1.3, the current version.

That SMS_host release is available at the bottom of page two of the release thread for SMS v1.3.

That version still lacks support for CD/DVD disks using normal ISO filesystems, which EEUG is working on for v1.4...

But until that version is complete, you can do what I've done:

Create a text file named "elflist.txt", and enter a text line in it for each PC drive you want to access via host:, and be sure to include your CD/DVD drives. Typical lines in such a file should look like these two:

C:
D:

You just add to those the additional drives you have, that you want to use with SMS. Then save that file in the same folder where you have ps2client.exe (the host: server). Next you create another text file in that folder, and name this file "HOST_server.bat" (or "whatever_you_prefer.bat" ;) ), and let it contain the following text line:

"%~dp0\ps2client" -h 192.168.0.10 listen

In that line you should replace the IP number with that of your own PS2, if that is different, and you should NOT remove the quotes. (They are needed if the pathname where this stuff is stored happens to contain any spaces.)

With those two files stored in the same place as ps2client.exe, use the mouse to drag-drop a shortcut icon for the BAT file onto the desktop.

From that moment on, you can launch ps2client as host: server just by D-clicking that shortcut. Doing this AFTER starting SMS will cause the host: drive icon to appear on top of the SMS browser, and you can then use it to navigate to any PC drive that was included in "elflist.txt" earlier. And since that includes your CD/DVD drives on the PC, you can now use them to let SMS play AVIs from your disks. :)

Best regards: dlanor

Mr. Worm~~
08-21-2005, 10:11 PM
Kinda nice dlanor, works perfect here!!!
Tks 4 the tip :dance:

taz030485
08-21-2005, 10:32 PM
Can I launch the server in the same way you described to my in the "Getting files onto HDD" thread? ie drag a folder onto the BAT that you posted.
That way I don't have to navigate through tons of subfolders?

NB Feel free to ask me for more info if I was too vague ;)

Mr. Worm~~
08-21-2005, 10:51 PM
Can I launch the server in the same way you described to my in the "Getting files onto HDD" thread? ie drag a folder onto the BAT that you posted.
That way I don't have to navigate through tons of subfolders?

NB Feel free to ask me for more info if I was too vague ;)

Yes, in elflist if u want (if E: is CD/DVD):

D:\Client
E:

taz030485
08-21-2005, 11:21 PM
Can I launch the server in the same way you described to my in the "Getting files onto HDD" thread? ie drag a folder onto the BAT that you posted.
That way I don't have to navigate through tons of subfolders?

NB Feel free to ask me for more info if I was too vague ;)
Quoting myslef, kinda stupid.

I tried what I was asking and it worked, I simply dragged my folder of movies onto the shortcut to the BAT on my desktop and presto :D

Also thanks Mr. Worm~~ for the reply

dlanor
08-21-2005, 11:41 PM
Can I launch the server in the same way you described to my in the "Getting files onto HDD" thread? ie drag a folder onto the BAT that you posted.
That way I don't have to navigate through tons of subfolders?

NB Feel free to ask me for more info if I was too vague ;)
I understand exactly what you mean, but it won't work with a BAT file as simple as the single-liner I showed here. I kept this one supersimple on purpose, so that even those normally 'afraid' of batch commands should be able to use it.

But if I posted a copy of my own BAT earlier (I have a vague memory of doing so), then that one should work fine. But it probably has an argument checker that demands a dropped object to let it work. (No simple D-click.) So you may want to remove that part or add a 'goto' to skip past it. If it is my own BAT you have, then it should have the label ":ArgOk" in it, and then you can insert a line with "goto ArgOk" immediately after the first line (which should be "@echo OFF"). Then it should allow simple D-click to start, and will then use any elflist.txt that is stored in the same folder.

NB: You must use an elflist.txt to access multiple drives in host:
NB: There is no other really good way to do it
(There is a way, but I dislike mounting network drives in folders.)

People who see the above as a foreign language, do not despair. ;) You can safely ignore this post and follow instructions in the first post of this thread.

Best regards: dlanor

taz030485
08-22-2005, 01:32 AM
I understand exactly what you mean,
...
But if I posted a copy of my own BAT earlier (I have a vague memory of doing so),
...
NB: You must use an elflist.txt to access multiple drives in host:
...

Thats good :)

Yes it is your BAT.

All my movies ae on one drive any way, but if I do want to play something on a different drive I'd just restart the server anyway (making sure to switch to hdd mode as not to make sms crash ;) )

Rid
08-23-2005, 06:30 AM
Just tested your SMS_host_alpha_3, works perfectly here with normal videos :)

I noticed that SMS will hang, if the PC's too busy with background tasks (in fact, I was encoding with high priority). Increasing the server's priority to realtime didn't really help either.
How can fast the network connection transfer data? I tested another XVID-movie, compressed with quality based 1 (about 330kb/s video + 128kb/s audio). Apparently the connection wasn't fast enough or the PS2 reached it's limits... :-/

whoops, I meant: about 330kBytes/s video + 16kBytes/s audio :banghead:

sond64
08-23-2005, 10:57 AM
excuse my dumb question but sms host it's a version of sms that allow you to stream divx on the pc side?? so how do you manage the server side?

dlanor
08-23-2005, 11:32 AM
The host: interface is traditionally used by PS2Link/PukkLink to allow PS2 applications to access files on a PC, using a connection established between PS2Link (or PukkLink) on the PS2 end, and ps2client (or equivalent) on the PC end. So the normal PC-side server for the host: interface is in fact ps2client, despite its name.

Some time ago I modified LaunchELF to use that method independently of PS2Link, and the speed this achieved for copying files over network was well over 500 KByte/s. So when I wanted to use SMS over network I decided to implement the same thing for it.

That implementation was completed two days ago, and will be merged into the official SMS 1.4 release by EEUG, but you can get my final 'alpha' for testing from the thread entitled "SMS 1.3 Released!". The "SMS_host alpha 3" attachment is found at the bottom of the second page of that thread. It is basically v1.3 plus the host: interface, and a few other enhancements by EEUG that were needed to make it work.

Best regards: dlanor

sond64
08-23-2005, 11:33 AM
i ansewred myself the frist dump question but when i try to use the commande i got error bind socket failed

dlanor
08-23-2005, 11:44 AM
i ansewred myself the frist dump question but when i try to use the commande i got error bind socket failed
That should only happen if the same 'socket' is already in use, or otherwise blocked from being used.

This could be due either to another instance of ps2client having opened the socket, or to a firewall preventing the socket from being opened by ps2client.

Note that the 'binding' of a socket is something that happens long before any network packets are sent, so this is not any real communication error. It's just a failure of the PC software to initialize structures needed to start any communication attempt, and the normal causes for it are those I mentioned above.

Best regards: dlanor

sond64
08-23-2005, 11:47 AM
maybe it's because inlink is still opened?
thank you to be that quick to reply btw

dlanor
08-23-2005, 07:55 PM
maybe it's because inlink is still opened?
That will definitely stop ps2client from working right, as they need the same networking sockets.

InLink also attempts to implement the host server, but that implementation is incomplete and will fail to deliver files, both with LaunchELF and with SMS.

thank you to be that quick to reply btw
Well, I compensated the other way this time... ;)
(I had to get some sleep in between.)

Best regards: dlanor

rathunter
09-04-2005, 01:35 AM
Hi dlanor,

I was getting failed sockets on ps2client and thought I had a problem PC-side. Turns out that I finally got it to work by hexediting the default net settings in the ELF. (And I'm very impressed at the performance).

My question is, where are you loading the IP data from? CONFIG.DAT or IPCONFIG.DAT in mc0:/SMS/ or the usually places don't seem to have any effect.

Cheers!

Mr. Worm~~
09-04-2005, 01:43 AM
Hi dlanor,

I was getting failed sockets on ps2client and thought I had a problem PC-side. Turns out that I finally got it to work by hexediting the default net settings in the ELF. (And I'm very impressed at the performance).

My question is, where are you loading the IP data from? CONFIG.DAT or IPCONFIG.DAT in mc0:/SMS/ or the usually places don't seem to have any effect.

Cheers!

From source, is "mc0:/SYS-CONF/IPCONFIG.DAT"

default settings are PS2 IP "192.168.0.10" Mask "255.255.255.0" Gateway "192.168.0.1"...