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

    eboydog Just TiVo'ing.....

    904
    0
    Mar 23, 2006
    I'm having the same issue with pyTivo console displaying the string index out of range error, all of such was just out the blue. Was there any resolution to this?

    Pytivo seems to be working ok, just receiving the series of the message repeatably.

    Tried the Bonjour browser to display the Bonjour service broadcasts on my network but I'm not sure what I'm looking for as all my Tivos appear including a HP print server that I have.
     
  2. mattack

    mattack Active Member

    20,750
    4
    Apr 9, 2001
    sunnyvale
    Is there a way I can have ts on on one share and it off on another? I really want to have the same path shared both with ts on and ts off. I want ts on to attempt to transport that way so I get captions.. but many shows won't transfer properly that way (the converter from mpeg back to ts doesn't work)..

    I used to have a 'global user setting' of ts on.. So yesterday, I tried to remove that one, and make two separate shares for the same path, one with user setting ts on, and one without it.. But the user setting of ts on didn't seem to 'stick' since the recordings had no captions from the one with the setting supposedly on. Again, it DID work when I had that as a global setting.. (and turning ts to 'off' on one of the ones with the global setting on didn't work either.)

    ..and yes, I did save all changes and restart pytivo.. from the settings web page.
     
  3. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    It's only a global setting. I could change that... in the meantime, one thing you could do would be to run parallel pyTivo instances. Just give them each different ports and share names.

    But I'd prefer to address "the converter from mpeg back to ts doesn't work". Please tell me more about this.
     
  4. mattack

    mattack Active Member

    20,750
    4
    Apr 9, 2001
    sunnyvale
    I described the issue previously in this thread:
    http://www.tivocommunity.com/tivo-vb/showthread.php?p=10103200#post10103200

    but I admit I didn't go back and do the *proper* test someone suggested (manually converting a file). I typoed the extension when I tried, and hadn't gotten back to it.

    My "low tech" way of just turning on/off TS was working for now (and actually, I was also sometimes just transferring to my Tivo HD instead, which "just works" for captions.. sigh.. "progress")
     
  5. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    That was me.
     
  6. caddyroger

    caddyroger New Member

    1,730
    0
    Mar 14, 2005
    Some where...
    I have a question about pytivo. This is what I would like to do. I have about 50 shows of jag and counting. They are about 2 to 4 shows being down loaded to my tivo a day. The shows are in order by date. 1 show could be season 5 episode 4 the next one could season 8 episode 1. The third could be season 6 episode 12. The next day the will follow in order with the time slot. I would like to down load and arrange them so that will be sorted in order so I do not have to page down then go up to the next show that in order.
    How can this be done?
     
  7. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    How are they getting to the TiVo? Push or Pull?
     
  8. caddyroger

    caddyroger New Member

    1,730
    0
    Mar 14, 2005
    Some where...
    Push
     
  9. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    You've got no hope, then. Push doesn't allow enough control over the metadata. You'll either have to transfer them in strict order, or use pull (together with something like "time: oad" in default.txt -- assuming that the originalAirDates are set).
     
  10. caddyroger

    caddyroger New Member

    1,730
    0
    Mar 14, 2005
    Some where...
    Ok how and where do I put "time: oad" in default.txtput at?
     
  11. cherry ghost

    cherry ghost Active Member

    5,281
    6
    Sep 13, 2005
    Chicago
  12. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    No... just put "time: oad", exactly like that. In the default.txt.
     
  13. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Using a text editor (notepad will do), create a file and put into it the line:

    Code:
    time : oad
    save the file as "default.txt" to the folder on the PC where you have your videos.

    What model TiVo do you have?

    Note: Any recordings pulled to the TiVo will be in a different group from those pushed. They should in fact end up in the same group as those actually recorded.
     
  14. caddyroger

    caddyroger New Member

    1,730
    0
    Mar 14, 2005
    Some where...
    It is a Roamio Pro
     
  15. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    What app do you use to generate the metadata? Or are you recording these episodes and getting the metadata from the TiVo?
     
  16. caddyroger

    caddyroger New Member

    1,730
    0
    Mar 14, 2005
    Some where...
    I am a newbie about this. The only thing I know is that I down load the files ether in mpg or tivo format. I know that is it in mpg there is no information of the program and tivo it does. This metadata thing is new to me.
    When they said just add "time : oad" I do not know where to put in. You wrote to use notepad To do th editing I did what you said I entered "time : oad" and saved as default.txt. I did a pull and it was the same as the tivo. I did a push and the shows went into a new tivo folder with out the episode but was not in order.
     
  17. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    See here for an explanation of metadata files.

    Ok. There is nothing you can do about .tivo files. As the name would imply, the default.txt file is for defauts. Since .tivo files have the metadata embedded, including the time the recording was made, it doesn't come into play.

    About the only thing you can do is convert the .tivo files to .mpg but do not extract the metadata into the corresponding .txt file. Then use one of the available tools to create the metadata file. pyTivo will then use the default.txt file.
     
  18. caddyroger

    caddyroger New Member

    1,730
    0
    Mar 14, 2005
    Some where...
    So I have to enter the data for each episode. I thought I could just enter ether the date or season and episode and be done with it.
     
  19. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Well, there's nothing you can do for .tivo files. It always uses the embedded data. Even if there is a .tivo.txt file for it, it is ignored.

    For other video formats, including .mpg, as I said there are tools you can use to generate the metadata files. You do not have to create them by hand.
     
  20. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    I handle this using a script that does all the detail work for me. It does a lot of other things, but one of them is naming the files and marking the video as a TV series.

    First of all, I use KMTTG to transfer the videos, convert them to .mpg, and download the associated metafiles, all to a temporary directory. After editing and converting the files to h.264 using VideoRedo, I run a script called "Verify", which allows me to audit / implement all the genre fields and then edit the series info if the script detects that it is a TV series. All I have to do is enter the season and episode number. The script then makes the necessary modifications to the metafile and renames the video using the format:

    <Series Name> - <Season> - <Episode> - <Episode Name> (Recorded <DOW Month Day, Year <StationID>)

    Here is the snippet of code that does the work:
    Code:
    echo $newName | grep -q "-"
    if [[ $? -ne 0 ]]
    then
            echo Done!
            exit
    fi
    
    echo -n Enter Series Season \& Episode? \(N\)
    tput cub 2
    read response < /dev/tty
    if [[ "$response" == "Y" || "$response" == "y" ]]
    then
            echo
            echo -n "Season Number:  "
            read Season < /dev/tty
            echo -n "Episode Number: "
            read Episode < /dev/tty
            SeriesPrefix=${newName%-*}
            SeriesSuffix=${newName#*-}
            SeriesName="$SeriesPrefix- S$Season E$Episode -$SeriesSuffix"
            [[ -a "$newName" ]] && mv "$newName" "$SeriesName"
            [[ -a "$newName.txt" ]] && mv "$newName.txt" "$SeriesName.txt"
            [[ -a "$newName.jpg" ]] && mv "$newName.jpg" "$SeriesName.jpg"
    
            grep -v "$newName" "$logFile" > "$logFile.tmp"
            echo "$SeriesName" >> "$logFile.tmp"
            sort $logFile.tmp > "$logFile"
    fi
    
    echo Done!
    
    Here is a sample of the script running:
    Code:
    RAID-Server:/usr/share/VideoScribe# Verify nov
    Usage note: --test or -t => test for verification only
    Usage note: --force or -f => force processing of files
    1) /RAID/Recordings/Nova/Nova - Big Energy Gamble, The (Recorded Wed Jan 21, 2009, KLRNDT2).mpg
    2) /RAID/Recordings/Nova/Nova - Four Winged Dinosaur, The (Recorded Wed Feb 18, 2009, KLRNDT2).mpg
    3) /RAID/Recordings/Nova/Nova - Spy Factory, The (Recorded Wed Feb 04, 2009, KLRNDT2).mpg
    4) /RAID/Recordings/Nova/Nova - Einsteins Big Idea (Recorded Wed Sep 17, 2008, KLRNDT2).mpg
    5) /RAID/Recordings/Nova/Nova - Secrets of the Samurai Sword (Recorded Wed Jun 25, 2008, KLRNDT2).mpg
    6) /RAID/Recordings/Frost-Nixon (Recorded Sat Nov 07, 2009, MAXHD).mp4
    7) /RAID/Recordings/G.I. Jane (Recorded Tue Nov 16, 2010, ENCR1H).mp4
    8) /RAID/Recordings/Sweeney Todd - The Demon Barber of Fleet Street (Recorded Sat Nov 08, 2008, HBOHD).mp4
    9) <Abort>
    #? 1
    Nova - Big Energy Gamble, The (Recorded Wed Jan 21, 2009, KLRNDT2).mpg
    
    is this correct (Y)?
    
    Renaming File...
    
    Updating Links...
    
    Nova - Big Energy Gamble, The (Recorded Wed Jan 21, 2009, KLRNDT2).mpg
    
    vSeriesGenre : Documentary
    vSeriesGenre : News
    
    1) Action.....    9) Drama......  17) Musical....  25) Thriller...
    2) Adventure..   10) Family.....  18) Mystery....  26) Tragedy....
    3) Animated...   11) Fantasy....  19) Nature.....  27) War........
    4) Biography..   12) Film_Noir..  20) Romance....  28) Western....
    5) Classic....   13) Holiday....  21) Science....  29) Done
    6) Comedy.....   14) Horror.....  22) SciFi.....
    7) Crime......   15) MartialArts  23) Series.....
    8) Documentary   16) Medicine...  24) Spies......
    #? 8
    #? 21
    #? 23
    #? 29
    Documentary
    Science
    Series
    Enter Series Season & Episode? (y)
    
    Season Number:  36
    Episode Number: 09
    Done!
    The resulting files:
    Code:
    Nova - S36 E09 - Big Energy Gamble, The (Recorded Wed Jan 21, 2009, KLRNDT2).mpg
    Nova - S36 E09 - Big Energy Gamble, The (Recorded Wed Jan 21, 2009, KLRNDT2).mpg.jpg
    Nova - S36 E09 - Big Energy Gamble, The (Recorded Wed Jan 21, 2009, KLRNDT2).mpg.txt
    Contents of the Metafile:
    Code:
    title : NOVA
    seriesTitle : NOVA
    episodeTitle : The Big Energy Gamble
    originalAirDate : 2009-01-20T00:00:00Z
    description : Can California's ambitious plan to cut greenhouse gases actually succeed?
    callsign : KLRNDT2
    isEpisode : true
    seriesId : SH003163
    recordDate : 11912134
    firstAlpha : N
    vActor : Robert Krulwich
    vProgramGenre : Documentary
    vProgramGenre : Science
    vProgramGenre : Series
    If you want to see the entire script or want help with implementing something similar on your system, please post in the Linux thread stickied in this forum. If you are running Windows, something similar can probably be cobbled together.
     

Share This Page