Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

"dgrace" wrote:
The reason I started this with the sentence appears to be broken (again/still) was because of this older post:

Looks like el.wubo tried to tackle that without being able to reproduce it.

Is that the end of the log? It ends with the "Scaling the image" line? I didn't realize it's trying to scale the images as the channel's just trying to find a song to play. I wonder if that could be the problem. Do the images for that folder display properly? Do you know what version of PIL you have installed? There was a post back in November around the "Strangeness" post about 1.1.7 not working very well, although I believe that's the version I'm using.

It would be better to see if the console window is showing any Python errors. I assume you're running this in Windows. If you're using the mymedia.bat file to start the server (or even if you're just starting mymedia.py directly), there should be a window with "submitting 'http://xxxx.xxx.x.xxx:8001' to rendezvous server as yyyy". There should be additional messages printed in that window and if there's a Python error, that's where it will show up.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
dgrace
Roku Guru

Re: My Media - Your Music and Video on the Roku DVP

The Python installation log reports:
*** Installation started 2010/12/27 09:42 ***
Source: C:\Documents and Settings\####\My Documents\Downloads\PIL-1.1.7.win32-py2.6.exe
999 Root Key: HKEY_LOCAL_MACHINE
020 Reg DB Key: [Software\Microsoft\Windows\CurrentVersion\Uninstall]PIL-py2.6
040 Reg DB Value: [Software\Microsoft\Windows\CurrentVersion\Uninstall\PIL-py2.6]DisplayName=Python 2.6 PIL-1.1.7

So you can see that it's been there awhile and used to work for shuffling. All of the images imbedded in the mp3 files and the artist.jpgs in the artist folder do appear properly when navigated to directly.
The scaling the image line is the last log entry. I can blank out the log and create a new one this morning. I do use the mymedia.bat to run, and did look through the active log for errors, but saw none. I'd like to post it for you, but seems I need to host the image somewhere and post link. I'll see what I can do on that.
Like I said, it won't shuffle from any point, so it's nothing particular to this folder or artist. Would it be better to have images pre-scaled when embedded, meaning 223x200? Generally, the images I use are closer to 500x500, but MP3Tag converts them to 250x224 37kb, in this instance.
"I might be moving to Montana soon..."
FZ
0 Kudos
dgrace
Roku Guru

Re: My Media - Your Music and Video on the Roku DVP

I lied. Play All isn't working either. I tried the last folder of artists (10 folders) and whatever subfolder albums. It just spins,
Here is a copy/paste from the python window'


C:\mymedia>rem Contributed by umbighouse

C:\mymedia>rem copyright 2010

C:\mymedia>cd server

C:\mymedia\server>c:\python26\python.exe mymedia.py
submitting 'http://192.168.1.35:8001' to rendezvous server as bvnc
http://0.0.0.0:8001/
192.168.1.31:60107 - - [31/Mar/2011 07:46:59] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:60107 - - [31/Mar/2011 07:47:04] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:60107 - - [31/Mar/2011 07:47:10] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:60107 - - [31/Mar/2011 07:47:19] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:60107 - - [31/Mar/2011 07:47:27] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:60154 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK192.
168.1.31:60155 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK

192.168.1.31:60157 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60156 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60159 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60162 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60160 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60161 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60163 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:60164 - - [31/Mar/2011 07:47:28] "HTTP/1.1 GET /media" - 200 OK
You see anything in that?
"I might be moving to Montana soon..."
FZ
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

"dgrace" wrote:
Would it be better to have images pre-scaled when embedded, meaning 223x200? Generally, the images I use are closer to 500x500, but MP3Tag converts them to 250x224 37kb, in this instance.

I tried a 500x500 and it printed "Passing on image unmodified" after the "Scaling the image" line, so I don't think it will matter. I haven't looked into when it decides to actually scale and when it just passes it on.

There's nothing in the logs you've posted that's obviously wrong, other than they end rather quickly. Shuffle All produces all kinds of requests, but it looks likes your are just stopping for some reason.

I've tried to get it to fail using ridiculously large images, and I just can't get it to fail. Even though I'm using the same PIL version as you and it's probably not the issue, let's try to take PIL out of the equation. I don't think you have to uninstall it - just go to the C:\Python26\Lib\site-packages directory/folder and rename PIL to xPIL. Restart the server and it will no longer be using PIL. Then try Play All or Shuffle All on a simple case, like an artist with only one album. Start it from the artist folder, not within the album folder.

Just out of curiosity, does the wheel stop spinning or is it spinning the whole time?

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
dgrace
Roku Guru

Re: My Media - Your Music and Video on the Roku DVP

"renojim" wrote:
"dgrace" wrote:
Would it be better to have images pre-scaled when embedded, meaning 223x200? Generally, the images I use are closer to 500x500, but MP3Tag converts them to 250x224 37kb, in this instance.

I tried a 500x500 and it printed "Passing on image unmodified" after the "Scaling the image" line, so I don't think it will matter. I haven't looked into when it decides to actually scale and when it just passes it on.

There's nothing in the logs you've posted that's obviously wrong, other than they end rather quickly. Shuffle All produces all kinds of requests, but it looks likes your are just stopping for some reason.

I've tried to get it to fail using ridiculously large images, and I just can't get it to fail. Even though I'm using the same PIL version as you and it's probably not the issue, let's try to take PIL out of the equation. I don't think you have to uninstall it - just go to the C:\Python26\Lib\site-packages directory/folder and rename PIL to xPIL. Restart the server and it will no longer be using PIL. Then try Play All or Shuffle All on a simple case, like an artist with only one album. Start it from the artist folder, not within the album folder.

Just out of curiosity, does the wheel stop spinning or is it spinning the whole time?

-JT


Did this and no difference. Here's whats in the window:

C:\mymedia>rem Contributed by umbighouse

C:\mymedia>rem copyright 2010

C:\mymedia>cd server

C:\mymedia\server>c:\python26\python.exe mymedia.py
submitting 'http://192.168.1.35:8001' to rendezvous server as bvnc
http://0.0.0.0:8001/
192.168.1.31:41473 - - [01/Apr/2011 06:58:43] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:41475 - - [01/Apr/2011 06:58:43] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41478 - - [01/Apr/2011 06:58:43] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41476 - - [01/Apr/2011 06:58:43] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41477 - - [01/Apr/2011 06:58:43] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41473 - - [01/Apr/2011 06:58:49] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:41473 - - [01/Apr/2011 06:58:55] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:41490 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41491 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41492 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41493 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41494 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK192.
168.1.31:41495 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK

192.168.1.31:41496 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41497 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41498 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41499 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41500 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41501 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41502 - - [01/Apr/2011 06:58:56] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41503 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41504 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41506 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK192.
168.1.31:41505 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK

192.168.1.31:41508 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41507 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41509 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK192.
168.1.31:41510 - - [01/Apr/2011 06:58:57] "HTTP/1.1 GET /media" - 200 OK

192.168.1.31:41473 - - [01/Apr/2011 06:59:01] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.31:41520 - - [01/Apr/2011 06:59:02] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41521 - - [01/Apr/2011 06:59:02] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41522 - - [01/Apr/2011 06:59:02] "HTTP/1.1 GET /media" - 200 OK
192.168.1.31:41523 - - [01/Apr/2011 06:59:02] "HTTP/1.1 GET /media" - 200 OK
This was my attempt to shuffle an artist folder with four albums in it, after renaming the PIL folder.
The wheel on the screen is still spinning after about 15 minutes.
"I might be moving to Montana soon..."
FZ
0 Kudos
dgrace
Roku Guru

Re: My Media - Your Music and Video on the Roku DVP

Could the type of ID Tag make a difference? I'm using ID3V2.3.0. I found a lot of bad tags in my collections so decided weeks ago to change them all, get rid of anything but this version. Like I was saying before, my portable player seems much happier with this. The tag info works fine playing individual albums in mymedia.
"I might be moving to Montana soon..."
FZ
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

Well at least we eliminated PIL as being the problem.

All of my tags are v2.3, but it looks like I also have v1.1 tags in the files as well. When there was an issue with tags, the Python code would throw an error, so I don't think that's the problem.

This is really strange. The same code is used whether it's playing one album or multiple folders (shuffling or not). The only difference is that for one album there is only one request whereas for the "All" functions there are many requests.

One more question: when you play an album, are you using Play All or just choosing the first song from the album?

One more thing to try: drill down all the way into an album and then try Shuffle All.

I'm starting to think that the channel is putting out a request that never gets answered. I think it will just wait forever. If you are connected via wireless, can you try wired to see if it makes a difference?

Edit: I thought of one more thing to try since you said it used to work. Instead of using mymedia.py, try rss_server.py. You should be able to just double-click it or type "start rss_server.py" from the command line.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
dgrace
Roku Guru

Re: My Media - Your Music and Video on the Roku DVP

"renojim" wrote:
Well at least we eliminated PIL as being the problem.

All of my tags are v2.3, but it looks like I also have v1.1 tags in the files as well. When there was an issue with tags, the Python code would throw an error, so I don't think that's the problem.

This is really strange. The same code is used whether it's playing one album or multiple folders (shuffling or not). The only difference is that for one album there is only one request whereas for the "All" functions there are many requests.

One more question: when you play an album, are you using Play All or just choosing the first song from the album?

One more thing to try: drill down all the way into an album and then try Shuffle All.

I'm starting to think that the channel is putting out a request that never gets answered. I think it will just wait forever. If you are connected via wireless, can you try wired to see if it makes a difference?

Edit: I thought of one more thing to try since you said it used to work. Instead of using mymedia.py, try rss_server.py. You should be able to just double-click it or type "start rss_server.py" from the command line.

-JT

More weirdness. I did try starting with rss_server.py and still no go on shuffling all. Then tried at the album level and it worked. I'm unsure how to troubleshoot from here. I think I'll rename the PIL folder back first thing. Maybe try starting normally with mymedia.bat and the album level shuffle. Exorcism in my future?
In the past I've just chosen the first track to play an album, not Play All.
"I might be moving to Montana soon..."
FZ
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

I'm not too surprised it works at the album level. I'd have been surprised if it didn't. I'm running out of ideas as well. You never said whether you were connected wired or wireless. If wireless, I think it would be worthwhile to try wired if it's not too much trouble. Not that a solution would come out of it, but it would be one more piece of information. I may have to put something together special for you with more debugging. I suspect either a request either isn't getting a response or the response is empty or invalid - two things I thought had a pretty low probability of happening on a local network, so error checking is minimal.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
dgrace
Roku Guru

Re: My Media - Your Music and Video on the Roku DVP

"renojim" wrote:
I'm not too surprised it works at the album level. I'd have been surprised if it didn't. I'm running out of ideas as well. You never said whether you were connected wired or wireless. If wireless, I think it would be worthwhile to try wired if it's not too much trouble. Not that a solution would come out of it, but it would be one more piece of information. I may have to put something together special for you with more debugging. I suspect either a request either isn't getting a response or the response is empty or invalid - two things I thought had a pretty low probability of happening on a local network, so error checking is minimal.

-JT

Dragging a cat5 down to it wouldn't be hard. Just strange that all features once worked fine on the wireless, so would be hard to imagine that changing. Would it be worthwhile to just replace the files on the PC to assure they haven't been compromised in some way?
I keep trying to think of a situation that may have changed on the pc or network. What could be different that still allows single album play, or even the shuffle of a single album, yet cannot reconcile two folders or more? I've even been trying to think of recently added tracks/albums that may have whacked things out (non-English characters, etc.). It seems to handle the Latin jazz titles fine when selected as an album. Each artist folder has an artist.jpg file. Nothing odd there. I've even changed all folders view to "details" and removed any .ini or .db files from them.
Anyway, I'll try the wired solution and report back. Thanks for all of your efforts.
"I might be moving to Montana soon..."
FZ
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.