kmttg vs pytivo, mp4

Discussion in 'TiVo Help Center' started by jastavoss, Mar 18, 2021.

  1. jastavoss

    jastavoss Member

    127
    1
    Sep 15, 2012

    Advertisements

    Which is better for downloading Tivo, and converting to mp4? How long does conversion of a 2 hour video take?
     
  2. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    It does take a while to convert to MPEG4 due to compression, but if you would be uploading back to the Tivo, then the time spent is worthless because it must transcode (download and convert) back to mpeg2.
     
  3. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada
    Not true. As long as you have a modern TiVo (Premier or newer) and you have the "send file as transport stream" option set to auto or on then it will send H.264 streams back to the TiVo without transcoding.

    OP - If your intention is to upload files back to your TiVo then pyTivo is the only option for that. kmttg can only download.

    Also pyTivo Desktop can only recode automatically using VideoReDo. I think kmttg can use ffmpeg. So that's a paid vs free solution if you're not already a VideoReDo user.
     
  4. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    I just made that setting to Auto, and testing on a video. The info says the size is 6GB when I know its much smaller than that.
     
  5. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada

    Advertisements

    Are you sure the file is H.264 and not MPEG-4 part 2? Only works with H.264.

    Also there may be other things about the file that could trigger a recode. I'm not sure how deep the pyTivo code looks at compatibility. (that's part I didn't write) But I know it can do it. I've done it many times myself in testing.

    Could also be that the size reported by TiVo is just wrong.
     
  6. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    Yes, its wrong size. The video file was an encode by KMTTG (PS3 encode profile) from the PS download (or DVD, I forget).

    Update: the show now states size as 4.6GB after the transfer finished. Actual file size: MPEG2: 1.8GB, MPEG4: .9GB.
     
    Last edited: Mar 18, 2021
  7. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada
    Doesn't the TiVo show the video codec in the info section?

    If that shows MPEG-2 than there must be something about your file that is triggering a recode. I just double checked the pyTivo code and it definitely allows h.264 video so I'm not sure what that would be. This is getting into a portion of the code I didn't write so I'm not 100% clear on how it all works.

    Maybe you should try wmcbrine's original code and see if that works. If it does and mine doesn't then let me know and I'll investigate further.
     
  8. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    I think this is the encode file from KMTTG.
     

    Attached Files:

  9. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada
    From what I can tell in the code there are no requirements for H.264. It just sends as-is.

    I wonder if the Auto option is the problem. Maybe it's not detecting your TiVo as compatible. Try setting it to "On" and see if that works.
     
  10. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    I am going to try to encode on another video (Using KMTTG, ffh264, med rate).
     
  11. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada
    According to the code any TiVo with a TSN that starts with 7 or higher is compatible.

    All mp4 files are considered as "TS" files.

    And all H.264 is accepted if the output is TS.

    So there is nothing here that should trigger your file to transcode.

    This might just be a TiVo display issue
     
  12. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    Update: The re-encoded video using h264/med rate, initial size was 6.4GB and after it finished, 2.3GB, on PyD off (apparently, I didn't hit save when I turned it to auto.)

    Update2: The video size during transfer was 2.3GB and finished at .8GB. (on Auto.) Original MPG4 file at about 750MB, encoded from 1.8GB MPEG2 (h264/med rate.) The funny thing is the show transferred shows up as 2 shows. Delete 1 and it also deletes the other.
     
    Last edited: Mar 18, 2021
  13. robojerk

    robojerk Well-Known Member

    2,864
    294
    Jun 13, 2006
    Laguna Hills CA
    I haven't used pyTivo in a while.. Can you have it download files into "Directory A" then after transcoding is complete the finished file is put in "Directory B" which is being monitored, and uploaded back to the TiVo automatically?
    If yes, maybe you could have an app like Tdarr (has scripts to use Handbrake or ffmpeg) handling conversions for you as it will scan "Directory A" and be configured to place finished files in "Directory B".

    I've been using Tdarr to convert my entire library to h265
     
  14. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    No, the transcoding is automatically done within the Tivo during the transfer, if its doing transcoding.
     
    Last edited: Mar 18, 2021
  15. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada
    The TiVo doesn't transcode anything. It records the video directly from the cable bitstream and when you transfer to a PC it transfers that same stream directly. (it does encrypt on the fly, but that's it) When uploading back to a TiVo if something needs to be transcoded it happens in pyTivo using ffmpeg.
     
  16. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,516
    7,529
    Apr 17, 2000
    Nevada
    I don't know what's happening. Maybe you need to reboot your TiVo. Sometimes doing a lot of transferring can confuse it.
     
  17. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    I'd say it worked and no transcoding on the final file. .84GB (TS uploads Auto) Vs. 4.6GB (TS uploads off)
     
    Dan203 likes this.
  18. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    Using KMTTG's encoding profile of 'ff_h264_Med_rate', I got about as much as 85% compression rate.

    I tried it on some old black & white videos I still have, Adventures of Superman, the original size (after commercial cutted) was about 470mb, after encoded, about 350mb.
    I then tried it with an episode of This Old house, 2.4GB, reduced to about 350mb.
     
  19. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,816
    1,187
    Apr 6, 2000
    SF Bay Area
    Here is some MediaInfo on a video file before and after KMTTG encoding on ff_h264_Medrate profile.

    General
    Complete name : M:\Videos\Bewitched\Season 1\Bewitched - 0121 - Ling Ling.mpg
    Format : MPEG-PS
    File size : 744 MiB
    Duration : 29 min 58 s
    Overall bit rate mode : Variable
    Overall bit rate : 3 469 kb/s

    Video
    ID : 224 (0xE0)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@Main
    Format settings : CustomMatrix / BVOP
    Format settings, BVOP : Yes
    Format settings, Matrix : Custom
    Format settings, GOP : Variable
    Format settings, picture structure : Frame
    Duration : 29 min 58 s
    Bit rate mode : Variable
    Bit rate : 3 208 kb/s
    Maximum bit rate : 15.0 Mb/s
    Width : 704 pixels
    Height : 480 pixels
    Display aspect ratio : 4:3
    Frame rate : 29.970 (30000/1001) FPS
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.317
    Time code of first frame : 00:00:00;00
    Time code source : Group of pictures header
    GOP, Open/Closed : Open
    GOP, Open/Closed of first frame : Closed
    Stream size : 688 MiB (92%)

    Audio
    ID : 189 (0xBD)-128 (0x80)
    Format : AC-3
    Format/Info : Audio Coding 3
    Commercial name : Dolby Digital
    Muxing mode : DVD-Video
    Duration : 29 min 58 s
    Bit rate mode : Constant
    Bit rate : 192 kb/s
    Channel(s) : 2 channels
    Channel layout : L R
    Sampling rate : 48.0 kHz
    Frame rate : 31.250 FPS (1536 SPF)
    Compression mode : Lossy
    Stream size : 41.2 MiB (6%)
    Service kind : Complete Main

    Text
    ID : 224 (0xE0)-CC1
    Format : EIA-608
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 29 min 58 s
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)
    CaptionServiceName : CC1

    General
    Complete name : M:\Videos\Bewitched\Season 1\Bewitched - 0121 - Edit - Ling Ling.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom (isom/iso2/avc1/mp41)
    File size : 333 MiB
    Duration : 21 min 17 s
    Overall bit rate : 2 185 kb/s
    Collection : Bewitched
    Season : 1
    Album : Bewitched, Season 1
    Album/Performer : Bewitched
    Part : 21
    Part/Position : 1
    Part/Total : 1
    Track name : 121 - Ling Ling
    Track name/Position : 121
    Performer : Bewitched
    ContentType : TV Show
    Description : Sam provides a feline model for Darrins ad campaign. Samantha: Elizabeth Montgomery. Darrin: Dick York. Ling-Ling: Greta Chee. Tate: David White. Louise: Irene Vernon. Gladys: Alice Pearce. *
    Recorded date : UTC 1965-02-11 00:00:00
    Tagged date : UTC 2021-04-05 02:59:50
    Writing application : Lavf57.28.100
    LongDescription : Sam provides a feline model for Darrins ad campaign. Samantha: Elizabeth Montgomery. Darrin: Dick York. Ling-Ling: Greta Chee. Tate: David White. Louise: Irene Vernon. Gladys: Alice Pearce. *
    ContentRating : us-tv|TV-G|300|
    Part_ID : 121
    TVNetworkName : VIDEO-MP4

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings : 4 Ref Frames
    Format settings, CABAC : No
    Format settings, Reference frames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 21 min 17 s
    Bit rate : 2 000 kb/s
    Width : 704 pixels
    Height : 480 pixels
    Display aspect ratio : 4:3
    Frame rate mode : Constant
    Frame rate : 29.970 (30000/1001) FPS
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.197
    Stream size : 303 MiB (91%)
    Writing library : x264 core 148 r2665 a01e339
    Encoding settings : cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=dia / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=1 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=29 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=50 / qpstep=4 / vbv_maxrate=16000 / vbv_bufsize=14745 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
    Codec configuration box : avcC

    Audio
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Commercial name : Dolby Digital
    Codec ID : ac-3
    Duration : 21 min 17 s
    Bit rate mode : Constant
    Bit rate : 192 kb/s
    Channel(s) : 2 channels
    Channel layout : L R
    Sampling rate : 48.0 kHz
    Frame rate : 31.250 FPS (1536 SPF)
    Compression mode : Lossy
    Stream size : 29.2 MiB (9%)
    Service kind : Complete Main
    Default : Yes
    Alternate group : 1
     

Share This Page

spam firewall

Advertisements