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

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

  1. Nov 12, 2019 #12481 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    I just noticed that I'm getting a MUX type of TS Stream in my final downloaded .mpg videos. MediaInfo reports the file format as MPEG-TS, and the Video format as MPEG Video Version 2

    I'm not sure at this point if it is a kmttg v2.4o issue or a VRD v6 issue. I suspect some of the changes in kmttg to work with VRD v6 (I have kmttg use VRD to decrypt/qsfix and to adcut)

    I download video from my TiVo w/ the TS downloads unchecked, because I want PS downloads.

    I'll post back once I've done more research, I just wanted to ask if anyone else has had this happening.
     
  2. Nov 12, 2019 #12482 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    More information. It seems that the decrypted qsfixed file output by VRD v6 with a PS Stream .TiVo file is a TS stream file with a .mpg extension ?!

    Here's the kmttg log output for a job run w/
    • unchecked TS Downloads
    • checked metadata
    • checked decrypt
    • checked qsfix
    • checked ad detect
    • everything else unchecked
    Code:
    The Good Place - Employee of the Bearimy
    Recorded Thu 10/24/2019 09:00 PM on 603=WBTS-LD, Duration=31 mins, EpisodeNumber=405, originalAirDate=2019-10-24
    Michael and Jason hatch a plan. Eleanor learns firsthand the difficulties of running the neighborhood.
    >> CREATING F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg.txt ...
    https://192.168.100.82:443/TiVoVideoDetails?id=52715
    metadata job completed: 0:00:00
    ---DONE--- job=javametadata output=F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg.txt
    >> DOWNLOADING FROM 'LivingRoomBolt' F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).TiVo ...
    http://192.168.100.82:80/download/The+Good+Place.TiVo?Container=%2FNowPlaying&id=52715
    F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).TiVo: size=1687.89 MB elapsed=0:06:06 (38.69 Mbps)
    ---DONE--- job=javadownload output=F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).TiVo
    container=mpeg, video=mpeg2video
    >> Running qsfix on F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).TiVo ...
    C:\Windows\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).TiVo" "F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg.qsfix" /l:C:\Users\mjl\AppData\Local\Temp\VRDLock8082832977845577478.tmp /c:mpeg /v:mpeg2video
    qsfix job completed: 0:00:47
    ---DONE--- job=qsfix output=F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg.qsfix
    (Renamed F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg.qsfix to F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg)
    AutoSkip exporting cut points to VRD VPrj file: F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).VPrj
    (video file used: F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg)
     
  3. Nov 12, 2019 #12483 of 12561
    elprice7345

    elprice7345 Member TCF Club

    346
    17
    Sep 28, 2009
    Denver, CO
    @mlippert - I can confirm that I have the same "issue". I run a very similar process and see the same things.

    I say "issue", because Mediainfo says it is in the wrong Format, but I can still play (JRiver Media Center & VLC) and edit (VRD6) the shows.

    Mediainfo also reports that the file extension is invalid.

    Other than the fields being wrong in Mediainfo, is there any practical concern? Not trying to be snarky ... asking a real question. :)

    I do believe the problem should be addressed and corrected even if there are no practical issues. Who knows where this might cause problems down the road or with other apps.

    Have you posted over on the VRD forum?
     
  4. Nov 12, 2019 #12484 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    Thanks, that's good to know.

    Well I first noticed the issue because VLC wouldn't play the file (on my linux machine). Arguably depending on the file extension to be correct isn't the best practice, but it is still a problem.

    I'm not sure it's VRD's issue (@Dan203 ?) because if kmttg is telling to it create a TS stream file and name it with a .mpg extension, then it is a kmttg problem, and I'm not sure where to look yet to determine that.

    [edit] I can play the video if I change the extension to .ts, but I don't actually like saving .ts files, I prefer to save my MPEG2 videos as .mpg PS stream files, and my H.264 video as an .mp4 files.
     
  5. Nov 12, 2019 #12485 of 12561
    moyekj

    moyekj Well-Known Member

    11,909
    661
    Jan 23, 2006
    Mission...
    From your posting, kmttg is using "/c:mpeg" (container=mpeg) "v:mpeg2video" (video codec=mpeg2) when calling qsfix. i.e. The intent is correct. So assuming the updated profiles I was given that are supposedly VRD6 compatible then either:
    1. There's an issue with qsfix.vbs file not being correct for using with VRD 6
    2. There's an issue or change in behavior with VRD 6
    Code:
    C:\Windows\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).TiVo" "F:\kmttgRecordings\The Good Place - s04e05 - Employee of the Bearimy (Oct_24_2019, WBTS-LD).mpg.qsfix" /l:C:\Users\mjl\AppData\Local\Temp\VRDLock8082832977845577478.tmp /c:mpeg /v:mpeg2video
    
     
    mlippert likes this.
  6. Nov 12, 2019 #12486 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    Thanks, that is what I was thinking, but it was still speculation on my part. I'm wondering if @Dan203 could check to see where the issue is (as the most knowledgeable person about VRD 6)?
     
  7. Nov 12, 2019 #12487 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    @moyekj I think I've found and fixed the problem in qsfix.vbs

    I don't know how you would want a pull request so here's the changes:

    The current code line 78-84:
    Code:
    '  Decide on output types
    if ( ver = 6 ) then
        profileName = "Transport Stream"
        if ( c = "mp4" ) then
            profileName = "MP4"
        end if
    else
    
    should be changed to:
    Code:
    '  Decide on output types
    if ( ver = 6 ) then
        profileName = "Program Stream"
        if ( c = "mpegts" ) then
            profileName = "Transport Stream"
        elseif ( c = "mp4" ) then
            profileName = "MP4"
        end if
    else
    
    I did not test the transport stream or mp4 code paths, but I'm pretty sure this code is correct. I did test that it gave me the expected program stream file in the output .mpg file.
     
    minimeh, elprice7345 and kpeters59 like this.
  8. Nov 13, 2019 #12488 of 12561
    moyekj

    moyekj Well-Known Member

    11,909
    661
    Jan 23, 2006
    Mission...
    OK, change checked in for next release.
    BTW, I don't have VRD 6 myself to test any of the scripts.
     
    mlippert likes this.
  9. Nov 13, 2019 #12489 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    Thanks @moyekj
     
  10. Nov 16, 2019 #12490 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    Oops, sorry @moyekj , I didn't notice that the VRDscripts/adcut.vbs had the exact same problem with the exact same fix. The code block to be updated in adcut.vbs is lines 66-72
     
  11. Nov 16, 2019 #12491 of 12561
    moyekj

    moyekj Well-Known Member

    11,909
    661
    Jan 23, 2006
    Mission...
    Fixed and checked in.
     
    mlippert likes this.
  12. Nov 24, 2019 #12492 of 12561
    lew

    lew Well-Known Member

    4,225
    74
    Mar 12, 2002
    I upgraded to VRD6. I still have VRD5 installed. I'm also having some issues with qsfix and encoding. Possible issue. I still have vrd5 installed. My config.ini file is pointing to VRD5 but he encoding profiles for VRD6 not VRD5 are listed. I'm using kmttg 2.4o

    I'd be happy just using VRD5 with KMTTG.

    Problem is both running jobs from GUI and with autotransfers run with windows scheduler.

    Obviously I edited the config.ini to the location, and file name, of VRD6
    Didn't seem to help
     
    Last edited: Nov 24, 2019
  13. Nov 24, 2019 #12493 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    VRD registers a bunch of stuff for COM and I think only 1 version can have those entries. It sounds like VRD 6 has them on your system.

    My kmttg config.ini has NO entries that give a location for VRD? I think it relies on VRD's COM registration using the scripts.

    I have both VRD5 and VRD6 installed, and the only issues I had were the ones I gave Kevin fixes for above. Those were only related to PS downloads, so can you describe the issues you are having?

    I don't think a new build w/ those fixes is available yet, but it should be straightforward to edit those 2 files until the build is released, if that's your issue.
     
  14. Nov 24, 2019 #12494 of 12561
    SamuriHL

    SamuriHL Member

    40
    10
    Jan 23, 2012
    No, that's not true. Each version registers its own version of com. VRD5 vs VRD6, as an example. You can see this in the vbs scripts that were updated for VRD6. KMTTG definitely points to a specific version of VRD. My guess would be the issue they're seeing is a bug in one of the scripts but I haven't looked. In any case, you can definitely have more than one VRD version installed, and they do not conflict, even at the com level.

    EDIT:

    <VRDexe>
    C:\Program Files (x86)\VideoReDoTVSuite6\VideoReDo6.exe

    That's what you'll see in the config.ini for kmttg.
     
  15. Nov 24, 2019 #12495 of 12561
    mlippert

    mlippert Active Member

    280
    57
    Apr 2, 2010
    Massachusetts
    @SamuriHL Interesting, I wasn't sure, but I'll buy that about the COM entries, I was just writing off the top of my head without checking (never the best idea)

    My kmttg config.ini has the <VRDexe> section but no value, and kmttg is set to use VRD and does so jut fine FWIW.

    [edit] Ah I was just looking at the VRD configuration tab, I suspect kmttg only needs to know the executable if you have any of the use VRD GUI options selected, and I don't.
     
    Last edited: Nov 24, 2019
  16. Nov 24, 2019 #12496 of 12561
    SamuriHL

    SamuriHL Member

    40
    10
    Jan 23, 2012
    No worries. I just didn't want that to be taken as fact. :)

    That is interesting. I don't know what it does in that case tbh.
     
    mlippert likes this.
  17. Nov 24, 2019 #12497 of 12561
    lew

    lew Well-Known Member

    4,225
    74
    Mar 12, 2002
    The qsffix gets almost done and then hangs. I download with ts. I tried it with at least 3 different videos.

    My memory is kmttg used to require, during configuration, location of vrd. I'm sure my config file goes back to that time.
     
    Last edited: Nov 24, 2019
  18. Nov 24, 2019 #12498 of 12561
    SamuriHL

    SamuriHL Member

    40
    10
    Jan 23, 2012
    I've not been having that issue. I do a large quantity of both TS and PS files each week and they all complete fine. As noted above, my config file is pointed to VRD6. I uninstalled VRD5 when 6 was released. I've not had any real issues with this setup at all. In fact, I wrote my own powershell script to network with my HTPC that has a 2070 to do hevc encodes of my PS mpeg2 files using a custom VRD6 profile I created. It works amazingly well.
     
  19. Nov 25, 2019 #12499 of 12561
    DC_SnDvl

    DC_SnDvl New Member

    15
    1
    Dec 1, 2015
    I am having the same issue with qsffix hanging at the end. I tried unchecking it from the job options, but it still executes the process.

    Does anyone know how to fix the issue or do I need to wait for the next update. I an down to 8% free space on my Bolt and am hoping to copy some shows off before running out of space.

     
  20. Nov 26, 2019 #12500 of 12561
    lew

    lew Well-Known Member

    4,225
    74
    Mar 12, 2002
    qsfix seems to be working. I did two things. I uninstalled VRD5. I tried to delete a file I downloaded. It said file was open in VRD and wouldn't delete. I rebooted and was able to delete.

    VRD encoding profiles work in KMTTG GUI but show as not valid when auto transfers are run (via windows task scheduler.
    Any suggestions. I refreshed encoding profiles.

    edited to add when I still had VRD5 installed the auto transfer log said I had an invalid encoding profile and the job bombed out. After I deleted VRD the encoding step is just skipped without any notice in the log file. Works fine if I used a non VRD encoding profile (FF for example)

    edited to add: I spoke to soon. Running auto transfers under windows task scheduler qsfix all but finishes but then hangs.
     
    Last edited: Nov 27, 2019
    billpiper likes this.

Share This Page