aka107
Forum Replies Created
-
AuthorPosts
-
aka107Participant
Thks clava
Your code seems pretty gooddi_* changes will allow to play a video dvd, using dvdnav and dvd:// instead use usb-dvd as a dvd data
What I mean is if you patch di_* functions mplayer will use the usbdvd device as the internal wii dvd, mplayer will handle the usbdevice as a dvd not as a usbstorage unit
Maybe instead pacth di_* funcs you can try to patch di.c in libogc so it will be more generic but I haven’t think about it too much.aka107Participant@clava wrote:
Hi Rodries,
Thanks for your quick answer!
I’m investigating the possibility of storing a UDF/ISO file system on a memory key, dumping a .iso image through the linux dd utility. Ubuntu is able to mount it correctly; this evening (Italian time) I’ll check on the Wii. This would simplify the debugging, for me too, enabing you to test the code. If this works, I can share my patched source code.
About your suggestions about di_* functions I’m a bit puzzled by the fact that now I’m playing a “regular” file, through “usb1:/” device (by means of iso9660 devops, of course). What’s the difference with respect to play a .ifo file from a fat or ntfs filesystem (at least from the dvdlib point of view)? Surely I’m missing someting! As soon as possible I’ll try to study the dvd stream implementation a bit more in detail.
di_* changes will allow to play a video dvd, using dvdnav and dvd:// instead use usb-dvd as a dvd data
aka107Participantok
I have a problem here, I haven’t a dvd-usb so I can’t test anything
If you have a problem the only way I can help you is asking me a specific question and pasting the codeIn dvd_reader.c
#ifdef GEKKO
if (!strcmp(path, "/dev/di")) {
ret_val = DVDOpenImageFile( path, have_css );
free(path);
return ret_val;
}
#endif
I think you have a problem here, I don’t know how to handle it without testing
static int di_open ( dvdcss_t, char const * );
static int di_seek ( dvdcss_t, int );
static int di_read ( dvdcss_t, void *, int );
static int di_readv ( dvdcss_t, struct iovec *, int );You have to redo this functions to use the usb device (libdvdcss/device.c)
aka107Participant@Thommy wrote:
Hello,
i have a “Western Digital Elements Portable 250GB”. The USB-Log says “USB Device Compatible!!!”. But my hdd is not detected by WiiMC. In all other Homebrew-Apps the hdd works well. My Homebrew Channel uses IOS58.
Can you help my please?
Best regarts
Thomas from GermanyTry this beta: http://www.mediafire.com/?nuf5579jl5xayu6
aka107Participant@clava wrote:
I tried to patch libdvdcss/device.c, redirecting disk I/O through libc_open, libc_seek, … functions (in place of di_* functions). Unfortunately, it does not seem to work. Any advice?
You are in the rigth way
aka107Participant@theG wrote:
Hi
I just bought a My Book Essential 3TB external drive today, formatted to NTFS and plugged to my Wii. No matter what application I launch (WiiMC, WiiXplorer, WiiMC tester app) it crashes right away and I have to restart the Wii.Wii is unusable with that drive attached to it.
No problem with my other external drive that I’ve been using since day 1. And, It passes the test.
Tried my new drive in both USB ports, with and without the other drive attached.
Any idea what can be causing this?have you tried to use the usb test app?
aka107Participant@jhb50 wrote:
Thanks for posting this Atlanx. This 500GB Seagate GO is the drive I have purchased to replace my old failed USB HDD. Since my SD card slot is broken, I am unable to run the test, and I boot from a FAT32 partition on this drive, and read videos from the NTFS partition.
At first I found the FAT partition being overwritten by WIIMC, requiring a reformat and restore each time, but since I turned the “SLEEP TIME” from “3 minutes” to “Never” this has not reoccured. I also believe I have seen the same problem after a long video pause but I will test that further. It also takes 40-45 seconds to boot from the USB drive but this apparently is not a WIIMC fixable problem. Other than that the drive seems to work fine.
I am concerned about the failure of method 5 in the latest test:
__usbstorage_IsInserted
USB_GetDeviceList. device_count: 0
USB Device NOT Compatible!!!
USB2 device test method: 5
Can someone expain what this means? I need to decide if I am going to keep this drive or return it so I would appreciate knowing what the problem is. Thanks.Means that the device has not been detected when you have unplug & plugged.
In test 6 we do an iosreload then the usb hardware is resetted that’s the reason it has been detected.
Maybe tuejdi need more work on plug detection or IOS can’t detect it in the rigth way.
Some devices need to be swicth off when unplugged to be detected on pluggingaka107Participant@clava wrote:
I run a quick and dirty test (I didn’t call the IsDvdUSB() function):
– I patched usbstorage.c as suggested, replacing the one in libogc
– I patched the get_interface() function in iso9960.c , returning &__io_usbstorage;
– I patched fileop.cpp, setting: static const DISC_INTERFACE* dvd = &__io_usbstorage;
With the above modification, WiiMC shows a DataDVD icon and tries to read the disk. Unfortunately, I got an “Invalid DVD” error message and sporadic segfault… I must have missed something…You have to patch mplayer, check libdvdread4 (maybe libdvdcss & libdvdnav) search for gekko defines
aka107Participant@clava wrote:
what kind of optimization did you add in your build?
Set L2 cache to 64byte
@clava wrote:I tested your wiimc version in two critical conditions, without having appreciable improvements:
– ISO DVD images, shared through WiFi SMB have frequent buffering (see http://www.wiimc.org/forum/viewtopic.php?f=4&t=1052#p4539)
¿Have you disabled menu dvd?
dvdnav is very slow
I can watch dvd video over samba, but I’m using a modified wiimc. I have to check that code.
@clava wrote:– quick-time videos play choopy as also reported by _ponyo_ in Issue #296 http://www.wiimc.org/tracker/index.php?do=details&task_id=296
Not studied yet
@clava wrote:
Finally, any news about USB DVD drive support?
Not enough time
Can you try to enable it?
use usbstorage.c from : http://code.google.com/p/wiimc/source/browse/trunk/libs/usb_test/usbstorage.c
comment #define DEBUG_USB and select method 5 instead 6
Must work fine if you replace the calls to dvd
Create a global var to select internal dvd or usb dvd, I’ll set that var in the rigth way later, but you can do it, if sector > 512 then dvd else usb.
make a function in usbstorage.cbool IsDvdUSB()
{
u32 sectorsize,numSectors;
USBStorage_ReadCapacity(&__usbfd, __lun, §orsize, &numSectors);
if(sectorsize>512) return true;
return false;
}aka107Participant@Btc wrote:
This one does the same thing the last one you gave me does… Works perfectly with large videos in USB (NTFS) but in SMB it keeps showing the wrong length 😕
I think this is going to works fine, also improved performance
http://www.mediafire.com/?0kojpv83wice9ebaka107Participant@Btc wrote:
@rodries wrote:
@Btc wrote:
And no, I didn’t compile the latest sources of Wiimc to test this issue, the latest version that I tested was Wiimc 1.1.1, that is why I am hoping you to launch the new version soon… 😉
Try this compiled version & report: http://www.mediafire.com/?zp4oytj5ebdb1w5
Has been compiled with special flags to try to manage big files.Nice work rodries and team, It really played the MPEG2 video file of 7,82GB that has 02:15:00 of length. But it only showed the correct length via USB (NTFS), not via SMB.
Please don’t forget to do the same correction when loading from SMB and please do launch a new version soon 😉
Try this beta & report: http://www.mediafire.com/?ob2kbapidt3ff9m
aka107Participant@clava wrote:
@rodries wrote:
@clava wrote:
I don’t know if it makes sense but… I tried to run the USB Test app (1.11 and 1.12) on an external USB DVD drive. Unfortunately I got an exception after the first test and no log. Any idea?
Because I try to read a 512byte sector but dvd is 2048
Download test again I’ve increased the buffer size.Hi Rodries,
here’s the log from an HP external USB Drive CD/DVD R/RW. I run the test with a UDF formatted DVD loaded.The device is compatible with the usbstorage, but we have to make changes in wiimc to redirect dvd calls to usb device. I’m not sure if it’s an easy task and we haven’t an usb dvd drive, so you will have to be the tester.
aka107Participant@zod1 wrote:
Thank you so much Tantric and all the team! Keep up the good work. Cheers from Russia)
Here’s my log. Also the drive works fine – i don’t know why it didn’t pass the tests. It’s WD My Book Premium (WD5000P032) With the hard drive swapped from 500Gb to 640Gb WD 10EALX (Wd Caviar blue sata3). Hope my info will be of help…
PS I unplugged and plugged back in the drive as instructed.Uhmm, interesting log
Can you download the test again & retry?
I’ve done a little change@turley wrote:
best regards
Please download usb test again.
aka107Participant@clava wrote:
I don’t know if it makes sense but… I tried to run the USB Test app (1.11 and 1.12) on an external USB DVD drive. Unfortunately I got an exception after the first test and no log. Any idea?
Because I try to read a 512byte sector but dvd is 2048
Download test again I’ve increased the buffer size.aka107Participant@Btc wrote:
And no, I didn’t compile the latest sources of Wiimc to test this issue, the latest version that I tested was Wiimc 1.1.1, that is why I am hoping you to launch the new version soon… 😉
Try this compiled version & report: http://www.mediafire.com/?zp4oytj5ebdb1w5
Has been compiled with special flags to try to manage big files. -
AuthorPosts