1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. Dec 1, 2007 #1201 of 5683
    rgr

    rgr Member

    582
    6
    Feb 21, 2003
    Thanks for the encouragement. I've experimented with both the "master" and "subfolder" builds and settled on the "subfolder" as I like the way it allows me to keep my existing storage location and gives good file names. For some reason the "master" would show me a subfolder but none of the files in the subfolder.

    I have: a Series3
    a Toshiba 56mx195 widescreen tv
    pc is core2duo on an evga 6801 mobo w/ 2g memory running xp sp2
    wired network

    Here is my stripped down pyTivo.conf file.
    ---------------
    [Server]
    port=9032
    ffmpeg=C:\Documents and Settings\RR\Desktop\pyTivo\plugins\video\ffmpeg_mp2.exe
    beacon=255.255.255.255
    ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

    [_tivo_648fffffff] (fffff to hide true number)

    [MyMovies]
    type=video
    path=C:\Documents and Settings\RR\My Documents\TiVoVids

    [RRShare]
    type=video
    path=Z:\Video
    -------------------
    Seems to be working with no changes to any other files. I had one tivo reboot on my first transfer after a backed out of the folder and paged down a few times, none since then.
    [Edit - just had another reboot about a half hour after posting the comment - any idea how to prevent this?]

    Any suggestions would be welcome.

    Three questions:
    1) the Time on transferred files seems to be 8 hours off (I live in San Francisco, which is GMT-8) any way to get the correct transfer time?
    2) is there an ffmpeg parameter to control volume? The transferred files seem loud.
    3) the subfolder names all end in (0) - should that be populated with the number of recordings in the subfolder?

    I experimented with tivodotnet a few days ago and prefer pytivo so far. Tivotogo was big and started way too many services for what I wanted, and galleon also had more add-ons than I was looking for. Pytivo seems to be the exact stripped down media server type app I want. Thanks!
     
  2. Dec 1, 2007 #1202 of 5683
    dlfl

    dlfl Cranky old novice

    6,994
    16
    Jul 6, 2006
    Near...
    Sounds like you're up and rolling pretty quick. Don't see any problem with your config file. The ffmpeg documentation doesn't say anything about changing audio volume. I know you could do it if you ran it through VideoReDo.

    Hope an OP can help you with the other questions. (I don't run subfolders or an S3). Also there may be some config file parameters such as width, height, video_br and audio_br that you want to set different than defaults depending on the S3 and your TV formats and quality, but I don't have experience in the HDTV area. Just scan this thread over the last month or two to see what other S3/HDTV folks prefer.
     
  3. Dec 1, 2007 #1203 of 5683
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    Do you have cable? The grouping was probably promoted by guide data if you have cable. I think the Tivo will download guide data for all cable channels, even if you don't subscribe.

    Also, it does not look like all Unbox downloads are assigned an MV number. As a test, I re-downloaded an episode of Heroes I purchased from Unbox a while back. It was given an SH series ID and a TS ProgramID.

    I noticed in the link to TivoJerrys post that someone provided, TivoJerry mentioned ProgramID as affecting MRV grouping. He said:

    Not sure how ProgramID and SeriesID are related, but it sounds like they work together.
     
  4. Dec 1, 2007 #1204 of 5683
    PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Yes, Comcast. You're probably right.

    Curious. So, you think TV shows always get an "SH", no matter where you get them from (cable, Unbox, etc) ?


    I wonder if zap2it has ProgramID info as well ? :)
     
  5. Dec 1, 2007 #1205 of 5683
    ghasty

    ghasty New Member

    7
    0
    Dec 28, 2004
    ARGH. pyTivo suddenly stopped working reliably on my Win2003 box...not sure what I did but have just reloaded a sompletly fresh install (went back to 201 even) and I can view some of my folders but most are not showing any videos. If anyone has any ideas...please let me know. Doesn't seem to matter what type of video is present or logic I can find. Here's an example of the config file:

    [Server]
    port = 9032
    ffmpeg = f:\pytivo\plugins\video\ffmpeg-mp2.exe

    [Movies]
    type = video
    path = x:\video\movies

    [Mythbusters]
    type = video
    path = x:\video\mythbusters


    when I try this URL (http://server:9032/TiVoConnect?Command=QueryContainer&Container=Mythbusters) I'm getting a list of the videos...when I try (http://server:9032/TiVoConnect?Command=QueryContainer&Container=Movies) I'm getting nothing but on the server pytivo window I now have:
    ----------------------------------------
    Exception happened during processing of request from ('192.168.2.53', 4420)
    Traceback (most recent call last):
    File "F:\Python25\lib\SocketServer.py", line 464, in process_request_thread
    self.finish_request(request, client_address)
    File "F:\Python25\lib\SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File "F:\Python25\lib\SocketServer.py", line 522, in __init__
    self.handle()
    File "F:\Python25\lib\BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
    File "F:\Python25\lib\BaseHTTPServer.py", line 310, in handle_one_request
    method()
    File "F:\pyTivo\httpserver.py", line 64, in do_GET
    method(self, query)
    File "F:\pyTivo\plugins\video\video.py", line 81, in QueryContainer
    t.files, t.total, t.start = self.get_files(handler, query, VideoFileFilter)
    File "F:\pyTivo\plugin.py", line 52, in get_files
    files = filter(filterFunction, files)
    File "F:\pyTivo\plugins\video\video.py", line 75, in VideoFileFilter
    return transcode.suported_format(full_path)
    File "F:\pyTivo\plugins\video\transcode.py", line 293, in suported_format
    if video_info(inFile)[0]:
    File "F:\pyTivo\plugins\video\transcode.py", line 224, in video_info
    ffmpeg = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIP
    E, stdin=subprocess.PIPE)
    File "F:\Python25\lib\subprocess.py", line 593, in __init__
    errread, errwrite)
    File "F:\Python25\lib\subprocess.py", line 815, in _execute_child
    startupinfo)
    WindowsError: [Error 2] The system cannot find the file specified
    ----------------------------------------


    The directory has around 15 files (.tivo, .mp4, .avi, etc)

    Help...
     
  6. Dec 1, 2007 #1206 of 5683
    rseligman

    rseligman Active Member

    1,124
    0
    Dec 5, 2000
    CA
    Hi, all. I haven't contributed to this post at all, but I'd like to suggest that you consider letting this mammoth pyTivo thread die out, and just go back to posting new threads for new topics.

    I've had some pyTivo questions myself, and having to look through a 1200+ post, 45 page topic is not very efficient. Does every pyTivo post need to be in a single thread?

    Plus, it was just by accident that I saw something about the new metadata features in a previous post. That's a cool new feature, but instead of it being announced in a brand new thread, it was buried on page 35 of a huge thread started a year ago.

    Anyway, not a complaint, just a request for those of us who haven't been keeping up with all 1207 posts here. Thanks for listening.
     
  7. Dec 2, 2007 #1207 of 5683
    dlfl

    dlfl Cranky old novice

    6,994
    16
    Jul 6, 2006
    Near...
    As we now know, ffmpeg versions 10464 and 10908 can be used by pyTivo with a small edit in transcode.py. However not all H264 videos in MKV containers are handled properly by either of these versions, I have found.

    I use AutoMKV to encode this type video. For one 2.5 min mpeg2 clip, I created two versions using different 1-pass profiles and one using a 2-pass profile. The 2-pass version transcodes fine using either version of ffmpeg. The 1-pass versions transcode with the video in slow motion -- audio is OK. I can't blame it on the MKV files because they all play fine in VLC player.

    Edit: Just tried this with r11050. Still the same problem. Also had to modify transcode.py because this version says 29.97 tb instead of 29.97 fps.

    tb???? It stands for time base and it happened with r11007. Transcode.py will have to be modified for all versions starting with that one. Here is a mod that I believe covers both before and after r11007, in function def video_info(inFile):
    :

    Code:
        rezre = re.compile(r'.*Video: .+, (.+) fps.*')
        x = rezre.search(output)
        if x:
            fps = x.group(1)
        else:
        # for ffmpeg version 11007 and beyond
            rezre = re.compile(r'.*Video: .+, (.+) tb.*')
            x = rezre.search(output)
            if x:
                fps = x.group(1)
            else:
                info_cache[inFile] = (mtime, (None, None, None, None, None))
                debug_write(['video_info: failed at fps\n'])
                return None, None, None, None, None
    
    Since I think MKV/H264 decoding was just recently added to ffmpeg, and may still be under development, I assume this is just the way it is now. I would be curious about experiences others are having however.
     
  8. Dec 2, 2007 #1208 of 5683
    jcthorne

    jcthorne Active Member

    2,719
    2
    Jan 28, 2002
    Houston
    I have seen the same thing wrt mkv files and ffmpeg. The 10908 verson is far better than the one shipped with pyTivo but still has some problems.

    Are there any other utilities you can recommend to get video out of an mkv container into a more mainstream format...perhaps directly to mpeg2?
     
  9. Dec 2, 2007 #1209 of 5683
    jcthorne

    jcthorne Active Member

    2,719
    2
    Jan 28, 2002
    Houston
    I was just wondering if some smart python programmer could come up with a simple photos app for pyTivo. The music and video sections work so well and I have pretty much left tivo desktop in the dust, but would like to get our photo albums back on the tivo menu. Other suggested workarounds that get along with pyTivo?
     
  10. Dec 2, 2007 #1210 of 5683
    BillB

    BillB New Member

    23
    0
    May 19, 2002
    Difference between Master and Subfolder Editions?

    I am using the Master edition. If, for example, I want to put a series of TV episodes into a subfolder called 24, I get several 24's in the Now playing list under My Movies/24. I have to make a subfolder on the computer for each episode, ie, 24 6x01, 24 6x02, etc.

    Does the subfolder edition allow you to make one subfolder (24) and place all of the episodes in it so you can see each episode in the Now Playing List?

    Many thanks,

    Bill
     
  11. Dec 2, 2007 #1211 of 5683
    rgr

    rgr Member

    582
    6
    Feb 21, 2003
    That's odd - when I tried the Master edition I was getting (to use your example of 24) a listing of programs only under whatever folder I opened first, every other folder I opened showed the same file listing. For instance:
    On the pc I had a folder 24 with 5 episodes and a folder Whose Line with 10 episodes. I would then start up pytivo. On the tivo I would see MyMovies/24 and MyMovies/Whose Line. If I opened up the 24 folder I'd see all 5 episodes, after that if I opened up Whose Line, I'd see the same 5 episodes for 24. Had I opened Whose Line first I'd be seeing the same 10 episodes under every folder.
    With the Subfolder build I see the episodes for each folder in each folder which is what I want. When I transfer it comes across as the name of the folder for each episode - so each episode comes over as "24" or "Whose Line" but then when I get info on the transferred file the name I had on the pc is showing as the episode title - "24 6x01"

    Understand what I mean?
     
  12. Dec 2, 2007 #1212 of 5683
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Well I am almost finished with a little .NET application that will allow you to use the Amazon.com web services to search for a movie title and then save the information into a TXT file for the meta data stuff.

    It's going pretty well...I can't seem to get the web service to give me the list of actors in the movie.

    I have to use Amazon.com because it's about the only web service around that gives this type of information...there is no web service available for TV shows is there?

    Basically, my little app will search for a movie title, then give a list. You click on the one you want and it then gives you all the available meta data fields that can be filled (that comes from Amazon). I have to go away for work next week, but hopefully I can finish it next week. If I am proud of it :), I will give you guys the app :)
     
  13. Dec 3, 2007 #1213 of 5683
    Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    I'm getting Tivo reboots while watching movies via pyTivo. I'm not picky what it looks like, I just want it to play. Can anyone make suggestions to these settings?

    [MyMovies]
    type = video
    path = F:\VideoFiles

    [Server]
    ffmpeg = C:\Program Files\TiVo\pyTivo\plugins\video\ffmpeg_mp2.exe
    beacon = 192.168.0.255
    audio_br = 192K
    port = 9032
     
  14. Dec 3, 2007 #1214 of 5683
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    I tried out AutoMKV and got the same slow motion video with the 1-pass encode. It sure seems slow to encode though. But it looks like encoding can be speeded up some by starting the program at the lowest priority. I noticed during the resize pass that AutoMKV was using 30% cpu and x264.exe was using 60%. After lowering the priority of AutoMKV, x264.exe is using 95% cpu and my remaining time estimate for the autoresize pass has been reduced an hour.
     
  15. Dec 3, 2007 #1215 of 5683
    BillB

    BillB New Member

    23
    0
    May 19, 2002
    I think I understand. It seems that you are getting the same behavior with the Subfolder edition as I get with the Master Edition.

    It seems to me that the developers are spending more time with metadata features, rather than fixing the basic features first.

    Bill
     
  16. Dec 3, 2007 #1216 of 5683
    dlfl

    dlfl Cranky old novice

    6,994
    16
    Jul 6, 2006
    Near...
    Mmmm.... We'lll have to take that into account when we set their next pay increase! :D
     
  17. Dec 3, 2007 #1217 of 5683
    TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN
    This is one of those things that has been around for a while, and was worked on extensively when it came up, but without reading this whole monster thread, you might miss.

    Version 8.3 of the Tivo software broke how the Tivo reads folders. It is not something that can be fixed by pyTivo, since it is a bug in the Tivo software, and one they don't care about fixing, since they don't use subfolders. (or really folders at all - just grouping.

    The bug causes the behavior you've observed: Once you enter a subfolder, every folder you enter from then on, appears to have the same content.

    The subfolders branch of pyTivo is an attempt to work around the bugs in the Tivo, while having subfolders still work. It does make subfolders list the correct content, however with version 9, it sometimes relapses into the original behavior. (ie, same content in every subfolder) I don't think the developer who created this branch has worked on it since version 8.3. The other drawback is that it sometimes crashes the TiVo. With version 9, this problem has increased too.

    The other "work around" is to not really support subfolders, but instead create a new pyTivo Share for every subfolder on your machine. This is an option that can be set in the config file. If you use the "subfolders" branch, and turn this on, you'll still have the crash problems that the subfolders branch causes, so I would use the Master edition.

    If you really want to have subfolders working, use the subfolders version. (Not necessarily the one that supports metadata) What I do to avoid a crash is this:
    Every time I go into a subfolder, and into the details of a show, I exit using the Tivo Button, and going back to NPL that way. If you back out of the details of the show, you can crash the Tivo.
     
  18. Dec 3, 2007 #1218 of 5683
    grahamkent

    grahamkent New Member

    16
    0
    Feb 15, 2003
    Seattle, WA
    ghastly,

    Just one idea. You have a dash instead of an underscore in your path to ffmpeg.



    This may very well be correct if you've changed what version of ffmpeg you are using, but if you're using the default, I believe the path should be to ffmpeg_mp2.exe NOT ffmpeg-mp2.exe.
     
  19. Dec 3, 2007 #1219 of 5683
    grahamkent

    grahamkent New Member

    16
    0
    Feb 15, 2003
    Seattle, WA
    MC, I haven't used this site in any apps, but I have been using it for metadata in the files I've been creating by hand. I'm not certain if the series IDs are valid, but if they are it would be a great source for TV data. Sadly, they don't have movie data.

    http://thetvdb.com/index.php
     
  20. Dec 3, 2007 #1220 of 5683
    rschwarz_jr

    rschwarz_jr New Member

    18
    0
    Apr 16, 2002
    Philly
    XBMC uses Tv.com (and others) and that works perfectly for me. I'm not sure if it has all the info but it scrapes quite a bit from the site.
     

Share This Page