TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Home Media Features & TiVoToGo
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 08-23-2008, 07:06 PM   #1
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
HME/VLC video streamer, v3.6

Code:
HME/VLC video streamer, v3.6
by William McBrine <wmcbrine@gmail.com>
July 3, 2010

A simple streaming HME server for the TiVo Series 3+.

Uses ports 9043 and 9044. Tested on Ubuntu Linux 8.04 through 10.04, Mac 
OS X 10.4, and Windows XP.

Requirements:

- TiVo S3, HD or Premiere with 9.4 or later software

- Python -- 2.x only (2.6.x recommended)
  http://python.org/

- VLC (0.8.6 recommended)
  http://www.videolan.org/

Use:

- Unzip
- (Optional) Edit config.ini to point to your files
- Run start.py
- Go to the Music, Photos and More menu on your TiVo

Stop:

- Ctrl-C on Linux or Mac; close the window on Windows. (Ctrl-C does an
  orderly shutdown that removes the app from the menu, but unfortunately
  this doesn't work in Windows.)

More info:

Streams can require VLC to reencode/rebroadcast them, or not. For the 
TiVo to use a stream directly, without VLC, the stream must be MPEG-1, 
MPEG-2 or MPEG-4 h.264, and served via http. Entries for new streams, 
shares, RSS feeds or Shoutcast sources can be created in config.ini.

Only one instance of VLC will be run at a time, but it can support 
multiple TiVos watching the same stream, with little additional 
overhead. However, two different TiVos can't simultaneously watch two 
different streams if they both require VLC.

VLC 0.9 through early 1.x was broken for HME/VLC's purposes.

Changes:

3.6 -- The latest versions of VLC finally work again, _if_ the frame
       rate is set to 30 (instead of 29.97) and the codec to mp2v
       (instead of mp1v). Reported by "Allanon".

       Now based on HME for Python version 0.18, which includes e.g.
       various fixes for Zeroconf.

       Support for non-ASCII characters in filenames and description
       text.

       The new HD UI on the TiVo Premiere requires RGB icons; use a
       standard-def RSS icon when appropriate.

       Encode audio at 48 KHz instead of 44.1; default video bitrate is
       now 4 Mbps instead of 2.

       Some broken feeds have enclosures with no types.

       Purged some streams and feeds that no longer work, including
       C-SPAN.

3.5 -- Descriptions for Shoutcast, based on the "name" field. This is
       actually backwards -- "name" should be the title, and "ct" the
       description -- but the way the name field is abused, this is the
       only way that makes sense.

       Support for pyTivo .txt files. Currently only the description is
       used.

       Retry with VLC (or show the error message) from handle_error() as
       well as handle_resource_info().

       Tweak the gap between the title and the description -- now six
       lines fit the info window neatly.

       If the only items are either live streams or RSS feeds, skip
       their folders. (This is similar to what's done for files, but
       different -- the top-level menu retains its name and background
       color.)

3.4 -- No more idle timeout during paused video.

       If live streams or RSS feeds are three or fewer items each, show
       the items in the top-level menu instead of a folder; also, if
       only one item would appear in the top-level menu, and it's a
       directory, then show the directory's contents instead.

       Display description text in the info view. Currently this is only
       automatic for RSS items, but you can set it for live streams if
       you like, by adding a "desc=whatever" line.

       More internal reorganization.

3.3 -- Added support for "needs_vlc" in file shares. Normally, the
       extension of the file is used to determine whether VLC should be 
       used; and if playback fails without it, it's retried with VLC. 
       But some files in ostensibly compatible formats don't play, but 
       don't give an error, either, so HME/VLC doesn't know to retry 
       them. Setting "needs_vlc=True" in config.ini for the share will 
       force the use of VLC even for these not-so-compatible files.

       RSS Feeds are now kept in a separate top-level folder.

       Slightly better error reporting/logging.

       Internal reorganization.

3.2 -- Files with the extensions ".tivo", ".m4v", ".mpeg", ".vob", and
       ".m2v" are now passed through without reencoding (in addition to
       the old ones ".mpg" and ".mp4"). The supported extension list is
       now derived from the list of MIME types in start.py.

       Skip items in RSS feeds with no enclosures, or with enclosures 
       not of type video, since some feeds include mixed media.

3.1 -- Use HD menus when possible.

       Wrap text in the "Loading..." screen.

       Separate RSS icon.

3.0 -- Support for iTunes-style RSS feeds, and Shoutcast TV. See the
       included config.ini for configuration examples. Mostly due to
       Jeff Mossontte, aka "Allanon".

2.7 -- If files or streams fail a pass-through (non-VLC) attempt, try
       again using VLC, if available. Suggested by TCF user "goodtrips".
       (Not as helpful as one would expect -- VLC is refusing to
       transcode some things that it can play perfectly well.)

       Added a few more recognized extensions (let me know if there's
       one you want).

       Page Up / Page Down was messed up.

       Lists with more than 256 items caused an exception. Reported
       by "Allanon".

2.6 -- Make sure VLC is shut down even when the HME/VLC session ends
       abnormally. Suggested by TCF user "texaslabrat".

       Use AC3 instead of MPEG audio -- should allow for more channels
       and higher quality.

       Added support for setting audio bitrate via config.ini; default 
       is 384.

       Rounded end for the highlight bar; shaded background area now 
       stays in place, as in TiVo's own menus; delay when sliding the 
       menu in is more reliable.

2.5 -- Server port and video bitrate can be set in config.ini; the vlc
       path is taken from the [hmevlc] section instead of [DEFAULT].

       start.py is now identical to the HME for Python version; the port
       and datapath are set in config.ini. (If you're upgrading from a
       previous version and have your own, modified config.ini, you
       should copy the [hmeserver] and [hmevlc] sections from the new
       one.)

       It should no longer be necessary to set the datapath under
       Windows, unless your videos are on a different drive from
       HME/VLC. You still can only use shares on one drive at a time,
       unless all the videos in a share require reencoding.

       Paths in config.ini are now validated; shares with invalid paths
       are skipped.

       Reorganized.

2.4 -- Allow specifying the location of VLC via "vlc=/path/to/vlc" in 
       the DEFAULTS section of config.ini.

       Recognize when VLC isn't found, and don't show items that need
       it.

       Allow the Advance key to skip to the end/beginning of a menu.

       Remember the position in lower menus as well as higher. This is
       closer to the behavior of the TiVo's built-in menus. They're only
       remembered while the app is running.

       Use images for the menu backgrounds. I liked my squares routine,
       but the TiVo didn't like all those transparent views.

       A little more room for text in menus.

2.3 -- No more leaking text resources.

       For debugging purposes, I'd disabled the 9.4-TiVo-software-only
       test, and forgot to reenable it before releasing 2.2. Not for the
       first time.

2.2 -- Generates fewer views, less cropping in the info bar, and minor
       tweaks to bring it closer to standard TiVo menu behavior.

2.1 -- Support for local file shares.

2.0 -- Now presents itself as one app, generates its own menu, and uses
       config.ini to define streams.

1.3 -- Rearranged to use the HME for Python package unmodified (except 
       for the port number and name in start.py, nee hmeserver.py).

1.2 -- More graceful handling of some error conditions.

       Added C-SPAN and ResearchChannel.

1.1 -- Added fps and samplerate to the VLC parameters (the TiVo can only
       accept certain values for these). Not needed for NASA TV, but for
       some other files/streams.

       The progress bar colors and sounds were not always being updated
       correctly.
[Now hosted at wmcbrine.com.]
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 03-03-2013 at 09:36 AM.
wmcbrine is offline   Reply With Quote
Old 08-23-2008, 07:09 PM   #2
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
I only have NASA TV at the moment; let me know if you'd like to see anything added. (Right now, I'm only looking for static URLs. Parsing RSS feeds etc. is the next step...)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-25-2008, 12:35 AM   #3
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
No suggestions?

A couple of minor tweaks in this version.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-25-2008, 05:57 PM   #4
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
C-span 1, 2, 3

Unzip this and drop it in to add C-SPAN 1, 2 and 3. Sorry about the PQ.

[file removed -- doesn't work with new versions, nor is it needed]
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 08-30-2008 at 09:37 AM.
wmcbrine is offline   Reply With Quote
Old 08-25-2008, 06:22 PM   #5
dylanemcgregor
Registered User
 
Join Date: Jan 2003
Location: Corner of Fifth and Vermouth
Posts: 8,151
Seems cool. If I ever get a S3/HD I'll have to remember to check it out.
dylanemcgregor is online now   Reply With Quote
Old 08-26-2008, 01:58 PM   #6
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Version 1.2

More graceful handling of some errors, and added the Research Channel.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-26-2008, 03:27 PM   #7
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
CNN web

Drop-in package for CNN live video streams 1, 2, 3 and 4. Note that these don't correspond to any of their cable channels -- they do a separate web production. But that's a good thing, because there are no commercials.

No icons this time.

[file removed -- doesn't work with new versions, nor is it needed]
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 08-30-2008 at 09:36 AM.
wmcbrine is offline   Reply With Quote
Old 08-26-2008, 03:38 PM   #8
fyodor
Registered User
 
Join Date: Sep 2006
Posts: 438
Neat. I'm curious if there are plans for some sort of local file selector so that it can stream non-compliant files. Or would that mess with the current operation too much?

Thanks
F
fyodor is offline   Reply With Quote
Old 08-29-2008, 04:08 AM   #9
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
Been trying to get streams from http://www.americafree.tv to work but no luck. The stream plays in VLC but can't get your program to play them.

Also under Windows XP VLC doesn't close when exiting a stream on the Tivo. If a new stream is then played the result is the requested VLC stream fails to open and the opened VLC stream is played.
Allanon is offline   Reply With Quote
Old 08-29-2008, 07:52 AM   #10
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Quote:
Originally Posted by Allanon View Post
Been trying to get streams from http://www.americafree.tv to work but no luck. The stream plays in VLC but can't get your program to play them.
It's probably some attribute, such as the resolution, that's out of spec for the TiVo -- when I don't specify it, VLC uses the original when reencoding. I force the frame rate, the codec and the sample rate, but not everything.

Edit: OK, it's not obvious to me what URL from there I would pass to VLC. What are you using?

Quote:
Also under Windows XP VLC doesn't close when exiting a stream on the Tivo.
Works for me.

Edit: I just double checked, and yeah, it's still working for me.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 08-29-2008 at 01:34 PM.
wmcbrine is offline   Reply With Quote
Old 08-29-2008, 01:30 PM   #11
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
New version -- just internal rearrangement. See if it works any differently for you. (It shouldn't, and it doesn't for me, but you never know.)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-29-2008, 03:58 PM   #12
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
When trying the new version I get the following when running start.py in Windows XP:

Quote:
HME Server for Python 0.13
Skipping: cnn1 - No module named cnn1
Skipping: cnn2 - No module named cnn2
Skipping: cnn3 - No module named cnn3
Skipping: cnn4 - No module named cnn4
Skipping: cspan1 - No module named cspan1
Skipping: cspan2 - No module named cspan2
Skipping: cspan3 - No module named cspan3
Skipping: nasatv - No module named nasatv
Skipping: research - No module named research
Fri Aug 29 15:54:06 2008 Server Starts
EDIT: Just noticed your latest build didn't include the .py files for the streams.


EDIT: After adding the .py files for the streams I get the following error when trying to play a stream:

Quote:
HME Server for Python 0.13
Skipping: nasatv - No module named nasatv
Skipping: research - No module named research
Fri Aug 29 16:12:52 2008 Server Starts
Registering: cnn1
Registering: cnn2
Registering: cnn3
Registering: cnn4
Registering: cspan1
Registering: cspan2
Registering: cspan3
192.168.0.14:51524 - - [29/Aug/2008 16:13:09] code 404, message Not Found
192.168.0.14:51524 - - [29/Aug/2008 16:13:09] "GET /cnn1/icon.png HTTP/1.0" 404
-
192.168.0.14:51525 - - [29/Aug/2008 16:13:09] code 404, message Not Found
192.168.0.14:51525 - - [29/Aug/2008 16:13:09] "GET /cnn2/icon.png HTTP/1.0" 404
-
192.168.0.14:51526 - - [29/Aug/2008 16:13:10] code 404, message Not Found
192.168.0.14:51526 - - [29/Aug/2008 16:13:10] "GET /cnn3/icon.png HTTP/1.0" 404
-
192.168.0.14:51527 - - [29/Aug/2008 16:13:10] code 404, message Not Found
192.168.0.14:51527 - - [29/Aug/2008 16:13:10] "GET /cnn4/icon.png HTTP/1.0" 404
-
192.168.0.14:51528 - - [29/Aug/2008 16:13:10] "GET /cspan1/icon.png HTTP/1.0" 20
0 -
192.168.0.14:51529 - - [29/Aug/2008 16:13:10] "GET /cspan2/icon.png HTTP/1.0" 20
0 -
192.168.0.14:51530 - - [29/Aug/2008 16:13:10] "GET /cspan3/icon.png HTTP/1.0" 20
0 -
192.168.0.14:51569 - - [29/Aug/2008 16:13:13] code 403, message Forbidden
192.168.0.14:51569 - - [29/Aug/2008 16:13:13] "GET /cspan3/ HTTP/1.1" 403 -
----------------------------------------
Exception happened during processing of request from ('192.168.0.14', 51569)
Traceback (most recent call last):
File "C:\Python24\lib\SocketServer.py", line 463, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python24\lib\SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python24\lib\SocketServer.py", line 521, in __init__
self.handle()
File "C:\Python24\lib\BaseHTTPServer.py", line 314, in handle
self.handle_one_request()
File "C:\Python24\lib\BaseHTTPServer.py", line 308, in handle_one_request
method()
File "C:\Tivostreamingvideo\start.py", line 210, in do_GET
self._page(True)
File "C:\Tivostreamingvideo\start.py", line 162, in _page
raise Exception, "Can't find application class for %s" % name
Exception: Can't find application class for cspan3
----------------------------------------


Last edited by Allanon : 08-29-2008 at 04:18 PM.
Allanon is offline   Reply With Quote
Old 08-29-2008, 04:30 PM   #13
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Quote:
Originally Posted by Allanon View Post
EDIT: Just noticed your latest build didn't include the .py files for the streams.
I thought the zip file seemed a little small. Try it now.

Quote:
EDIT: After adding the .py files for the streams I get the following error when trying to play a stream:
You can't use the old ones; they're done in a new way.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-30-2008, 12:21 AM   #14
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
I fixed the VLC command window not closing problem by running a newer version of Python. I have both 2.4 and the latest version of Python installed but when double clicking on a .py file Windows launched Python version 2.4 instead of the latest. When launching with the latest version the VLC command window closed correctly.
Allanon is offline   Reply With Quote
Old 08-30-2008, 09:35 AM   #15
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Hmm. Perhaps I should recommend 2.5 in the docs...

How about this?

Quote:
Originally Posted by wmcbrine
OK, it's not obvious to me what URL from [americafree.tv] I would pass to VLC. What are you using?

__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-30-2008, 11:48 AM   #16
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
Here is the config I'm testing with:

Code:
TITLE = 'SciFi'
STREAM_URL = 'rtsp://video2.multicasttech.com/AFTVSciFiH2641000.sdp'
from hmevid import VideoStreamer

class Scifi(VideoStreamer):
    def startup(self):
        VideoStreamer.startup(self, TITLE, STREAM_URL, True)
These are all the SciFi streams from smallest to largest:

rtsp://video2.multicasttech.com/AFTVSciFiH26496.sdp
rtsp://video2.multicasttech.com/AFTVSciFiH264250.sdp
rtsp://video2.multicasttech.com/AFTVSciFiH264500.sdp
rtsp://video2.multicasttech.com/AFTVSciFiH2641000.sdp

Also, when trying to use TITLE = 'AFTV SiFi' it failed when trying to play the stream, what is the criteria for the title and class name?

Last edited by Allanon : 08-30-2008 at 12:42 PM.
Allanon is offline   Reply With Quote
Old 08-30-2008, 01:18 PM   #17
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Quote:
Originally Posted by Allanon View Post
Also, when trying to use TITLE = 'AFTV SiFi' it failed when trying to play the stream, what is the criteria for the title and class name?
None for the title. For the class name, just the usual Python rules.

The class name is not derived from the title. You can specify it explicitly as you do the title:

CLASS_NAME = 'Whatever'

but if you don't, it's derived from the module name, capitalized. (The module name is the name of the directory, although you can also do it as "module.py".)

Edit: OK, took a look at those streams. While VLC does play them (barely), I can't even get it to dump them to a file on disk. When watching live, I get a lot of breakup, stuttering, etc. They look about the same with MPlayer.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 08-30-2008 at 02:15 PM.
wmcbrine is offline   Reply With Quote
Old 08-30-2008, 10:36 PM   #18
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
Most of the time the streams play fine for me in VLC but I have seen times where the video is unwatchable. Maybe their servers get overload at certain times of the day.
Allanon is offline   Reply With Quote
Old 08-31-2008, 01:29 PM   #19
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
Here is a stream for PG24 which is a broadcast that covers online video gaming. It from the Czech Republic so it's not in English but if you like watching people play video games then you might like this stream.

Code:
TITLE = 'PG24'

STREAM_URL =  'rtsp://stream.pg24.tv/PG24-High'
#STREAM_URL =  'rtsp://stream.pg24.tv/PG24-Medium'
#STREAM_URL =  'rtsp://stream.pg24.tv/PG24-Low'

from hmevid import VideoStreamer

class Pg24(VideoStreamer):
    def startup(self):
        VideoStreamer.startup(self, TITLE, STREAM_URL, True)

EDIT:

And Here is another stream for ReelGood TV:

Code:
TITLE = 'ReelGood TV'
CLASS_NAME = 'ReelGoodTV'

STREAM_URL = 'rtsp://www.reelgood.tv/reelgoodtv'

from hmevid import VideoStreamer

class ReelGoodTV(VideoStreamer):
    def startup(self):
        VideoStreamer.startup(self, TITLE, STREAM_URL, True)

EDIT:

Here are some streams from WPTV. They have other streams but they are not in English:

Code:
TITLE = 'WPTV - Gaming'
CLASS_NAME = 'WPTV_Gaming'

STREAM_URL =  'mms://av.wp.pl/wptv-gry'

from hmevid import VideoStreamer

class WPTV_Gaming(VideoStreamer):
    def startup(self):
        VideoStreamer.startup(self, TITLE, STREAM_URL, True)
Code:
TITLE = 'WPTV - Lifestyle'
CLASS_NAME = 'WPTV_Lifestyle'

STREAM_URL =  'mms://av.wp.pl/wptv-lifestyle'

from hmevid import VideoStreamer

class WPTV_Lifestyle(VideoStreamer):
    def startup(self):
        VideoStreamer.startup(self, TITLE, STREAM_URL, True)


Last edited by Allanon : 08-31-2008 at 04:24 PM.
Allanon is offline   Reply With Quote
Old 08-31-2008, 03:00 PM   #20
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
Below is a stream that has multiple video tracks. Each track has a different video resolution. I can use the video track selector option in VLC's GUI to see the different tracks but I don't know how to select the video track from the VLC command line. Do you know how and can you add support for changing the VLC command line parameters in the .py stream file so the video track can be selected?

rtsp://av.wp.pl/wptv-film
Allanon is offline   Reply With Quote
Old 08-31-2008, 06:32 PM   #21
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
I don't know, sorry. I'll continue looking.

Amusingly, this thread is now the #3 result on Google for "vlc multiple video tracks".
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 08-31-2008, 06:49 PM   #22
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 516
I found this: http://www.videolan.org/doc/streamin...o/en/ch03.html

Search the page for "video track", the paragraph where the first instance is found might be the answer but I'm not sure.
Allanon is offline   Reply With Quote
Old 08-31-2008, 07:33 PM   #23
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Nope, that's not it.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 09-05-2008, 07:30 PM   #24
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
2.0 -- Now presents itself as one app, generates its own menu, and uses a config.ini file to define the streams.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 09-07-2008, 07:57 PM   #25
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Version 2.1 -- support for local streams

I guess some people will think this is the first useful version -- it now supports streaming your local files (and navigating through them) as well as Internet streams. See config.ini for some example file shares (commented out) -- basically, you use "dir" instead of "url" to specify them.

Local files can be transcoded, just like streams. I almost didn't include this, because it should really be done in a different way, rather than using a method designed for live streaming. You may miss a bit from the beginning, and the image may be messed up at first. But, it worked better than I expected, so I'm going ahead with it. (MPEG files won't have this problem -- files with an ".mpg" or "mp4" extension.)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 09-07-2008, 11:00 PM   #26
StanSimmons
Senior Moment Member
 
Join Date: Jun 2000
Location: Flower Mound, TX, USA
Posts: 4,717
Quote:
Originally Posted by wmcbrine View Post
I guess some people will think this is the first useful version -- it now supports streaming your local files (and navigating through them) as well as Internet streams. See config.ini for some example file shares (commented out) -- basically, you use "dir" instead of "url" to specify them.

Local files can be transcoded, just like streams. I almost didn't include this, because it should really be done in a different way, rather than using a method designed for live streaming. You may miss a bit from the beginning, and the image may be messed up at first. But, it worked better than I expected, so I'm going ahead with it. (MPEG files won't have this problem -- files with an ".mpg" or "mp4" extension.)
Ohhh, that sounds like what I'm needing.

Unfortunately, I'm away from the house for a week and can't play.
__________________
Stan

"easy as 3.141592653589793238462643383279502884179"
StanSimmons is offline   Reply With Quote
Old 09-09-2008, 09:34 AM   #27
dankruse
Registered User
 
Join Date: Apr 2005
Posts: 17
Hey, thanks for the app.

Here is some feedback for you.

Just a heads up the the lastest VLC nightly build doesn't seem to work 0.9.2. It does work with VLC 0.8.6.

Also, it doesn't seem to create correct URLs when the config.ini dir path contains a different partition ( Windows C:\ etc.. ).

Local files seem to work when they require transcoding, but my compatible mpg files all fail with 404 errors.

HME Server for Python 0.14
Tue Sep 09 10:16:25 2008 Server Starts
Registering: hmevlc
192.168.1.3:46180 - - [09/Sep/2008 10:16:31] "GET /hmevlc/icon.png HTTP/1.0" 200
-
192.168.1.3:46182 - - [09/Sep/2008 10:16:32] "GET /hmevlc/ HTTP/1.1" 200 -
192.168.1.3:46182 - - [09/Sep/2008 10:16:32] Starting HME: hmevlc
192.168.1.3:46183 - - [09/Sep/2008 10:16:46] code 404, message Not Found
192.168.1.3:46183 - - [09/Sep/2008 10:16:46] "GET /My%20Documents/My%20Videos%5C
DVD%20Movies%5CBarnyard.mpg HTTP/1.1" 404 -
192.168.1.3:46184 - - [09/Sep/2008 10:16:59] code 404, message Not Found
192.168.1.3:46184 - - [09/Sep/2008 10:16:59] "GET /My%20Documents/My%20Videos%5C
DVD%20Movies%5CBee%20Movie.mpg HTTP/1.1" 404 -
192.168.1.3:46185 - - [09/Sep/2008 10:17:07] code 404, message Not Found
192.168.1.3:46185 - - [09/Sep/2008 10:17:07] "GET /My%20Documents/My%20Videos%5C
DVD%20Movies%5CEnchanted.mpg HTTP/1.1" 404 -
192.168.1.3:46190 - - [09/Sep/2008 10:21:00] code 404, message Not Found
192.168.1.3:46190 - - [09/Sep/2008 10:21:00] "GET /My%20Documents/My%20Videos%5C
DVD%20Movies%5CHappily%20NEver%20After.mpg HTTP/1.1" 404 -
192.168.1.3:46193 - - [09/Sep/2008 10:21:57] code 404, message Not Found
192.168.1.3:46193 - - [09/Sep/2008 10:21:57] "GET /My%20Documents/My%20Videos%5C
DVD%20Movies%5CMeet%20the%20Robinsons.mpg HTTP/1.1" 404 -
192.168.1.3:46182 - - [09/Sep/2008 10:22:57] Ending HME: hmevlc
1
dankruse is offline   Reply With Quote
Old 09-09-2008, 10:45 AM   #28
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
Quote:
Originally Posted by dankruse View Post
Also, it doesn't seem to create correct URLs when the config.ini dir path contains a different partition ( Windows C:\ etc.. ).
The way around this is to specify the datapath on the command line. I used an entry like this successfully:

Code:
[Movies]
dir=e:\home\movies

[Misc]
dir=e:\home\Desktop\misc
by invoking the program like this:

Code:
python start.py --datapath e:\
Alternatively, you can edit the "data_root = " line in start.py. The default datapath is "/", which should work for a single drive if you leave off the drive letter, and use slashes instead of backslashes in the config.ini. However, you can't have shares on multiple drives at the same time. You could work around that by using "join", or, preferably, by using a real operating system.

I know this is an area that needs work.

P.S. What exactly happens with the VLC nightly?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 09-09-2008 at 11:15 AM.
wmcbrine is offline   Reply With Quote
Old 09-09-2008, 10:37 PM   #29
Danimal4326
Registered User
 
Danimal4326's Avatar
 
Join Date: Apr 2003
Posts: 47
have you used any of the resolution options to set the resolution of the app to a HD res such as 1280x720 versus the standard 640x480 that HME uses?
Danimal4326 is offline   Reply With Quote
Old 09-09-2008, 10:57 PM   #30
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,947
The app runs at 640x480. However, this only applies to the menus and overlays -- HD streams will play in HD.

I think the menus and overlays look pretty good as is (apart from some cropping in the info bar, which is fixed for the next release), and HD HME is just slightly harder to work with (you can't set a background color on a view larger than a certain size), so I haven't bothered in this case.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 05:48 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |