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. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    I tried that, but it still transcodes to 4096K and transcodes the audio. That's the point, I can't get it to transcode higher than 4M.
     
  2. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Then you'll have to manually over-ride the ffmpeg_parms line in your pytivo.conf file to hard-code the video_br.

    It's absolutely something you can do. I've over-ridden my set up to transcode to 10Mbps. However, I'm at work, and pyTivo's at home, so I can't attach my config at the moment.
     
  3. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    That's a different issue. I'm talking about it coming up for no detectable reason at all.
     
  4. Mar 1, 2008 #1824 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Well, it's getting closer, but it still isn't right. No matter what I try, it transcodes the audio (or refuses to work at all) from 5:1 to regular stereo or else trashes the audio. It doesn't sound bad in stereo, but it's nowhere nearly as rich as 5:1. I tired - ac 5 and -ac 5:1, but both result in really horrible sounding 5 channel audio. It also transcodes to 1440 x 720 no matter what I try. I've done -s hd1080 and -s 1920x1080, but it still down-reses from 1920 x 1080 to 1440 x 720.

    Here is my current parms:
    Code:
    ffmpeg_prams = -vcodec mpeg2video -r 29.97 -s 1920x1080 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -acodec ac3 -ac 2 -ab %(audio_br)s -ar 48000 -f vob -
     
  5. Mar 1, 2008 #1825 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Use "-acodec copy" to keep it from transcoding the audio (and take out the "-ac 2").
     
  6. Mar 1, 2008 #1826 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Ah! I saw that option on the support page, but I didn't understand what it meant.

    OK, so now what about the fact it won't keep the video resolution? The video looks pretty good at 1440 x 720 and about 6 - 7 Mbps, but there are still artifacts in some scenes, especially low light scenes with a lot of raster (like the evening scenes in Lawrence of Arabia with lots of sand in the background).
     
  7. Mar 1, 2008 #1827 of 5684
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    lrhorer,

    It sounds like you have an S3/HD Tivo. If you download the latest version from here, and use the conf in the same post, I think it will provide the results you are looking for.

    http://pytivo.krkeegan.com/viewtopic.php?p=518#518

    It will retain all the following aspects of the source file automatically: ac3 audio, resolution, frequency, frame rate. mpeg video will not be re-encoded unless bitrate is above 17408k. And audio will not be re-encoded unless it is above 448k.

    I think the only thing you would want to change is to set max_video_br=12000k since you are trying to force pyTivo to transcode high video bitrate sources to reduce pixelation problems on the tivo.

    The pyTivo Wiki also provides a detailed description of the other various settings.
    http://pytivo.armooo.net/wiki/ConfigurepyTivo
     
  8. Mar 2, 2008 #1828 of 5684
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    lrhorer,

    I have updated the Wiki with the most current default ffmpeg_prams. It was quite outdated and appears to have been the source of your troubles. The example in pytivo.conf.dist distributed with pytivo is usually kept more up-to-date.
     
  9. Mar 2, 2008 #1829 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    It even looks like it and smells like it, so I probably do. :p

    Oh, that's *MUCH* better. Thanks a ton!

    Even without it, it's working vastly better than before. You're right, though, some shows with bit rates below 17M still have some issues. Not surprisingly they are much less problematical than those with bit rates above 17M, but I think I'll put in the 12M limit anyway, or maybe play around with it a bit to find an optimal value which reduces transcoding artifacts to a minimum while getting rid of most of the skipping issues. Once again, thank you.
     
  10. Mar 2, 2008 #1830 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Hey, folders are working! I don't know if this is old news or not. I just did a search of this thread and didn't find anything conclusive, but I downloaded wgw's most recent version, and folders are working great now. The main NPL shows the correct number of items in each folder, and I can browse a folder, go back up one level, browse another folder, and get the correct folder information for the second folder. Did someone figure a way around TiVo's quirky folder handling, or is this something TiVo fixed when I wasn't looking?
     
  11. Mar 2, 2008 #1831 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    I have a couple of feature requests.

    1. I use a number of programs to put videos onto the file server (galleon, TyTool, etc), and they all by default or configuration add the date and if applicable the channel to the file name. This works great for helping organize the server, but it would be nice if pyTiVo didn't display this info in the NPL. The additional data is contained within parentheses directly preceding the extension. Could we get an option (possibly user configurable) to not display anything in parentheses directly preceding the extension in the NPL?

    2. I use the format <Series Name> - <Episode Title> in the filename to identify programs which are part of a series, and then of course I put them all in a folder of the same name. When pyTiVo displays the names in the NPL, this is how they come up, except of course the Episode title is probably half chopped off. It would be great if pyTivo would eliminate any leading string of the form "Name of Show -" if the subfolder name is "Name of Show".
     
  12. Mar 2, 2008 #1832 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Yeah, you're way behind. Sorry, I'm not sure if it was announced in this thread or not -- most of the discussion is going on over on the pyTivo forum now.

    They're only partly working -- see below.

    Yep -- it involves adding a "UniqueID" for each folder. However, it still only works for the topmost level of folders. (Which makes sense in a way, because the TiVo box itself only supports one level of folders.) To go lower, you have to enable "hack83" (put "hack83=True" in the Server section of pyTivo.conf), but that's slower and sometimes unstable.

    Re: your requests about the display -- maybe -- but in the meantime, you might want to try using metadata files to get the episodes to show up the way you like.
     
  13. Mar 3, 2008 #1833 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    'Figures

    That is sufficient for my purposes at this time.

    I thought the metadata files only affected the information once one drilled into a program listing, not how it was displayed in the upper level of the NPL. Of course, I must admit I haven't done any research on the topic, yet.
     
  14. Mar 3, 2008 #1834 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Nope, they work everywhere.
     
  15. Mar 3, 2008 #1835 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Ooof!! I downloaded the MetaGenrator, and it's a neat little program, but I have hundreds of videos. Manually creating a metafile for each one will take an enormous amount of time. Not only that, but per the discussions above, it's not working for movies right now.
     
  16. Mar 4, 2008 #1836 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    The metadata files are just text files. You can make them with a text editor, with a script, or with gmd's program. You don't need to use MasterCephus' program.
     
  17. Mar 4, 2008 #1837 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    I haven't seen gmd's program. I'll look it up.

    A script is a real possibility. I'm running under Linux, so there are plenty pf tools for building the script. Of course the data provided by MasterCephus' program is really slick, if the movie section gets fixed, but I have to weigh that against the rather daunting prospect of wading through hundreds of programs. Even at less than a minute apiece, it's a lot of work.
     
  18. Mar 7, 2008 #1838 of 5684
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Just want everyone to know that the newest version of the MetaGenerator works with Movie Data again. Movie-xml is back up for the time being. The only thing that I know does not work is movie titles with less than 4 characters. So if you search for 300, you will get no results. Zag2Me is working on fixing this so when he fixes it, it will just work. I will keep an eye out and notify everyone when it's working again.

    Click on the link in my signature to download.
     
  19. Mar 9, 2008 #1839 of 5684
    bschuler2007

    bschuler2007 Frustrated owner

    325
    0
    Feb 25, 2007
    Thank you!!!

    Having used Pytivo for over a year with my S2, I had issues updating, so I just stuck to the old version.

    Well I just updated using the windows installer version, and a grown man just got emotional over his Tivo's abilities again... thank you! Thank you all for working so hard to develop such an amazing and worthwhile piece of software. It truely is amazing.

    My folders work, the the item count works.... uh oh.. were did I put my tissues.

    Thanks again!
     
  20. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Shall we stand by with a resuscitation cart? :)
     

Share This Page