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

MyMedia only supports what the Roku supports - mp3, wma, mp4, mov. Any other video formats require transcoding. There's a couple of other channels out there that have some sort of transcoding, but I haven't tried any. I find it's much easier (and to me, makes more sense) to just re-encode to a compatible format.

For the registration thing, I'm not sure why sometimes it doesn't work. The workaround that seems to work is to edit config.ini in the server directory and just add the registration code manually:
regid = abcd

Replace 'abcd' with the four character code shown on your screen and restart the server.

If you aren't seeing your videos or photos, make sure the paths are set correctly in config.ini. It's just a simple text file.

Good luck!
-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
cdvijay
Visitor

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

Thanks, I would never have guessed it!
Will report if I continue to have trouble.

Vj
0 Kudos
cdvijay
Visitor

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

Back again---that regid=abcd does not work.

Here is what I did:

1. First clicked on the MyMedia channel -- Roku gave me a 4 char code "
mymedia

Server configuration

Please visit ....

jruw

-------------------------------------Cancel Regn.

2. Then, I stuck this "jruw" into my config.ini and restarted "python rss_server.py"
I see
"http://0.0.0.0:8001/
Process does not return to the command prompt.

But, on the Roku, I see nothing has changed.

Also, when I try to run mymedia.py I get a syntax error...

line 1086...

except Exception as e:

There is an arrow under the 's' of 'as'

Anything else I can do....Thanks.
0 Kudos
renojim
Community Streaming Expert

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

You want to start mymedia.py, not rss_server.py (that's an older version that doesn't use the regid). It won't return to the command prompt. Under Linux, I start it as a background process and redirect the output, like this:
python -v mymedia.py > /tmp/python-rc.log 2>&1 &

You won't want to be redirecting the output until you get it all working.

That error is when it can't contact the rendezvous server. I'm not sure why that would happen, but try it a few more times. It should print "submitting 'http://192.168.1.103:8001' to rendezvous server as jruw" before the "http://0.0.0.0:8001/" line (with the IP address of your server replacing 192.168.1.103).

-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
cdvijay
Visitor

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

No go...I fixed the syntax error (changed the "except Exception as e:" to "except Exception, e:" but I get a "bad marshal data" error, deleted all my .pyc files. Same problem. Some progress though -- Roku stops at "Linking Player" + gives me 4-char code. Before it would say "Server Config" and stop.

When I run mymedia.py with the -v option I get this...
# /mnt/HD_a2/Roku/server/django/template/defaulttags.pyc matches /mnt/HD_a2/Roku/server/django/template/defaulttags.py
import django.template.defaulttags # precompiled from /mnt/HD_a2/Roku/server/django/template/defaulttags.pyc
# /mnt/HD_a2/Roku/server/django/template/smartif.pyc matches /mnt/HD_a2/Roku/server/django/template/smartif.py
import django.template.smartif # precompiled from /mnt/HD_a2/Roku/server/django/template/smartif.pyc
# /mnt/HD_a2/Roku/server/django/template/defaultfilters.pyc matches /mnt/HD_a2/Roku/server/django/template/defaultfilters.py
Traceback (most recent call last):
File "mymedia.py", line 30, in <module>
from django.template import Template, Context
File "/mnt/HD_a2/Roku/server/django/template/__init__.py", line 1052, in <module>
add_to_builtins('django.template.defaultfilters')
File "/mnt/HD_a2/Roku/server/django/template/__init__.py", line 1049, in add_to_builtins
builtins.append(import_library(module))
File "/mnt/HD_a2/Roku/server/django/template/__init__.py", line 987, in import_library
mod = import_module(taglib_module)
File "/mnt/HD_a2/Roku/server/django/utils/importlib.py", line 35, in import_module
__import__(name)
ValueError: bad marshal data
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] _bisect
# cleanup[1] collections
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] token
# cleanup[1] common
# cleanup[1] quopri
# cleanup[1] SimpleHTTPServer
# cleanup[1] BaseHTTPServer
# cleanup[1] array
# cleanup[1] inspect
# cleanup[1] _locale
# cleanup[1] logging
# cleanup[1] StringIO
# cleanup[1] web.application
# cleanup[1] wsgiref
# cleanup[1] opcode
# cleanup[1] __future__
# cleanup[1] sre_constants
# cleanup[1] PyRSS2Gen
# cleanup[1] simplejson
# cleanup[1] _codecs
# cleanup[1] django.template.smartif
# cleanup[1] _struct
# cleanup[1] _types
# cleanup[1] posix
# cleanup[1] exceptions
# cleanup[1] wsgiref.headers
# cleanup[1] site
# cleanup[1] strop
# cleanup[1] web.debugerror
# cleanup[1] htmlentitydefs
# cleanup[1] django.template.context
# cleanup[1] django.template.defaulttags
# cleanup[1] sets
# cleanup[1] wsgiref.handlers
# cleanup[1] imghdr
# cleanup[1] ConfigParser
# cleanup[1] SocketServer
# cleanup[1] dis
# cleanup[1] cStringIO
# cleanup[1] atexit
# cleanup[1] wsgiref.util
# cleanup[1] simplejson.scanner
# cleanup[1] simplejson.encoder
# cleanup[1] simplejson.decoder
# cleanup[2] django.utils.html
# cleanup[2] random
# cleanup[2] django.conf.global_settings
# cleanup[2] subprocess
# cleanup[2] web.webapi
# cleanup[2] email.mime
# cleanup[2] eyeD3.tag
# cleanup[2] web
# cleanup[2] struct
# cleanup[2] tempfile
# cleanup[2] pprint
# cleanup[2] django.conf
# cleanup[2] imp
# cleanup[2] web.browser
# cleanup[2] web.wsgi
# cleanup[2] web.form
# cleanup[2] string
# cleanup[2] django
# cleanup[2] django.utils.module_loading
# cleanup[2] web.utils
# cleanup[2] hmac
# cleanup[2] datetime
# cleanup[2] django.utils.numberformat
# cleanup[2] httplib
# cleanup[2] bisect
# cleanup[2] django.utils.functional
# cleanup[2] email
# cleanup[2] threading
# cleanup[2] email.encoders
# cleanup[2] gc
# cleanup[2] decimal
# cleanup[2] django.core.exceptions
# cleanup[2] locale
# cleanup[2] web.template
# cleanup[2] mimetypes
# cleanup[2] base64
# cleanup[2] django.utils.dateformat
# cleanup[2] eyeD3.mp3
# cleanup[2] encodings
# cleanup[2] calendar
# cleanup[2] django.utils.version
# cleanup[2] django.utils.itercompat
# cleanup[2] eyeD3
# cleanup[2] warnings
# cleanup[2] urllib
# cleanup[2] re
# cleanup[2] eyeD3.binfuncs
# cleanup[2] math
# cleanup[2] cgi
# cleanup[2] django.utils.importlib
# cleanup[2] UserDict
# cleanup[2] web.test
# cleanup[2] fnmatch
# cleanup[2] codecs
# cleanup[2] web.db
# cleanup[2] socket
# cleanup[2] thread
# cleanup[2] traceback
# cleanup[2] fcntl
# cleanup[2] itertools
# cleanup[2] eyeD3.utils
# cleanup[2] eyeD3.frames
# cleanup[2] django.utils.http
# cleanup[2] os
# cleanup[2] marshal
# cleanup[2] web.__init__
# cleanup[2] django.utils
# cleanup[2] django.utils.dates
# cleanup[2] _sre
# cleanup[2] unittest
# cleanup[2] django.utils.translation
# cleanup[2] django.utils.datetime_safe
# cleanup[2] django.utils.safestring
# cleanup[2] operator
# cleanup[2] select
# cleanup[2] django.utils.text
# cleanup[2] posixpath
# cleanup[2] errno
# cleanup[2] _socket
# cleanup[2] binascii
# cleanup[2] email._parseaddr
# cleanup[2] Cookie
# cleanup[2] types
# cleanup[2] tokenize
# cleanup[2] django.utils.encoding
# cleanup[2] django.utils.tzinfo
# cleanup[2] cPickle
# cleanup[2] glob
# cleanup[2] django.utils.formats
# cleanup[2] email.utils
# cleanup[2] copy
# cleanup[2] hashlib
# cleanup[2] web.net
# cleanup[2] django.core
# cleanup[2] zlib
# cleanup[2] encodings.aliases
# cleanup[2] sre_parse
# cleanup[2] pickle
# cleanup[2] mimetools
# cleanup[2] copy_reg
# cleanup[2] sre_compile
# cleanup[2] _hashlib
# cleanup[2] _random
# cleanup[2] web.httpserver
# cleanup[2] shutil
# cleanup[2] web.http
# cleanup[2] encodings.hex_codec
# cleanup[2] web.session
# cleanup[2] stat
# cleanup[2] _ssl
# cleanup[2] rfc822
# cleanup[2] encodings.ascii
# cleanup[2] time
# cleanup[2] urllib2
# cleanup[2] os.path
# cleanup[2] urlparse
# cleanup[2] linecache
# cleanup sys
# cleanup __builtin__
# cleanup ints: 360 unfreed ints in 14 out of 812 blocks
# cleanup floats: 36 unfreed floats in 2 out of 2 blocks

/mnt/Roku/server #
_______________________________________________

I have put in the right info in my config.ini -- see below---
[config]
music_dir = /mnt/HD_a2/Audio
video_dir = /mnt/HD_a2/Video
collapse_collections = False
server_port = 8001
roku_ip = 192.168.1.112
max_folders_before_split = 10
theme = default
python_path = /ffp/bin/python.exe
server_ip = 127.0.0.1
photo_dir = /mnt/HD_a2/Photos
regid = gudu

_______________________________
Vj
0 Kudos
renojim
Community Streaming Expert

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

Can you make sure you have the latest build of Python v2.6? The only information I could find on "bad marshal data" refers to either bad .pyc files, which you've already tried deleting (make sure you deleted all of them in all the subdirectories), or a reference to python-minimal that has a bug in it.

-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
cdvijay
Visitor

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

Hi renojim,

thanks for sticking with me...no luck. I installed Python 2.7.1.

Now, I get a
SystemError: frexp() result out of range

Rebooted the NAS. Still the same.

Thanks.
Vj
0 Kudos
renojim
Community Streaming Expert

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

It only works with v2.6.

-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
Pookla
Visitor

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

Hi.
I had some serious trouble getting mymedia running on my MacBook Pro 10.6.
PIL would NOT auto install because 2.6 and the default Gcc weren't compatible..... argh.
I had to download 2.7 from python.org, then I installed PIL via macports because it wouldn't install via the listed easy install. Macports needed me to reinstall xcode. Then I had to use MacPorts to install the updated GCC compiler. (eesh).
Then I had some conflicts between 2.6 and 2.7 so I deleted 2.6, and installed something called python selector so I could make 2.7 my "current" version. After all that mymedia loaded.
BUT, it did take me registering about 5 times, and having to manually set my IP. So, now I can browse my video library and play. (Yea!)
SO apparently mymedia works on 2.7. I'm happily playing all my handbraked videos.

I'm wondering though, why is the browsing through videos so SLOW..... PIL seemed to install correctly so what gives? It takes about 15 seconds for each click to the next video.
0 Kudos
renojim
Community Streaming Expert

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

Hmm... I'm pretty sure I've tried 2.7 without much success, but that wasn't on a Mac. Maybe I'll try it again. I thought when this started there wasn't a version of PIL for 2.7, but that could have been something else.

I know very little about the registration process, so I don't know why sometimes it works and sometimes it doesn't. I only know a workaround and the next release of the channel will have a working manual setup since the automatic setup seems to fail so often.

Browsing should not be that slow and really should be no different than any other channel. Do you have jpegs for each of your videos? If not, there's absolutely no reason. If so, maybe there is a PIL issue with 2.7. If you look in my_media_log.txt you should be able to see whether or not it's really scaling the images or passing them on unmodified. There's been reports of slow response to the remote in general on the box, so maybe this is somehow related. If you haven't rebooted your box lately, I'd give that a try.

-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