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 New Member

    6,922
    0
    Aug 31, 2003
    San...
    Well, since one can only pull h.264 files on a Premiere, the point is moot.
     
  2. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    :confused:
     
  3. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    He's talking about pulling h.264 files, which unless I am mistaken can only be accomplished on a Premiere, so any activity limited to the Premiere is given to be available, notwithstanding any failure of the activity on an S3.
     
  4. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    You should be able to pull h.264 files to any TiVo, it's just that they will be transcoded.
     
  5. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    'Sorry, I meant to say, "Without transcoding...".
     
  6. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I am pulling to a Premiere. How can I group items to a single folder with pytivo with a user created seriesId (i.e. Movies)?
     
  7. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Using an arbitrary seriesId used to work but it that got broken at some point though may bne working again with the latest fix. I haven't completely tested it again.

    What does seem to work this point (at least for me) is using a seriesId of the form SH9nnnnnnn where nnnnnnn is 0001101 or greater. I put movies I want to group into the same folder on the PC and create a default.txt file with the relevant information. You must also change the title entry in the individual metadata files to episodeTitle and remove or comment out the movieYear and isEpisodic entries.

    Example of a default.txt:
    Code:
    seriesTitle : The Lord of the Rings
    title : The Lord of the Rings
    seriesId : SH90001112
    isEpisode : true
    isEpisodic : true
    example of a modified metadata file:
    Code:
    episodeTitle : The Fellowship of the Ring
    #movieYear : 2001
    description : From the idyllic shire of the Hobbits to the smoking chasms of Mordor, director Peter Jackson follows Frodo Baggins (Elijah Wood) as he embarks on his epic quest. The movie -- which nabbed 13 Oscar nods -- boasts an outstanding cast, including Ian McKellen and Viggo Mortensen. This extended version includes unseen footage.
    originalAirDate : 2001-12-19T23:00:00Z
    time : 2001-12-19T23:00:00Z
    starRating : X6
    #mpaaRating : PG-13
    vProgramGenre : Action & Adventure
    vProgramGenre : Sci-Fi & Fantasy
    vProgramGenre : Action Sci-Fi & Fantasy
    vProgramGenre : Fantasy
    vDirector : Peter Jackson|
    vActor : Elijah Wood|
    vActor : Sean Astin|
    vActor : Ian Holm|
    vActor : Ian McKellen|
    vActor : Christopher Lee|
    vActor : Orlando Bloom|
    vActor : Billy Boyd|
    vActor : Liv Tyler|
    vActor : Cate Blanchett|
    vActor : Sean Bean|
    vActor : Brad Dourif|
    vActor : Bernard Hill|
    vActor : Viggo Mortensen|
    vActor : Miranda Otto|
    vActor : John Rhys-Davies|
    vActor : Bruce Spence|
    vActor : Karl Urban|
    vActor : Hugo Weaving|
    vActor : David Wenham|
    image : The Fellowship of the Ring.mp4.jpg
    You'll note that I also commented out the mpaaRating entry. While the movies still group, its presence seems to cause a problem with the most of the metadata.

    You'll also note that I added originalAirDate and time entries. If you choose to do so, DO NOT USE A time ENTRY PRIOR TO 1970! YOUR TiVo WILL CRASH!
     
  8. reneg

    reneg Member

    699
    0
    Jun 19, 2002
    I'm not sure what DTVCC Transport mux & 608 captions are, but does this mean that it's possible to create a H.264 file with closed captions that can be enabled or disabled at the tivo?

    I tried to create Tivo compatible captions with H.264 encoding file, but haven't gotten it to work on my Premiere. When I try to turn the captions on at the tivo side, the tivo says that the program has closed captions but does not display any captions. Can someone identify what I'm doing wrong.
    1) Transfer video (as program stream) from Tivo to PC using kmttg
    1a) decrypt with tivodecode under kmttg
    1b) run videoredo QS Fix under kmttg
    1c) run videoredo ad detect under kmttg. Manually review ad cuts in videoredo
    1d) run videoredo ad cut under kmttg
    1e) run ccextractor under kmttg
    1f) encode with modified videoredo h264-MP4 profile (resolution changed to 720x400 to decrease file size)
    2) Run mp4box to mux in .srt captions from ccextractor into the mp4 container with video and audio. Mediainfo attached
    3) Push video to Tivo (Doesn't look like it's transcoding):
    Code:
    2012-12-31 16:27:37,506 DEBUG pyTivo.video.transcode: CACHE HIT! d:\Video\Raising Hope.S308-The Last Christmas_cut.mp4-muxed.mp4
    2012-12-31 16:27:37,507 DEBUG pyTivo.video.transcode: TRANSCODE=NO, all compatible, d:\Video\Raising Hope.S308-The Last Christmas_cut.mp4-muxed.mp4
    2012-12-31 16:27:37,509 INFO  pyTivo: 192.168.1.91 [31/Dec/2012 16:27:37] "GET /Boomer_DVideos/Raising%20Hope.S308-The%20Last%20Christmas_cut.mp4-muxed.mp4?Format=video%2Fmp4 HTTP/1.1" 200 -
    2012-12-31 16:27:37,509 INFO  pyTivo.video.video: [31/Dec/2012 16:27:37] Start sending "d:\Video\Raising Hope.S308-The Last Christmas_cut.mp4-muxed.mp4" to Kitchen
    2012-12-31 16:27:37,509 DEBUG pyTivo.video.video: "d:\Video\Raising Hope.S308-The Last Christmas_cut.mp4-muxed.mp4" is tivo compatible
    2012-12-31 16:27:37,510 DEBUG pyTivo.video.qt-faststart: Getting index of top level atoms...
    2012-12-31 16:27:37,512 DEBUG pyTivo.video.qt-faststart: ftyp: 20
    2012-12-31 16:27:37,512 DEBUG pyTivo.video.qt-faststart: moov: 1196360
    2012-12-31 16:27:37,513 DEBUG pyTivo.video.qt-faststart: mdat: 547576858
    2012-12-31 16:27:37,513 DEBUG pyTivo.video.qt-faststart: free: 69
    2012-12-31 16:27:37,513 DEBUG pyTivo.video.qt-faststart: mp4 already streamable -- copying
    2012-12-31 16:28:28,447 INFO  pyTivo.video.video: [31/Dec/2012 16:28:28] Done sending "d:\Video\Raising Hope.S308-The Last Christmas_cut.mp4-muxed.mp4" to Kitchen, 548773307 bytes, 82.19 Mb/s
    
    
     

    Attached Files:

  9. moyekj

    moyekj Well-Known Member

    11,132
    27
    Jan 23, 2006
    Mission...
    In your mediainfo it's showing following for text format:
    Format: Timed text

    This is mediainfo for CC in mpeg2 downloaded from TiVo:
    (Can turn on/off captions with this clip on the TiVo)
    Code:
    Text
    ID                               : 224 (0xE0)-608-1
    Format                           : EIA-608
    Muxing mode                      : A/53 / DTVCC Transport
    Muxing mode, more info           : Muxed in Video #1
    Bit rate mode                    : Constant
    Stream size                      : 0.00 Byte (0%)
    
    This is from same video encoded to h.264 mp4 with recent version of VRD TVSuite:
    (Can turn on/off captions with this clip on the TiVo)
    Code:
    Text
    ID                               : 1-608-1
    Format                           : EIA-608
    Muxing mode                      : AVC / SCTE 128 / DTVCC Transport
    Muxing mode, more info           : Muxed in Video #1
    Duration                         : 43s 711ms
    Bit rate mode                    : Constant
    Stream size                      : 0.00 Byte (0%)
    
    i.e. If the original mpeg2 has EIA-608 captions you don't need to generate srt and then try to mux it in. VideoRedo will take care of it. VideoRedo will also convert DVD captions to the EIA-608 DVTCC transport mux format when encoding to H.264 in mp4 container which also works on the TiVo.
     
  10. Jan 1, 2013 #3970 of 5682
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    I had the latest released version of Videoredo and when I checked for updates, it said I had the latest version (build 629, I think). I went to the Videoredo forums and downloaded with latest beta (build 646).

    Encoding with this newer version of VideoRedo allowed me encode H264 and have the closed captions work on my Premiere. No need to mux in the .srt like you said.

    Thanks moyekj and the Videoredo folks.
     
  11. Jan 1, 2013 #3971 of 5682
    bareyb

    bareyb Under Maintenance TCF Club

    25,939
    4
    Dec 1, 2000
    Silicon Valley
    Quick question: I am on Mountain Lion and I'm using the PyTiVo build from last January. Is there any reason to upgrade to a newer version of PyTiVo if everything is working well?
     
  12. Jan 2, 2013 #3972 of 5682
    newsposter

    newsposter Poster of News

    34,262
    6
    Aug 18, 2002
    SE PA
    why when i pull a file to tivo does it enable me to start watching within 2 to 3 seconds but if i push the same file, it takes much longer and pytivo seems to 'work a lot more' before it begins to stream and the blue light comes on - dont know how else to word that.
     
  13. Jan 2, 2013 #3973 of 5682
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Part of it is that a push has to be initiated through the mind.tivo.com server. Note that that is just the initiation. The actual data still goes directly from your computer to the TiVo.
     
  14. Jan 2, 2013 #3974 of 5682
    wmcbrine

    wmcbrine Ziphead

    10,363
    22
    Aug 2, 2003
    1. As mentioned, push requests go through the mind server. This doesn't involve pyTivo working, though; it's just waiting.

    2. If you're pushing something that needs to be remuxed to MP4, that's done before the request is sent, because it takes two passes to make a pushable MP4. (Program streams and transport streams can be built in a single pass, so they're done concurrently with the transfer.) If you actually see CPU and disk activity, this is probably the reason.

    3. Once they do start, push transfers aren't immediately playable the way pulls are. This is because the push mechanism was designed originally for transfers of podcasts (TiVoCasts) over the Internet, which TiVo assumed could be slow, and I believe they didn't want the user experience to involve a lot of starts and stops (the stereotypical "buffering" situation).
     
  15. Jan 2, 2013 #3975 of 5682
    tluxon

    tluxon Member

    250
    0
    Feb 28, 2002
    Kirkland, WA
    I'm archiving several series and some movies from the 60's. Why will these dates make the TiVo crash and is there a decent workaround for it?
     
  16. Jan 2, 2013 #3976 of 5682
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Unless you enter it by hand or are using a modified metadata generator (as I am), you don't need to worry about it. It's not the originalAirDate that is the problem. It is the date/time of the actual recording. That is what the "time :" entry in the metadata controls. If you don't have an entry for it in the metadata, it will default to the actual date/time of the transfer to the TiVo.

    I suspect that what is happening is that the TiVo is using some fixed date to calculate a value for sorting purposes and that a negative result generates an arithmetic error in the CPU and, as is typical with TiVo s/w, there is no error handling
     
  17. Jan 3, 2013 #3977 of 5682
    gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    Most likely the Unix Epoch:
    http://en.wikipedia.org/wiki/Unix_time#Definition
     
  18. Jan 3, 2013 #3978 of 5682
    newsposter

    newsposter Poster of News

    34,262
    6
    Aug 18, 2002
    SE PA
    i have a friend that thinks the whole pytivo thing is neat...but she has Dish...is there any way to put programs on a Dish receiver with pytivo or a program like it?

    i remember when i had directv i could use tversity with their receivers.
     
  19. Jan 6, 2013 #3979 of 5682
    tjtv

    tjtv New Member

    42
    0
    Jul 3, 2007
    I recently installed the new version of pytivo that allows pulling h264 files directly. It really works great, many thanks for all your hard work. Pulling is much more user friendly than the old push method that was required.

    I am running pytivo on a pogoplug. The pogoplug has a very underpowered ARM CPU, which is no problem for most of my videos since nothing needs to be transcoded. However, some of my files have h264 video/dts audio. The dts audio needs to be transcoded to AC3, and the pogoplug CPU is not powerful enough to do this in real-time.

    Does anyone know of a way to speed up the dts -> ac3 conversion process? If I could find a way to make the pogoplug do that conversion in realtime I think I have finally found the holy grail.
     
  20. Jan 6, 2013 #3980 of 5682
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    I am in a similar situation. I have just been using a homemade script to convert the DTS audio when the file is first placed on the storage device so it is ready to use when I want to watch it. I'm working on cleaning it up so I can release it, maybe it will help. I'd like to get the script to where it would scan a folder and convert all files that meet the desired criteria.

    As to speeding up your current process, there is not much you can do. You may be able to increase performance very slightly by compiling an optimized FFmpeg binary and using the fixed-point decoder/encoder but it's not worth the time in my opinion.
     

Share This Page