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. Feb 1, 2010 #1861 of 10411
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Just out of curiosity, how are the VC-1 encodes? From past experience, VC-1 takes quite a bit longer than MPEG2 or H.264 encoding. Is that the case with VRDv4 as well? Interested to hear about it if you have messed around with it at all.
     
  2. Feb 1, 2010 #1862 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Haven't played with it much, just on some short clips. But for example on a 5 minute clip with profiles setup for a fixed output resolution and bit rate the H.264 encode was almost 3x faster. Resulting file size for VC-1 was about 15% smaller however. So certainly compared to H.264 VC-1 encoding is slow. One nice thing is that VC-1 encodes out of VRD TVS4 are TiVo Series 3 compatible.
    Also a note that H.264 encodes out of TVS4 automatically place the "moov" atom at the front of the file which automatically make them TiVo Series 3 compatible without having to run qt-faststart on them (or have pyTivo and/or streambaby take care of doing that for you).
    Main shortcoming right now is no AC3 audio in MP4 container, but that capability is expected to roll out in an unspecified future update and presumably before the full blown release of TVS4 (right now they are still in pre-release mode and not providing direct links on their web site to TVS4).
     
  3. Feb 2, 2010 #1863 of 10411
    sender_name

    sender_name I remember XM 202!

    227
    0
    Feb 11, 2005
    Northboro Ma
    I am confused by the VideoReDo page...it seems that it was recently updated to a newer version, but the versions for sale on the download page are still

    Download Info:
    Version: 2.5.6-512
    Last Update: June 17, 2007


    for videoredo plus...
     
  4. Feb 2, 2010 #1864 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    If you want latest TVSuite 4 version with H.264 support, see here.
    If you are just looking for latest version of VideoRedo Plus see here.
     
  5. Feb 2, 2010 #1865 of 10411
    sender_name

    sender_name I remember XM 202!

    227
    0
    Feb 11, 2005
    Northboro Ma
    cool, thanks for the link...dropped the cash today...one of the most 'worth it' programs i have come across in while that didn't have a red,green,yellow,blue squares logo
     
  6. Feb 3, 2010 #1866 of 10411
    Icarus

    Icarus New Member

    360
    0
    Jun 15, 2002
    Upcountry...
    ok, never mind, I think I solved my problem.

    I had an extra box checked on the videoreview config pane.

    I would think that if "Bring up VRD GUI to make manual cuts" box is checked and the proper file doesn't get generated in that step, maybe it could stop instead of blindly trying to move on and possibly deleting all the input files.

    -David
     
  7. Feb 3, 2010 #1867 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    I've added a check for next release to look for expected output file: "file (02).mpg" for vrdreview task if that option is enabled and mark job as failed if it doesn't find it. If job is marked as failed then it won't look to remove file.mpg if option to remove mpeg file after Ad Cut is enabled.
     
  8. Feb 3, 2010 #1868 of 10411
    Icarus

    Icarus New Member

    360
    0
    Jun 15, 2002
    Upcountry...
    Thanks, Moyekj. The new version with the tvs4 changes is great.

    -David
     
  9. Feb 4, 2010 #1869 of 10411
    abnersnell

    abnersnell New Member

    18
    0
    Mar 3, 2002
    Thanks Moyekj! I also have done several tests with the following CRF profile with -level 41 included to keep the StreamBaby native compatibility. The result could quite possibly be the Holy Grail of quality/size. 41 minute episodes are approx 550mb and 21 minute episodes are approx 200mb. They look fantastic on a 47inch LCD. One catch - I had to use the ffmpeg version included with the recent release of WinFF 1.2. It must include something that the KMTTG version doesn't to support these flags. I would be interested to hear others opinions on the quality of the output. Changing -crf from 35.0 to 25.0 to 15.0 will increase quality but will also increase file size and -acodec copy can also be used to keep the original AC3.

    Code:
    FFMPEG -y -i INPUT -f mp4 -crf 35.0 -level 41 -vcodec libx264 -acodec libfaac -ar 48000 -ab 192kb -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads CPU_CORES OUTPUT
    
     
  10. Feb 4, 2010 #1870 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    For kmttg v0p7h when you install in a fresh folder it will download very recent version of ffmpeg that mostly works with the above, except a couple of changes: change libfaac to aac and add the following flags: -qmin 10 -qmax 50. i.e.
    Code:
    FFMPEG -y -i INPUT -f mp4 -crf 35.0 -level 41 -vcodec libx264 -acodec aac -ar 48000 -ab 192kb -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 50 -b_strategy 1 -threads CPU_CORES OUTPUT
    
    However, if your source is mpeg with AC3 audio and your target is streambaby playback you shouldn't transcode audio to AAC. Change back to simply copy audio to preserve multi-channel AC3. TiVo can only properly handle 2 channel AAC playback so you are better off leaving audio as AC3. i.e.
    Code:
    FFMPEG -y -i INPUT -f mp4 -crf 35.0 -level 41 -vcodec libx264 -acodec copy -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 50 -b_strategy 1 -threads CPU_CORES OUTPUT
    
     
  11. Feb 4, 2010 #1871 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    moyeki,

    Considered remux capability? VideoRedo will save MPEG-2 files as mpg, m2ts, or dvr-ms. It will also save H.264 files as mp4, ts, or m2ts. It would be nice to have the choice in kmttg, since some formats work better with certain devices (ex: m2ts for PS3 and some Blu-ray players).

    For those without VideoRedo, you could add TS and M2TS muxing options with tsMuxer. The tsMuxer site has command line versions available for Windows, OSX, and Linux. The free tsMuxer GUI utility from the same site also shows the appropriate command line parameters for each muxing option in its console window, so you don't have to figure those out yourself.

    I think remux options might make the most sense with a second list control. I don't think you'd need a separate checkbox for remux; you could place "<mux format" or "Save as <mux format>" to the left of Encoding profile, with MPG as the default, and TS and M2TS as options; muxing would only be set if the user selected something other than the default. Further options (or lack thereof) might depend on whether encode is selected; if the user selects ff_zune encode profile, then you might list MP4 in the "Save as <mux format>" control and gray out the other options.

    To expand the use of tsMuxer, you could add Blu-ray and AVCHD authoring options to the FILES tab (or create a new AUTHOR tab), using the appropriate command line parameters copied from tsMuxerGUI. To automate AVCHD and Blu-ray disk authoring on Windows, you could integrate with ImgBurn. ImgBurn accepts command line parameters to set the appropriate UDF 2.5 format and burn Blu-ray and AVCHD folders (or create an ISO); this capability is well-documented in the program's readme.txt.
     
  12. Feb 5, 2010 #1872 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Yes I can add the other types of VRD profiles too easily enough - personally I don't have much use for them but I could see where others might want them.

    The "encode" task is actually wide open to run pretty much whatever script or program you want and could certainly be used for tasks like the ones you describe. The "custom" task could also be used for perhaps another/different task. It's really pretty wide open what one can do. I stopped burning video (or pretty much anything else) to hard media quite a while back as I don't really see it as necessary anymore what with the abundance of hard drive and flash capacity and many options for portability and/or streaming. So I wonder if burning to hard media is something that is still popular?
     
  13. Feb 5, 2010 #1873 of 10411
    smileyscout

    smileyscout New Member

    9
    0
    Dec 9, 2007
    Code:
    FFMPEG -y -i INPUT -f mp4 -crf 35.0 -level 41 -vcodec libx264 -acodec copy -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 50 -b_strategy 1 -threads CPU_CORES OUTPUT
    This profile came up with some pretty amazing results. I used it on a 3.55 gb 720p episode of House and the output was 291 mb. For the size it really looked good. However there was a wee bit too much macro-blocking and distortion around objects moving in the frame for my taste.

    I'm quite inexperienced with configuring proper encoding profiles. Which arguments would I change to get the file size to about 600 mb and would that be enough extra space to improve quality significantly?

    If anyone has a space efficient profile for SD I would be interested. I encoded a 528 x 480 1.1 GB SD show from EWTN with two different profiles. The ff_ipod_high_res profile resulted in a 700 mb file. I know h.264 can do better then xvid I just don't know what arguments to set without destroying the audio sync or doing something unholy to the video stream.

    Any help you guys can provide would be much appreciated.
     
  14. Feb 6, 2010 #1874 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    smileyscout, try the one I posted at end of last page for HD that I plan to release as ff_tivo_hd in next release. It produced very good results for me from 1080i sources and with good 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
    
    For SD encodes simply change to "-b 3000k".
     
  15. Feb 6, 2010 #1875 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    If you are updating the ffmpeg profiles, you may want to set the BT709 flag on HD encodes. A number of different Sigma-based media players (WDLive, Popcorn Hour, et) assume BT601 on HD content if no BT709 flag is set, which throws off color reproduction (example).

    With x264, one can set BT709 as follows:

    --colorprim bt709 --transfer bt709 --colormatrix bt709

    I'm not sure which of those ffmpeg supports.
     
  16. Feb 6, 2010 #1876 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    I didn't see any of those options available in ffmpeg, and this mapping page doesn't show any either:
    http://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping
     
  17. Feb 6, 2010 #1877 of 10411
    sender_name

    sender_name I remember XM 202!

    227
    0
    Feb 11, 2005
    Northboro Ma
    Alright...I just started using v0p7h and now every time i try to convert a mpg (saved .TiVo from videoredo) using handbrake hb_television it goes for about 30 seconds and then i get

    "HandBrakeCLI.exe has stopped working"


    it crashes...what do i need to do to fix this... v0p7h worked ok...
     
  18. Feb 7, 2010 #1878 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    I just googled, and a Feb 4 post suggests that the "'-colorspace 4" option was added to set bt.709 in the latest trunk. Sounds like you'll have to wait on that.

    HandbrakeCLI apparently supports color-matrix, though that setting may be redundant if set by resolution as indicated.

    Code:
        -M  --color-matrix      Set the color space signaled by the output
              <601 or 709>      (Bt.601 is mostly for SD content, Bt.709 for HD,
                                 default: set by resolution)
     
  19. Feb 7, 2010 #1879 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Try the older HandBrake executable from here. I just tried a few short clips (1080i, 720p & 480i) with hb_television profile and newer handbrake and didn't have any problems.
     
  20. Feb 7, 2010 #1880 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    I just tried and -colorspace 4 is an accepted option by the newer ffmpeg released with kmttg, but not sure how to know if it does anything related to bt.709.

    For Handbrake after encoding an HD video Mediainfo does show BT.709 is set:
    Code:
    Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer characteristics         : BT.709-5, BT.1361
    Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    
    ffmpeg shows nothing of the short so I assume "-colorspace 4" does not set those options with current version.
     

Share This Page