GeeXboX

Linux Open Media Center
It is currently Thu Sep 02, 2010 7:29 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: ushare and 360
PostPosted: Thu Apr 19, 2007 1:12 am 
Offline

Joined: Thu Apr 19, 2007 1:07 am
Posts: 1
hopefully this is in the right spot...

i'm having trouble connecting ushare to my xbox.

i've entered

ushare -c /home/ubuntu/shared -x

in terminal, and get the following result. notice it stops halfway through and doesn't go back to ubuntu@ubuntu:~$

Code:
ubuntu@ubuntu:~$ ushare -c /home/ubuntu/shared -x
uShare (version 0.9.10), a lightweight UPnP Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ for updates.
Initializing UPnP subsystem ...
Starting in XboX 360 compliant profile ...
UPnP MediaServer listening on ip:port
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /home/ubuntu/shared
Found 4 files and subdirectories.



in the web interface, it says i'm sharing the folder, but when i go to my 360 to connect to the computer, it can't find my pc.

what am i doing wrong?

thanks,
stephen


Top
 Profile  
 
 

 Post subject:
PostPosted: Wed May 16, 2007 12:53 pm 
Offline

Joined: Tue May 15, 2007 11:22 pm
Posts: 13
Unless you daemonize uShare (the -D option) that's where it will stay - it is correct behaviour though.

Have you set the multicast route up?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 16, 2007 6:46 pm 
Offline
Developer
User avatar

Joined: Wed Dec 10, 2003 8:39 pm
Posts: 5846
Location: Strasbourg, France
forget about x360, doesn't work

_________________
"This is the worst kind of discrimination. The kind against me!"


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 16, 2007 8:11 pm 
Offline

Joined: Tue May 15, 2007 11:22 pm
Posts: 13
ben wrote:
forget about x360, doesn't work

Check your pms ben - with a slight change I have just been watching a lovely streaming WMV file on the 360 from uShare :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 16, 2007 11:02 pm 
Offline

Joined: Wed May 16, 2007 11:00 pm
Posts: 3
can´t you just share your workaround with all of us?


Top
 Profile  
 
 Post subject: Patch for 360 fix
PostPosted: Sun May 20, 2007 4:56 pm 
Offline

Joined: Tue May 15, 2007 11:22 pm
Posts: 13
The patch I've sent Ben is posted below. It gets things up and running, but the 360 will always show everything in the list - all music and video under the video tab for example.

If there are any problems, let me know.

Code:
diff -Naur original/ushare/src/metadata.c fixed/ushare/src/metadata.c
--- original/ushare/src/metadata.c   2007-05-17 10:24:04.000000000 +0100
+++ fixed/ushare/src/metadata.c   2007-05-17 11:24:23.000000000 +0100
@@ -183,7 +183,12 @@

   entry = (struct upnp_entry_t *) malloc (sizeof (struct upnp_entry_t));

-  entry->id = ut->starting_id + ut->nr_entries++;
+  if (ut->root_entry)
+    entry->id = ut->starting_id + ut->nr_entries++;
+  else
+    // Assume we're creating the root node so don't use the usual IDs
+    entry->id = 0;
+
   entry->fullpath = fullpath ? strdup (fullpath) : NULL;
   entry->parent = parent;
   entry->child_count =  dir ? 0 : -1;
@@ -193,14 +198,22 @@
     malloc (sizeof (struct upnp_entry_t *));
   *(entry->childs) = NULL;

+  log_verbose("Created entry->id %d\n", entry->id);
+  if (entry->fullpath)
+  {
+    log_verbose("  Path for entry is: %s\n", entry->fullpath);
+  }
+
   if (!dir) /* item */
     {
+      log_verbose("upnp_entry_new::Creating item\n");
       struct mime_type_t *mime = getMimeType (getExtension (name));
       if (!mime)
       {
         --ut->nr_entries;
         upnp_entry_free (ut, entry);
         log_error ("Invalid Mime type for %s, entry ignored", name);
+        log_verbose ("Returning a NULL entry");
         return NULL;
       }
       entry->mime_type = mime;
@@ -214,6 +227,7 @@
     }
   else /* container */
     {
+      log_verbose("upnp_entry_new::Creating container\n");
       entry->mime_type = &Container_MIME_Type;
       entry->url = NULL;
     }
@@ -261,8 +275,18 @@
   entry->size = size;
   entry->fd = -1;

-  if (entry->id && entry->url)
-    log_verbose ("Entry->URL (%d): %s\n", entry->id, entry->url);
+  //if (entry->id && entry->url)
+  if (entry->id)
+  {
+    if (entry->url)
+    {
+      log_verbose ("Entry->URL (%d): %s\n", entry->id, entry->url);
+    }
+    else
+    {
+      log_verbose ("Entry->URL (%d): No URL\n", entry->id);
+    }
+  }

   return entry;
}
@@ -368,7 +392,13 @@
   entry_lookup_ptr->entry_ptr = child;

   if (rbsearch ((void *) entry_lookup_ptr, ut->rb) == NULL)
+  {
     log_info (_("Failed to add the RB lookup tree\n"));
+  }
+  else
+  {
+    log_verbose ("Added ID %d to the RB lookup tree\n", child->id);
+  }
}

struct upnp_entry_t *
@@ -504,6 +534,7 @@
   /* build root entry */
   if (!ut->root_entry)
     ut->root_entry = upnp_entry_new (ut, "root", NULL, NULL, -1, true);
+       

   /* add files from content directory */
   for (i=0 ; i < ut->contentlist->count ; i++)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 4:27 pm 
Offline

Joined: Wed May 16, 2007 11:00 pm
Posts: 3
Update:

holy crap it works..

I´m only using the Video Feature..and they just appear fine.

thanks man..


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 8:42 pm 
Offline

Joined: Mon May 21, 2007 8:37 pm
Posts: 1
Any chance of getting this patch included in an official update and released .deb style? I am having troubles applying the patch and getting it to work.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 8:50 pm 
Offline

Joined: Tue May 15, 2007 11:22 pm
Posts: 13
DeCappa wrote:
Any chance of getting this patch included in an official update and released .deb style? I am having troubles applying the patch and getting it to work.

I've sent the patch to the uShare dev list and I believe it is in the works (not sure about the .deb part though).

In the meantime, I've been told that if copying the code from the webpage you might need to use the "fuzzy match whitespace" option (which might be -l).


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 9:01 pm 
Offline
Developer
User avatar

Joined: Wed Dec 10, 2003 8:39 pm
Posts: 5846
Location: Strasbourg, France
will be applied, but i have no time for that (or ushare in particular) right now.

_________________
"This is the worst kind of discrimination. The kind against me!"


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 9:19 pm 
Offline

Joined: Tue May 15, 2007 11:22 pm
Posts: 13
For people having trouble getting the above patch to apply, PM me your e-mail address and I'll send the source file I changed so you can just replace that in the 0.9.10 src directory.

Hopefully that will keep the streaming working until Ben has enough time to update the uShare source.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 9:47 pm 
Offline

Joined: Wed May 16, 2007 11:00 pm
Posts: 3
Hi

I´ve uploaded the patched file to sendspace.
Not sure how long it will stay there

http://www.sendspace.com/file/t14ilg


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 22, 2007 8:30 pm 
Offline

Joined: Sun Mar 11, 2007 4:29 pm
Posts: 9
mic360 wrote:
Hi

I´ve uploaded the patched file to sendspace.
Not sure how long it will stay there

http://www.sendspace.com/file/t14ilg
Ok I used this file, recompiled ushare and everything turns up under all different categories. Still a limit of a 1000 files. I cannot play any MP3's?! They just don't work.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 22, 2007 9:53 pm 
Offline

Joined: Tue May 15, 2007 11:22 pm
Posts: 13
To be honest I've only tried WMV files - not audio.

Everything showing under every list is something I'm planning on looking at (only separating video from audio though for now).

I'll take a look at the MP3 playback too but can't promise anything. What dashboard version are you using BTW?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 22, 2007 10:34 pm 
Offline

Joined: Sun Mar 11, 2007 4:29 pm
Posts: 9
The latest version.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group