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 30, 2010 #1841 of 10412
    abnersnell

    abnersnell New Member

    18
    0
    Mar 3, 2002
    Thanks Moyekj. I attempted tivo_hd on the latest Heroes. Here is the media info output below. Noticed the strange fps it reports, different from the source. I suspect this makes Streambaby actually convert it instead of streaming it natively based on the wiki compatibility diagram for h.264. Is it possible that this strange fps is what is causing the less than real-time delivery of the transcoded stream to the Tivo? Thanks for all of the help as always!

    General
    Complete name : C:\kmttg\work\Heroes\Pass_Fail.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 768 MiB
    Duration : 41mn 46s
    Overall bit rate : 2 570 Kbps
    Movie name : Pass/Fail
    Part/Position : 1
    Part/Total : 1
    Performer : Heroes
    Genre : Drama
    Encoded date : UTC 2010-01-18 00:00:00
    Writing application : Lavf52.46.0
    stik : 10
    desc : Hiro subconsciously deals with some of his past decisions as his brain tumor worsens; Claire receives an unexpected visit from Sylar; Samuels plan to impress Vanessa takes a frightening turn.
    tvsh : Heroes
    tvnn : WMAQDT

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.2
    Format settings, CABAC : No
    Format settings, ReFrames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 41mn 46s
    Bit rate mode : Variable
    Bit rate : 2 180 Kbps
    Nominal bit rate : 5 000 Kbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 25.655 fps
    Minimum frame rate : 19.980 fps
    Maximum frame rate : 59.940 fps
    Original frame rate : 59.940 fps
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.041
    Stream size : 651 MiB (85%)
    Writing library : x264 core 80 r1376 3feaec2
    Encoding settings : cabac=0 / ref=3 / deblock=0:0:0 / analyse=0x3:0 / me=umh / subme=9 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=0 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=4 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=0 / b_bias=0 / direct=2 / wpredb=1 / wpredp=0 / keyint=24 / keyint_min=2 / scenecut=0 / rc=abr / mbtree=0 / bitrate=5000 / ratetol=0.8 / qcomp=0.50 / qpmin=10 / qpmax=50 / qpstep=3 / ip_ratio=1.25 / pb_ratio=1.25 / aq=1:1.00

    Audio
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Codec ID : ac-3
    Duration : 41mn 46s
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Surround: L R, LFE
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 115 MiB (15%)
     
  2. Jan 30, 2010 #1842 of 10412
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    moyekj: I am a little confused on which VideoRedo you are now recommending as the "best choice" to use with your new version of kmttg (v0p7g). It was my impression that you were using the beta version of VideoRedo Plus (3.10.1.587?) which I have also been using. Are you now recommending making the move up to VideoRedo TvSuite4?
     
  3. Jan 30, 2010 #1843 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    Disregard this suggestion until TiVo adds support for TS to the U.S. boxes.

    Just tried beta v86a. It's perfect!

    I wouldn't mind the ability to hide the record times (under the date field), but that's more of a nitpick. V86a works very well for me as is.
     
  4. Jan 30, 2010 #1844 of 10412
    Sandi Shores

    Sandi Shores Not a coder!

    19
    0
    Sep 11, 2008
    Los Angeles, Ca
    OK I have the h version now, boy I never heard this program ding so much until tonight....

    I had all sorts of errors at first, it will not use VRD to decode "Encountered problems obtaining encoding profiles from VideoRedo" so I went back to not using that option and that error went away.

    Now I still can't qsfix:

    G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.TiVo: size=1196.40 MB elapsed=00:14:20 (11.67 Mbps)
    ---DONE--- job=download output=G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.TiVo
    >> DECRYPTING G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.TiVo ...
    "D:\Program Files\kmttg_v0p7d\tivodecode\tivodecode.exe" --mak MAK --out "G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg" "G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.TiVo"
    tivodecode job completed: 00:00:38
    ---DONE--- job=decrypt output=G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg
    (Deleted file: G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.TiVo)
    VideoRedo video dimensions filter is enabled
    VideoRedo video dimensions filter set to: x=720, y=480
    >> Running qsfix on G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg ...
    C:\Windows\system32\cscript.exe //nologo C:\Users\Sandi\AppData\Local\Temp\VRD3705462654741032950.vbs "G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg" "G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg.qsfix" /l:C:\Users\Sandi\AppData\Local\Temp\VRDLock2373408545114170992.tmp
    qsfix failed (exit code: 0 ) - check command: C:\Windows\system32\cscript.exe //nologo C:\Users\Sandi\AppData\Local\Temp\VRD3705462654741032950.vbs "G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg" "G:\Tivo Output\Americas Test Kitchen From Cooks Illustrated - Grilled Rack of Lamb Dinner _Ep#921.mpg.qsfix" /l:C:\Users\Sandi\AppData\Local\Temp\VRDLock2373408545114170992.tmp
    C:\Users\Sandi\AppData\Local\Temp\VRD3705462654741032950.vbs(25, 1) WScript.CreateObject: Could not locate automation class named "VideoReDo.VideoReDoSilent".

    I have already disabled UAC, run VRD and kmttg as admin.

    About updating, do I have to keep checking to see if you put out a new version or is there some way to get notified?

    Thanks again for the font size thing.
     
  5. Jan 30, 2010 #1845 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    I don't recall seeing the "HD Channels" folder before. Is this specific o the latest beta? Or did I somehow miss this in past versions?
     
  6. Jan 30, 2010 #1846 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Not really. VideoRedo Plus is just fine. I upgraded to TVSuite 4 because of ability to edit H.264 videos and secondary ability to encode to H.264 & VC-1. There are still things missing which I am waiting for in TVSuite 4 such as AC3 support in mp4 container. VideoRedo Plus is still fine for QS Fix, mpeg2 editing, etc. so there is really no reason to upgrade to TVSuite 4 for those capabilities.
     
  7. Jan 30, 2010 #1847 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    It's been there since folder support was added. I think it's pretty useless for most people, especially if most of your recordings are from HD channels. (And yes it's named "HD Channels" intentionally since it includes any recording from an HD channel - there is no information from TiVo metadata if a recording is true HD or upscaled HD).
     
  8. Jan 30, 2010 #1848 of 10412
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    I'd like those capabilities too, If we do upgrade, is there anything we have to configure differently in kmttg other than potentially the directory location?
     
  9. Jan 30, 2010 #1849 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Sandi, as long as you get this error VRD tasks won't work:
    WScript.CreateObject: Could not locate automation class named "VideoReDo.VideoReDoSilent".

    What version of VideoRedo are you running?

    Note that VideoRedo batch manager also relies on the above to work, so try using batch manager in VideoRedo:
    - Start VideoRedo GUI (not as administrator) and open up a video
    - Choose Save As... and then set the "Queue to batch" option and then choose "Queue" button.
    - Choose Tools->Start Batch Manager.
    - Choose "Save and Execute" button.

    This will create and run a VideoRedo batch script which uses "vp.vbs" script installed in VideoRedo which also relies on "VideoReDo.VideoReDoSilent" object to work.

    So by doing the above steps either:
    1. If it works it should create the object and then kmttg VRD scripts should work as well.
    2. If it doesn't work you will probably need to ask for help in VideoRedo forums to find out why not.
     
  10. Jan 30, 2010 #1850 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Directory location and optionally if you wish you can switch kmttg to use VideoRedo encoding profiles in the latest v0p7h version. (I am still using ffmpeg for encoding for now since VRD doesn't have AC3 support in mp4 container yet, though that capability will be coming).
     
  11. Jan 30, 2010 #1851 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    Thanks. I take it there is no way to hide this folder? My apologies if this was asked before.
     
  12. Jan 30, 2010 #1852 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    No. I probably should just take it out as I don't think many people care for it anyway...
     
  13. Jan 30, 2010 #1853 of 10412
    Sandi Shores

    Sandi Shores Not a coder!

    19
    0
    Sep 11, 2008
    Los Angeles, Ca
    Thanks for the help but I think I am done fiddling with it, too much hassle for a non-programmer person like me.

    I will go back to using PyTiVo and manually editing the files myself.
     
  14. Jan 31, 2010 #1854 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    That is a little odd on the variable frame rate. I just tried real quickly ff_tivo_hd profile on a 720p recording I had and it ended up with Constant frame rate of 59.940 fps (same as source). I do have that same Heroes episode, so even though of course the source comes from a different headend I've queued it up for download and encode just out of curiosity to see what I end up with. Will post results when complete.

    If you still have the original source mpeg would be curious to see Mediainfo results on it (to see if it perhaps has variable frame rate).

    NOTE: If you want to you can force ffmpeg to use a fixed frame rate for example by adding -r 59.94 to the ff_tivo_hd.enc file. Or perhaps make a copy of that file to a different name and add the frame rate option to it.

    EDIT: I reproduced the problem you are seeing. Turns out it's not the frame rate that is the problem. The problem is it encodes to H.264 Level 4.2 for this source which TiVo does not like/accept. I simply added -level 41 to the encoding specs and that fixed it - both streambaby and pyTivo push worked and video played back fine on my S3.

    So, in summary to fix it, edit ff_tivo_hd.enc file and right after libx264 add the following:
    -level 41
     
  15. Jan 31, 2010 #1855 of 10412
    abnersnell

    abnersnell New Member

    18
    0
    Mar 3, 2002
    Streambaby also reports "Same", meaning it will transcode, on the KMTTG TIVO_HD MP4 above. I am also experimenting with the h264 presets and will report back.

    General
    Complete name : C:\kmttg\work\Heroes\Pass_Fail.mpg
    Format : MPEG-PS
    File size : 5.50 GiB
    Duration : 1h 0mn
    Overall bit rate : 13.1 Mbps

    Video
    ID : 224 (0xE0)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@High
    Format settings, BVOP : Yes
    Format settings, Matrix : Default
    Duration : 1h 0mn
    Bit rate mode : Variable
    Bit rate : 12.2 Mbps
    Nominal bit rate : 20.0 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 29.970 fps
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Bits/(Pixel*Frame) : 0.196
    Stream size : 5.12 GiB (93%)

    Audio
    ID : 128 (0x80)
    Format : AC-3
    Format/Info : Audio Coding 3
    Duration : 1h 0mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Surround: L R, LFE
    Sampling rate : 48.0 KHz
    Stream size : 165 MiB (3%)

    Text
    ID : 224 (0xE0)-608-1
    Format : EIA-608
    Muxing mode : MPEG Video / EIA-708
    Muxing mode, more info : Muxed in Video #1
    Stream size : 0.00 Byte (0%)
     
  16. Jan 31, 2010 #1856 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    abnersnell, check my edit above. All you need to add is -level 41 to the existing ff_tivo_hd profile for it to work.
     
  17. Jan 31, 2010 #1857 of 10412
    nickhaas33

    nickhaas33 New Member

    38
    0
    Dec 11, 2006
    I just want to say THANKS to Moyekj for this program.
    This program works great!!!!!!!!!!!!!!!!
     
  18. Jan 31, 2010 #1858 of 10412
    stujac

    stujac Member

    2,343
    0
    Jan 26, 2002
    I'll second that. I transferred a bunch of stuff last night using the h version and everything went fine. Shows, clips, etc.
     
  19. Jan 31, 2010 #1859 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    abnersnell, I experimented some more with a 1 min clip from Heroes and found that simplifying the profile and increasing the bit rate to 7000k resulted in good quality result while still reducing the file size quite considerably. Here's my latest profile:
    Code:
    FFMPEG -y -i INPUT -threads CPU_CORES -acodec copy -vcodec libx264 -level 41 -b 7000k -refs 3 -bf 3 -me_method umh -subq 9 -me_range 16 -qmin 10 -qmax 50 -g 24 -f mp4 OUTPUT
    
     
  20. Jan 31, 2010 #1860 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    After some more tweaking I finally settled on this. The quality difference between source mpeg and resulting h.264 was virtually imperceptible, with still big file size savings:
    Code:
    FFMPEG -y -i INPUT -threads CPU_CORES -acodec copy -vcodec libx264 -flags +loop -coder ac -level 41 -b 8000k -refs 3 -bf 3 -me_method umh -subq 9 -me_range 16 -qmin 10 -qmax 50 -qscale 1 -sameq -g 24 -f mp4 OUTPUT
    
    I have checked in above in SVN as the encoding profile for next release for ff_tivo_hd. I have same profile for ff_tivo_sd but with 3000k bit rate.
     

Share This Page