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. Jan 21, 2013 #4621 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    It's just a bit more complicated than that if you do it within kmttg.
     
  2. Jan 22, 2013 #4622 of 10413
    cherry ghost

    cherry ghost Active Member

    5,277
    5
    Sep 13, 2005
    Chicago


    Thanks!

    --longdesc works perfectly

    I only tested on one show, but when Atomicparsley is run, it shows "--contentRating x" rather than "--contentRating TV-MA". The metadata file has "tvRating : x5". --hdvideo doesn't show up at all, but that's probably a metadata problem, "showingBits : 397825". Neither of those is that big of a deal since they're easy to add as a custom.
     
  3. Jan 22, 2013 #4623 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Probably a misinterpretation of wmcbrine's mappings he posted which I re-post below. From what I read below: In TV_RATINGS: X5 maps to 5 which then in HUMAN mpaaRating maps to X and in tvRating maps to 14 (kmttg is probably incorrectly using mpaaRating mappings for tvRating starting point). I'm not sure how you go from X5 to TV-MA based on the maps below. If anything X5 should map to 14 if I understand it correctly.
    Code:
    TV_RATINGS = {'TV-Y7': 1, 'TV-Y': 2, 'TV-G': 3, 'TV-PG': 4, 'TV-14': 5,
                  'TV-MA': 6, 'TV-NR': 7, 'TVY7': 1, 'TVY': 2, 'TVG': 3,
                  'TVPG': 4, 'TV14': 5, 'TVMA': 6, 'TVNR': 7, 'Y7': 1,
                  'Y': 2, 'G': 3, 'PG': 4, '14': 5, 'MA': 6, 'NR': 7,
                  'UNRATED': 7, 'X1': 1, 'X2': 2, 'X3': 3, 'X4': 4, 'X5': 5,
                  'X6': 6, 'X7': 7}
    
    MPAA_RATINGS = {'G': 1, 'PG': 2, 'PG-13': 3, 'PG13': 3, 'R': 4, 'X': 5,
                    'NC-17': 6, 'NC17': 6, 'NR': 8, 'UNRATED': 8, 'G1': 1,
                    'P2': 2, 'P3': 3, 'R4': 4, 'X5': 5, 'N6': 6, 'N8': 8}
    
    STAR_RATINGS = {'1': 1, '1.5': 2, '2': 3, '2.5': 4, '3': 5, '3.5': 6,
                    '4': 7, '*': 1, '**': 3, '***': 5, '****': 7, 'X1': 1,
                    'X2': 2, 'X3': 3, 'X4': 4, 'X5': 5, 'X6': 6, 'X7': 7}
    
    HUMAN = {'mpaaRating': {1: 'G', 2: 'PG', 3: 'PG-13', 4: 'R', 5: 'X',
                            6: 'NC-17', 8: 'NR'},
             'tvRating': {1: 'Y7', 2: 'Y', 3: 'G', 4: 'PG', 5: '14',
                          6: 'MA', 7: 'NR'},
             'starRating': {1: '1', 2: '1.5', 3: '2', 4: '2.5', 5: '3',
                            6: '3.5', 7: '4'}}
    
     
  4. Jan 22, 2013 #4624 of 10413
    cherry ghost

    cherry ghost Active Member

    5,277
    5
    Sep 13, 2005
    Chicago

    Mistype by me, the metadata has "tvRating : x6". In order to insert the rating correctly for iOS devices, atomic should then run "--contentRating TV-MA".


    tvRating : x0 = --contentRating Unrated
    tvRating : x1 = --contentRating TV-Y7
    tvRating : x2 = --contentRating TV-Y
    tvRating : x3 = --contentRating TV-G
    tvRating : x4 = --contentRating TV-PG
    tvRating : x5 = --contentRating TV-14
    tvRating : x6 = --contentRating TV-MA
    tvRating : x7 = --contentRating Unrated



    you can see all the available ratings by running "atomicparsley --ratings-list"
     
  5. Jan 22, 2013 #4625 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    OK, try kmttg.jar in this zip file:
    http://kmttg.googlecode.com/files/kmttg_v0p9k_beta1.zip

    Has fix for contentRating and hdvideo flags. Changes already checked in for next release.
    NOTE: AtomicParsley does not list 'X' rating as 1 that is available, but for mpaaRating=X5 I left that mapping to X.
     
  6. Jan 22, 2013 #4626 of 10413
    cherry ghost

    cherry ghost Active Member

    5,277
    5
    Sep 13, 2005
    Chicago

    Perfect

    Thank you
     
  7. Jan 22, 2013 #4627 of 10413
    skisail

    skisail New Member

    7
    0
    Jan 3, 2013
    i'm still stuck on version d. tried to update, but don't understand the "tar over" recommendation. the "d" version worked, but g and j didn't.
    is windows 8 the problem? the zip file goes into doc>library>km_...d and can only unzip over jar file, not encode etc.
    suggestions and instructions?
     
  8. Jan 22, 2013 #4628 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Another way to do it without having to have unzip overwrite files:
    - Rename the folder of previous kmttg installation.
    - Create a new folder with the original folder name
    - Unzip kmttg under that folder
    - Copy config.ini and auto.ini over from the renamed folder
     
  9. Jan 22, 2013 #4629 of 10413
    mattack

    mattack Active Member

    20,734
    4
    Apr 9, 2001
    sunnyvale
    But why? Seriously, if this is set behind a user setting that I have to turn on, why isn't simply copying the episodeDescription to episodeTitle (whatever the proper field names are -- I found it within seconds of playing around with two files) if episodeTitle isn't there sufficient?

    It's better than just a date-based name even if it's not perfect.

    Or do you mean it has to be done in the metadata generating separate tool? If so, then an option could be added for that.
     
  10. Jan 22, 2013 #4630 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Back when I was working on it before, there were issues with creating a title if none was there so I had to remove the code. I'll try to get back into it soon. There are two other things though - one personal - I got so far behind on actually watching stuff that is on my TiVos. Just now got into December on most things and a couple I am still in October. The other thing is that I want to revisit adding programId to the metadata generated by pyTivoMetaThis.
     
  11. Jan 23, 2013 #4631 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Not sure if this is a one off problem or if it has always been this way and I never noted it, but I paused my current tasks in kmttg which was in prior version I think g and save the queue and then upgraded to 9i.

    When I started it back up, it resumed my queue, but none of it shows up. Meaning it doesn't show on the jobs status screen, but does show what it's doing in the bottom "log" screen. I only know it resumed because it is telling me it is adcutting and downloading and such.

    This may fall under the school of hey, don't do that in the future, wait until your jobs queue is empty, but just wanted to note it happened.

    Any way I can check to see when it is done? Or just look for no curl and no adcut/videoredo jobs running?
     
  12. Jan 23, 2013 #4632 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    One other thing I found thru some testing. I have been playing with the other file formats, instead of just using the mpg format as it has in the past.

    It looks like if it isn't in .ts, mp4 or mpg format, it defaults to mpeg program stream for adcutting functions and such.

    For the 1212 PVR, you can save as H264 .MT2S or .TS for containers.

    When I tried adcutting MT2S, it converted the file to mpeg2/mpg container format instead of H264 .ts or mt2s, which of course is a major recode instead of just a simple adcut.

    I played around a bit with it, as often what I have done in the past is edit the adcut and adscan files to save in mkv format or mt2s format or whatever, which worked, but just had the wrong extension of mpg, which I then just renamed.

    But I thought it might be good if you could select which profile you wanted when adcutting thru the interface or whatever, especially for those that might be using videoredo to encode (since they are now working hard on fixing/improving their encoding and such)

    For example, it would be nice for those that want to adcut a 264ts file and have it save as a h264mkv file (something I do all the time) or even for those that might want to convert mpeg ps files into 264mkv or mp4 or whatever.

    I understand that could also be done in the encoding stage, but it saves a step and makes it easier for those that might not understand as much how to get stuff into the format they want it.

    I hope this makes sense, basically the detection is helpful, but it might be even more for people that want to easily use videoredo to convert their 264ts streams to mkv or mp4 container in one step without the intermediate adcut then re-mux to the container for their ipad or playstation or xbox or whatever.
     
  13. Jan 24, 2013 #4633 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    For that flow I would enable "Use VideoRedo GUI to review detected commercials" option in kmttg and stop at "Ad Detect" task (don't enable "Ad Cut"). Chances are you want to review and edit the detected commercials anyway, so with that flow kmttg automatically brings up VRD GUI and then you can then review/fix cut points and then simply click on Save As... in VRD to save as whatever format you want.

    EDIT: You can also skip automatic commercial detection completely and just go straight to VRD by enabling "Bring up VideoRedo GUI to make manual cuts". Then in kmttg enable "Ad Cut" but not "Ad Detect" and you are taken to VRD GUI where you can choose to make cuts or not and then again use Save As to save to whatever you want.
    And of course if you don't want to make any cuts at all you can skip VRD GUI completely and just enable "encode" task in kmttg and choose any VRD profile you want.
     
  14. Jan 24, 2013 #4634 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    I think under normal circumstances that would be normal and I know that is kinda the way it is designed, but as I have put in earlier and I think others also do let me show my current workflow which is overall the fastest way I have found so far.

    I usually download several shows and go thru qsfix and the adscan process and then have kmttg stop so I can manually redo them (check adscan in GUI) all at once. Unfortunately, if I do it the way its designed, I either have VRDo commercial edit running several windows or do them one by one and it kinda kills processor power/time use.

    So now I have say 10 shows that I basically am going to double check adscan on since we know it is definitely not foolproof. So I basically sit and go thru them one by one quickly (some as quick as 30 secs, some take a few minutes) and save the project file and then go back to kmttg, ad them to the cue selecting adcut and let them run.

    I currently encode most of my stuff outside of kmttg, so this then allows me to come back and set them up to encode in my other tool video.net. At some point I would like to have them automatically encode in kmttg, but i haven't found the magic commands to get them to the exact format for each type that I encounter so until I figure that out, video.net is the way to go.

    Also I bring in files from the 1212 and have qsfix and adscan run, stop, manually check and adjust ads and then process them along with all the other files.

    This is the fastest minimal my time on the computer, because if I used it as designed, I might have to wait 15 minutes or more for some of the adcuts between files and such to process in order to go to the next file and so on. Or i can only run adcuts when encoding is not happening or visa versa or whatever. If it launches right into adcut upon closing the gui, it slows down the editing on the next file I am editing, which is why I edit them all at once, then hit adcut for them all and walk away till they are done.

    If I chose to manually save them as whatever type in the editor GUI format, I either have to wait for it to encode to go to the next one or use VRD batch management which frankly sucks compared to kmttg.

    What I had been doing was running a separate kmttg instance for mpg vs mt2s and ts, but now, I can almost do it all in one instance.

    I think it basically would be nice to be able to choose the adcut format output in kmttg for the reasons mentioned earlier. Now that you have changed the scripts, I might be able to just manually go in and change say adcut.vbs to run the correct vrdo profile, but I think it would be nice to have the option to change the adcut format a bit easier for those less skilled/knowledgeable as I noted.

    Also, not sure, but in the past, when changing adcut format to prevent major rencodes, because of the design, it output them as .mpg even though they were correctly encoded as h264 mkv or whatever I chose and I just had to rename. I have not played enough with it now to know if that still would happen or something similar or if I changed just the adcut script manually if it would output the correct file extension.

    Note, I am not complaining or begging, I think it would make the program say more powerful/easier to use for some people, especially those of us that handle multiple devices in kmttg.

    It could also be a bit more confusing depending on how it is handled, but it would solve those people who ask how do they quickly output the file without major encode in the right format/container they want.
     
  15. Jan 24, 2013 #4635 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    sanjonny, I'll think about it some more. Perhaps a feasible way of implementing this is to have another VideoRedo config option such as "Combine Ad Cut & encode" such that you would then have to make sure you have a VRD encoding profile you want selected in kmttg even though "encode" is not enabled. Internally then kmttg would actually run "vrdencode" task instead of "Ad Cut" task. (These things always sound easier in English then they are to implement in code).
     
  16. Jan 24, 2013 #4636 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    I presently include the record date in my kmttg produced files. I noticed that when I highlight a show now it gives me the originalairdate. I would actually prefer that my file name included that, instead. I am not seeing a keyword for originalairdate. Could there be one?
     
  17. Jan 24, 2013 #4637 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I can add it, but as explained before the problem is originalAirDate is not 100% available for all shows, especially for older TiVos or if RPC is not enabled as a supplement, thus if you rely on it to make your file names instead of recording date, you could run into problems.
     
  18. Jan 24, 2013 #4638 of 10413
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I suppose a reasonable approach is if originalAirDate is not available to fall back to using year-monthNum-mday (the recording date). I just checked on my S3 and originalAirDate is very scarcely available even in extended metadata (which you get by right clicking an entry in kmttg). For those with series 4 and RPC enabled this will be useful (since kmttg automatically can get episode & originalAirDate information from RPC), but for older TiVos this is almost worthless.
     
  19. Jan 24, 2013 #4639 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Are you currently using the "custom" program option in kmttg? If not, I have written a python program you can use to add "episodeTitle" to the metadata file with a value of the first 80 characters of the description. It also removes any entries with a null value ( there is a bug in the current Premiere s/w that results in a bunch of null value vProgramGenre and vSeriesGenre entries). Unfortunately, it also "comments out" the programId as a Premiere will ignore the episodeTitle on a pull if the programId is valid.

    None of the above happens unless the "episodeTitle" entry is missing and there are "description" and "isEpisode : true" entries.
     
  20. Jan 24, 2013 #4640 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    That would be great. 2/3rds of my Tivos are now premieres. I'd rather have it use it 2/3's of the time and just try to record older series on those machines. Where it defaults to record date, one is no worse off than before.

    I assume you could just say if its an older machine default to record date otherwise use originalairdate. It would be a nice functionality addition.
     

Share This Page