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

    fred22 New Member

    41
    0
    Nov 11, 2007
    Sorry, if this is answered - did a quick search and the thread is now so long....

    Can MP3's be played through folders? I have a Dylan subfolder and under that various albums' folders. I have to drill through to find mp3's in an album folder. But once that album has played, pytivo stops the music. Am I missing something or can pytivo negotiate into the next folders.

    \Dylan
    \dylan\nashville
    \dylan\whatever1
    \dylan\whatever2

    And then more of my music rather than being limited to ONE album or having to copy all of my mp3's into one large unregimented folder scheme.

    (Off this topic - I am reading the stuff about metadata with interest but it is beyond me at this time)

    Thanks in advance
     
  2. armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    You should now be able to set all this metadata in the text file. If it starts with a 'v' you can have more than one line with that type of data.

    Code:
    seriesId
    showingBits
    time
    vActor
    vChoreographer
    description
    vDirector
    episodeNumber
    title
    vExecProducer
    vProgramGenre
    vGuestStar
    vHost
    isEpisode
    originalAirDate
    vProducer
    vSeriesGenre
    seriesTitle
    seriesTitle
    vWriter
    displayMajorNumber
    displayMinorNumber
    callsign
    startTime
    stopTime
    
     
  3. armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    It looks like the tivo is sending a request to include the music from all subfolders and pytivo ignores it and just sends back the music for that one folder. So I is a bug a never noticed (I always want to play an album). It also looks like the random is not supported.
     
  4. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    I'm trying out version 12805...

    For a video called Lost Worlds - ''Pirates of the Caribbean''.mpg
    located in this share:

    [USB_QSF]
    type=video
    path=I:\Videos\QSF

    My metadata file contains:

    description : Ranging from the icy docks of Bristol, England, (etc. etc.)
    episode_title : Pirates of the Caribbean
    series_id : SH792856
    episode_num : 232
    displayMajorNumber : 16
    callsign : PBS
    #capture_date : 0x4744E2A0
    time : 2007-11-22T02:00:00Z
    title : Lost Worlds ''Pirates of the Carribean''
    vProgramGenre : Documentary
    vProgramGenre : Adventure
    originalAirDate : 2007-11-21T00:00:00Z

    When I select this file in NPL, the large main title is "QSF" (which has to be coming from the share path). The lower small title contains the title.

    The callsign, displayMajorNumber and episodeNumber don't show up on the first screen or in the info screen.

    ????
     
  5. MT-Hand

    MT-Hand New Member

    26
    0
    Mar 5, 2005
    Here is the relevant part of my pyTivo.conf file.

    Code:
    #Full path to ffmpeg including filename
    #For windows: ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    #For linux:   ffmpeg=/usr/bin/ffmpeg
    #ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    
    #ffmpeg=/usr/bin/ffmpeg
    #ffmpeg=/opt/local/bin/ffmpeg
    #ffmpeg=/usr/local/bin/pyTivo/ffmpeg
    ffmpeg=/Applications/pyTivo/ffmpeg
    
    #This will make a large debug.txt file in you base directory.  It only debugs
    #transcode.py right now.
    debug=true
    
    # Audio bit-rate, default 192K
    #audio_br=192K
    
    # Video bit-rate, default 4096K
    #video_br=12Mi
    
    #Beacon broadcast address(es)
    #Typically use 255.255.255.255 but on some multihomed machines you may
    #need to specify the subnet broadcast address(es) of your Tivo boxes
    #beacon=255.255.255.255
    
    #Output Pixel Width: if you have an HDTV you might want to try 720 or 704
    #Valid: 720, 704, 544, 480, 352
    #width=1440
    #height=720
    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 -
    
    
    I currently have ffmpeg located at /Application/pyTivo/ffmpeg, but as you can see from three lines above that one (commented out), I've tried numberous other options. I should clarify that I am trying to use the pre-compiled version of ffmpeg from http://homepage.mac.com/bedelman/ffmpeg_Mac_8222.zip. When I attempted the MacPorts method, I had even more problems. Do you think that could be part of my problem?

    Thanks,
    Todd
     
  6. armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    The callsign and displayMajorNumber were my fault.

    The others look like names that changed to match with was in the TVBus XML.

    title is now the episode title and there is a new seriesTitle.
    And the names with _ are not used any more and names the match the TVBus node names.
     
  7. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    143ca works fine! Haven't tested every last item. The episodeTitle doesn't show up anywhere that I can see but title and seriesTitle seem enough. TivoDecode xml chunks show an episodeTitle for a series episode but none for a movie. The title and seriesTitle are in both and they are identical. Thus the following mapping works:

    TivoDecode chunk --> pyTivo metadata file

    episodeTitle ---> title (absent for movies)
    title (or seriesTitle) ---> seriesTitle

    Great work! Thanks
     
  8. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    For a series episode, e.g., "The Initiation" from the "Office" series, to get the right titling on the first screen after selecting from the NPL, you have to use

    title : The Initiation
    seriesTitle : The Office

    However all that shows in the NPL listing is the title, i.e., "The Initiation" while what you want is something like The Office - ''The Initiation''. The actual file name is ignored now, which isn't all bad because it's cluttered up with the "(Recorded <date>, <call sign>)" that is automatically added during TTG.

    But this behavior is somewhat undesirable -- could it be improved?

    Thanks
     
  9. wgw

    wgw New Member

    217
    0
    May 16, 2007
    I see that the latest version automatically uses the subfolder name as the title and the file name as the episode name. Makes sense because it eliminates the need to specify those attributes in a txt file.

    Could you go one step further and have the program scan the folder for a file called __defaultMetadata.txt which would contain overriding metadata attributes that would be applied to all files in that folder. That way we could just create one txt file for the whole folder instead of separate txt files for each episode. Specifically, I want to place the SeriesID in defaultMetadata.txt so that everything in that folder will be grouped by folder on the Tivo. And those using parental controls would probably want to use this to specify a TVrating for all files in the folder. Genre would also apply.
     
  10. bschuler2007

    bschuler2007 Frustrated owner

    325
    0
    Feb 25, 2007
    Sorry for the interruption..

    But I just wanted to thank all the developers out there who made pyTivo work and those who made it continue to work and expand. Thank you!
     
  11. scrappydog65

    scrappydog65 Long Time TiVo User

    29
    0
    Dec 29, 2003
    Pennington, NJ
    Let me second that thank you. PyTivo is absolutely incredible!!!! Gotta like something that works and only takes up around 40kb of memory. I'm a big fan of Galleon too, but unfortunately that takes up 360kb of memory. If only Galleon could be re-written in Python instead of Java.

    Mike
     
  12. freq

    freq New Member

    2
    0
    Nov 19, 2007
    ==========
    There isn't a router between the pc and tivo.
    Same results with or without windows firewall running.
    Here's my .conf ..

    [Server]
    port=9032


    #Full path to ffmpeg including filename
    #For windows: ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    #For linux: ffmpeg=/usr/bin/ffmpeg
    ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    #ffmpeg=/usr/bin/ffmpeg

    #This will make a large debug.txt file in you base directory. It only debugs
    #transcode.py right now.
    #debug=false

    # Audio bit-rate, default 192K
    #audio_br=192K

    # Video bit-rate, default 4096K
    #video_br=12Mi

    #Beacon broadcast address(es)
    #Typically use 255.255.255.255 but on some multihomed machines you may
    #need to specify the subnet broadcast address(es) of your Tivo boxes
    #beacon=255.255.255.255
    #beacon=192.168.15.101
    beacon=255.255.255.255

    #Output Pixel Width: if you have an HDTV you might want to try 720 or 704
    #Valid: 720, 704, 544, 480, 352
    #width=1440
    #height=720
    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 -

    ##Per tivo options
    # section named _tivo_TSN with the tsn in all caps
    [_tivo_00000DEADBEEF]

    #If you want to use 16:9 or 4:3 on this tivo
    #aspect169=true
    #width=1440
    #height=720
    #audio_br=320K
    #video_br=12Mi
    #ffmpeg_prams=-i %(in_file)s -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 -

    #audio_br=320K
    #video_br=12Mi

    [MyMovies]
    #Type can be either 'video' or 'music'
    type=video

    #Path is the full path to your files (No trailing slash needed)
    #For windows: path=c:\videos
    #For linux: path=/media
    path=c:\videos


    ##You can have more than one share
    #[MyTelevision]
    #type=video
    #path=d:\television
    [Videos]
     
  13. mikeylikesit40

    mikeylikesit40 New Member

    22
    0
    Nov 28, 2006
    I'm a little lost. Lot's happening with this product right now.

    So, I downloaded the version with the sub-folder fix and it works. Yea!

    Today, I decided to try all this MetaData stuff and downloaded version 143. Subfolders are broken again?

    Did that fix not get propogated to the next versions?

    BTW, thanks for everyone's hard work. I'm happy with the sub folder version since I have everything (1000 files) organized into series/season. I just thought the other info would be nice to have.

    I'm probably just missing some important aspect of what's going on to enable the subfolders in the newest version.

    Thanks for taking the time to explain it to me (if you do).
     
  14. wmayhem

    wmayhem New Member

    7
    0
    Oct 22, 2007
    Great software. Was working great. But I've run into a couple of problems:

    1) I have two Tivo Series 2 boxes (one ethernet and one wireless). I first installed pyTivo a few weeks ago and had no problem transferring and watching .vob files to both boxes. Now, on the wireless Tivo, when streaming .vob files, I get only audio. The picture is black. I tried transferring the same files that had previously worked on the same machine and they have the same problem! There was no service update on Tivo. The ethernet Tivo box still works for both video and audio with .vob files.

    2) Also, on both boxes transferring other file formats (flv or m4v) now does not work. Tivo indicates that the files are transferring but no actual progress is made... so the transfer stays at 0% indefinitely.

    Any help appreciated. Thanks.
     
  15. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    I've highlighted two likely problems in red above. The first one is defining a per-tivo section using a fictitious TSN (Tivo Service Number) "DEADBEEF". if you want a per-tivo section (usually because you have more than one TiVo unit) then the actual TSN for the tivo unit must be used. You don't actually define anything in that section so you probably don't need it. Note that any line beginning with '#' is commented out (might as well not be there).

    The second is you define a section named Videos, but there is no path or type specification in it.

    Correct these and see what happens!
     
  16. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    What version? What platform?
     
  17. wmayhem

    wmayhem New Member

    7
    0
    Oct 22, 2007
    Sorry. v182 on Windows XP. Thx
     
  18. BillB

    BillB New Member

    23
    0
    May 19, 2002
    I am trying PyTivo for first time. I have been using Tivo.net but this looks better.

    The only problem I have is that the configuration file does not show up on Configure PyTivo, Item 4 on the site http://pytivo.armooo.net/.

    Can anyone post this information here?

    Many thanks,
     
  19. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    Probably a long shot but what version of ffmpeg (which is renamed to ffmpeg_mp2.exe when distributed with pyTivo) are you using? The currently distributed version is r8047 which seems to be pretty solid.

    To get the version number, log a command window to the ...\plugins\video directory and enter the command:

    ffmpeg_mp2 -i dud

    If it's an older version (lower version number) you can substitute the newer version and try it. Be sure to include the pthreadGC2.dll file that supports ffmpeg. Probably the simplest way to get the newer versions is just download the latest .zip package and pull them from there.
     
  20. mikeylikesit40

    mikeylikesit40 New Member

    22
    0
    Nov 28, 2006
    If you tried to install the new version on top of the old, it looks like you will get that error.

    I installed it in C:\PyTivo2 (different then original install) and it started working. Deleted c:\PyTivo and rename C:\PyTivo2 to c:\PyTivo and all is well.

    I'm sure there is some technical thing you could also do to fix it but I figured I'd offer my simple fix so maybe you could get up and running.
     

Share This Page