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

New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Aug 30, 2012 #4261 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Sweet, didn't know about the space option. Any other hidden keyboard tricks besides those two?
     
  2. Aug 30, 2012 #4262 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Officially, that's it. It's not obvious place to look but those 2 "hidden" keyboard shortcuts are mentioned in the tooltip for "Enable iPad style communications with this TiVo" under config-Tivos.

    (There is 1 more keyboard shortcut "j" I use for debugging purposes which dumps all information associated with selected show to message window sorted alphanumerically by key name. That is also available in some of the other "Remote" tables to dump JSON data to message window but is not useful to most people).
     
  3. Sep 1, 2012 #4263 of 10405
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    The delete key didn't work for me. By "table", you mean the window list for a specific TiVo (eg, bedroom). I assume the only thing that needs to be enabled is "iPad delete" in the TiVo tab of preferences?
     
  4. Sep 1, 2012 #4264 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    No, that setting is just to add "iPad delete" task. Under config-Tivos for a series 4 unit you have to have "Enable iPad style communications with this TiVo" enabled such that you have a "Remote" tab displayed with that TiVo available in the list. Then when you refresh Now Playing table kmttg will collect the necessary info to be able to delete & play shows from the table.
    (This is only for series 4 units, not THD, S3 and earlier units)
     
  5. Sep 2, 2012 #4265 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    My .tivo files have leading zeroes for the programId. I use tdcat to dump xml chunk 2 and the programId is 14 chars 'EP' + 8_char_seriesId + 4_char_episodeId. As example 'EP012449670020' for America the Story of Us - Millenium, see zap2it
     
  6. Sep 2, 2012 #4266 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    I've only seen non-leading 0s on 1 .TiVo file so far so I think for the most part they match and not to worry about it.
     
  7. Sep 2, 2012 #4267 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    Did that, but pyTiVo doesn't seem to be parsing it in the first place. Do you also have to modify metadata.py? I'd like for pyTiVo to parse it from metadata text files as well as from .tivo files.
     
  8. Sep 2, 2012 #4268 of 10405
    NotVeryWitty

    NotVeryWitty Too Big to Fail

    764
    0
    Oct 3, 2003
    Central Mass.
    After not using kmttg for quite a while, I just tried to use it again so my daughter could put the new Doctor Who show on a thumb drive to take back to college to watch.

    I completely reinstalled the latest app on my iMac running Mountain Lion. After figuring out how to launch it for the first time (need to press Ctrl when opening to bypass the ML unknown app security), and loading the Intel version of tivodecode (IMO that should be the default version included in the install package), I was able to get see my Macs and transfer the show to my file server.

    However, I'm getting an error at the encode step. The status output is below. An interesting line is: "[mp4 @ 0x116e600]track 0: could not find tag, codec not currently supported in container". Is this saying that the show is already mpeg4, and that ffmpeg doesn't know what to do with that? [FWIW, my cable provider is Verizon Fios, and the show was on BBCAHD channel 689.]

    Thanks for all the hard work on this app!!


    Status output:

    >> ENCODING WITH PROFILE 'ff_h264_high_rate' TO FILE /Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mp4 ...
    /Users/bill/Applications/kmttg_v0p8t/ffmpeg/ffmpeg -y -i "/Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mpg" -threads 4 -vcodec libx264 -coder 0 -level 41 -sameq -subq 6 -me_range 16 -qmin 10 -qmax 50 -g 300 -bufsize 14745k -b 8000k -maxrate 16000k -bug +autodetect+ms -me_method epzs -trellis 2 -mbd 1 -acodec copy -f mp4 "/Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mp4"
    encoding failed (exit code: 1 ) - check command: /Users/bill/Applications/kmttg_v0p8t/ffmpeg/ffmpeg -y -i "/Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mpg" -threads 4 -vcodec libx264 -coder 0 -level 41 -sameq -subq 6 -me_range 16 -qmin 10 -qmax 50 -g 300 -bufsize 14745k -b 8000k -maxrate 16000k -bug +autodetect+ms -me_method epzs -trellis 2 -mbd 1 -acodec copy -f mp4 "/Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mp4"
    FFmpeg version SVN-r19732, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --shlibdir=@executable_path --arch=i386 --cpu=i686 --disable-static --enable-shared --enable-pthreads --enable-gpl --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libfaad --enable-libx264 --extra-cflags='-I/Users/yoav/src/lame/include -I/Users/yoav/src/faad2-2.7/include -I/Users/yoav/src/faac-1.28/include -I/Users/yoav/src/x264' --extra-ldflags='-L/Users/yoav/src/lame/libmp3lame/.libs -L/Users/yoav/src/faad2-2.7/libfaad/.libs -L/Users/yoav/src/faac-1.28/libfaac/.libs -L/Users/yoav/src/x264/'
    libavutil 50. 3. 0 / 50. 3. 0
    libavcodec 52.34. 0 / 52.34. 0
    libavformat 52.38. 0 / 52.38. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libswscale 0. 7. 1 / 0. 7. 1
    built on Aug 27 2009 10:32:06, gcc: 4.0.1 (Apple Inc. build 5484)
    Input #0, ac3, from '/Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mpg':
    Duration: 44:09:31.78, bitrate: 364 kb/s
    Stream #0.0: Audio: eac3, 48000 Hz, 4 channels (FL|FR|SL|SR), s16, 364 kb/s
    [mp4 @ 0x116e600]track 0: could not find tag, codec not currently supported in container
    Output #0, mp4, to '/Volumes/Time Capsule/Tivo files/Doctor Who - Asylum of the Daleks (09_01_2012).mp4':
    Stream #0.0: Audio: 0x0000, 48000 Hz, 4 channels (FL|FR|SL|SR), s16, 364 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Could not write header for output file #0 (incorrect codec parameters ?)
     
  9. Sep 2, 2012 #4269 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    NotVeryWitty, looks like your source video has 4 channel eac3 (AKA Dolby Digital +) as audio which I don't think is a valid audio stream for mp4 container, or at least ffmpeg doesn't like that, and the encoding profile you are using passes audio through to mp4. Also a little strange that no input video is listed in the output, but it may be because the audio is causing an issue ffmpeg is not listing the video track.

    Perhaps if you try an encoding profile that re-encodes audio such as ff_ipad it might work.
     
  10. Sep 2, 2012 #4270 of 10405
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    I thought that the mod to metadata.py which I made was only required to get the programId into the text file but I could be wrong. There may also be a mod to another module, I don't remember exactly what I did and I won't be able to check until at least Tuesday.

    Is the programId not being sent to the TiVo?
     
  11. Sep 2, 2012 #4271 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    For .tivo metadata extraction, shouldn't you be looking at chunk 2, not 1. i.e. "chunk-02-0002.xml", not "chunk-01-0001.xml"? Do a test dump w/tivodecode and compare the 2 chunks! Also the seriesId and programId both need to be extracted from <showing>, not <vActualShowing>. If either gets pulled from <vActualShowing> and the recording was padded, the value will be incorrect for the recording.
     
  12. Sep 2, 2012 #4272 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    It's not.
     
  13. Sep 2, 2012 #4273 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    What mod? What fork? I'm running wmcbrine's 2012-07-11 with a hand edited TvBus.tmpl to add programId. Querying pyTiVo, it doesn't show up in the Container or TVBus video details queries.
     
  14. Sep 2, 2012 #4274 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    It is parsing chunk 2 and from <showing> section. From metadataTivo.java:
    Code:
    metaFileFromXmlFile(xmlFile2, job.metaFile);
    
    (and xmlFile2 is chunk 2)

    and under metaFileFromXmlFile method:
    Code:
             // Search for everything under <showing>
             NodeList nlist = doc.getElementsByTagName("showing");
    ...
    
     
  15. Sep 2, 2012 #4275 of 10405
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    There is no fork with my mods and I never meant to imply there was. I made the mods to my own copy of pyTivo, just as I am running a self-modified version of kmttg.

    As far as getting it to the TiVo is concerned, the fact that even if it does get to the TiVo, it doesn't always do what I expected, i.e. set the Season and Episode, probably led me to lose track of exactly what I did to get it to be transmitted. Well, that plus I was also trying to get grouping on a Premiere of pulled programs with an inactive or arbitrary seriesId to work again.
     
  16. Sep 2, 2012 #4276 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    That's why you're doing the coding and not me! My cursory glance at the code missed this part
    Code:
    xmlFile2 = xmlFile.replaceAll("1", "2");
     
  17. Sep 3, 2012 #4277 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    v0p8u version just released with some fairly minor updates including showing EpisodeNumber as part of title in various tables if available. See release_notes Wiki for details.
     
  18. Sep 3, 2012 #4278 of 10405
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    Thanks for the programId:cool:
     
  19. Sep 5, 2012 #4279 of 10405
    OOOOPS!

    OOOOPS! New Member

    25
    0
    Aug 7, 2003
    @ moyekj Thanks!
    @ moyekj or any one else :)
    Does anyone know if pytivo is sending or if the tivo is honoring episode number when a show is pushed? I tend to edit and encode to mp4 before pushing back to the tivo, a S3 HDXL, using the metadata generated by kmttg. Now that episode number is available on kmttg I have noticed that pushes do not display the episode number.
    Thanks,
    OOOOPS
     
  20. Sep 5, 2012 #4280 of 10405
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Pushes send very little of the metadata. episodeNumber has been part of the metadata since the beginning, the change to kmttg was just to display it as part of the title in the gui.
     

Share This Page