mkv2tivomp4.bat

Discussion in 'TiVo Home Media Features & TiVoToGo' started by orangeboy, May 8, 2010.

  1. orangeboy

    orangeboy yes, I AM orangeboy!

    4,089
    0
    Apr 19, 2004
    East Moline, IL

    Advertisements

    Glad to hear it!
     
  2. Mikey_C

    Mikey_C Member

    120
    6
    Jun 24, 2003
    I'd tell...
    Just got mk2Tivomp4 and I'm using it with Streambaby. The only issue I'm having is that any 720p video that is less than exactly 1280x720 (1280x538, for example) gets downrezzed to 480i by the Tivo. I found an explanation on the Streambaby wiki that says its a bug in the way Tivo processes h264 video. My question is, is there any way to add some code to this batch file so if the file is less than 1280x720 it can "pad" it out to 1280x720?
     
  3. orangeboy

    orangeboy yes, I AM orangeboy!

    4,089
    0
    Apr 19, 2004
    East Moline, IL
    It's unlikely that a feature like that will get directly added. eac3to, mp4creator nor mp4box have options (that I can find) to manipulate the video size, so an additional tool (or tools) would need to be incorporated. Adding in another tool like ffmpeg to do the padding could introduce additional support issues as well; some ffmpeg builds use options like -padtop and -padbottom, while others use -vf pad= option. I like hearing people say "it works!", and not saying "it's broke!" :D

    But... Are you doing any user post-processing commands/programs automatically with the batch? It was one of the last steps in the setup dialog. I could *maybe* come up with an add-on that would do what you're looking for. I think I've got a handle on invoking MediaInfo to get video attibutes, so coupling that information with something like ffmpeg or mencoder may produce the desired results.
     
  4. Mikey_C

    Mikey_C Member

    120
    6
    Jun 24, 2003
    I'd tell...
    I just did a little experiment using ffmpeg. The only way to resize it to 1280 x 720 is to re-encode it.. vcopy won't do it. <bummer>
     
  5. orangeboy

    orangeboy yes, I AM orangeboy!

    4,089
    0
    Apr 19, 2004
    East Moline, IL

    Advertisements

    Hmm... found this command line:

    Code:
    ffmpeg -i input.avi  -padtop 120  -padbottom 120  -padcolor 000000  output.avi
    
    It's curiously absent of *any* codec information. But it is a Linux distribution ffmpeg command line. I'm not sure if the Win32 versions would work. Could you try this on one of your 1280x538 videos?

    Code:
    ffmpeg -i some.file.in.mp4  -padtop 90  -padbottom 92  -padcolor 000000  some.file.out.mp4
    
     
  6. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I am pretty sure that you will need a full re-encode since you are trying to add data to each frame. See this post on a ubuntu forum about ffmpeg with pad options.
     
  7. jcthorne

    jcthorne Well-Known Member

    3,116
    196
    Jan 28, 2002
    Houston
    Did you ever find a solution to mkv's with AAC audio? I tried placing neroaacdec.exe in the same folder with the bat and eac32 and the bat closes before I can read the error message but it does not extract the tracks.

    Been a while since I used this. I had gotten away from it because of the 720p video bug in TivoHD but no longer have that issue with the Premiere. Also have a large number of files I'd like to convert so doing them one at a time in meGUI is tedious at best. Thanks!
     
  8. orangeboy

    orangeboy yes, I AM orangeboy!

    4,089
    0
    Apr 19, 2004
    East Moline, IL
    Unfortunately, no. I've got a script that invokes mediainfo, ffmpeg and x264 that handles everything but mkv and mp4 to make a TiVo compatible h264/AC3/mp4 file. I've been meaning to do a bit more mediainfo processing to get detailed h264 information such as ref-frames, but time hasn't allowed me to expand that script further, otherwise I'd share it with the Community.
     
  9. enclave000

    enclave000 New Member

    11
    0
    Jan 8, 2011
    thanks
     
  10. jcthorne

    jcthorne Well-Known Member

    3,116
    196
    Jan 28, 2002
    Houston
    Any way we (I) could persuade you to update the routine to handle mkvs that contain aac audio? eac3to.exe now does the extraction/conversion to ac3. At least it can from within meGUI. Would sure be great to be able to run these web downloads through your batch file for tivo.
     
  11. tgrim1

    tgrim1 New Member

    199
    0
    Sep 11, 2006
    Iowa
    2 comments/questions...

    1. Im having trouble with several mkv's that have 2 channel AAC, here is one of them...

    Code:
    Video
    ID                               : 1
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.1
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 4 frames
    Codec ID                         : V_MPEG4/ISO/AVC
    Duration                         : 1h 15mn
    Nominal bit rate                 : 633 Kbps
    Width                            : 1 280 pixels
    Height                           : 496 pixels
    Display aspect ratio             : 2.581
    Frame rate                       : 23.976 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.042
    Writing library                  : x264 core 80 r1376M 3feaec2
    Encoding settings                : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=5 / psy=1 / psy_rd=0.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=633 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=50000 / vbv_bufsize=50000 / ip_ratio=1.40 / aq=1:1.00
    
    Audio
    ID                               : 2
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format profile                   : HE-AAC / LC
    Codec ID                         : A_AAC
    Duration                         : 1h 15mn
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 48.0 KHz / 24.0 KHz
    Compression mode                 : Lossy
    2. Is there a way to have a watched folder that the batch file will autoprocess when an mkv is there? (I use streambaby to watch my DL'd shows and want to use a type of SABnzbd/Sickbeard type setup to automate it)
     
  12. Soapm

    Soapm Active Member

    1,676
    10
    May 9, 2007
    Aurora, CO
  13. ajayabb

    ajayabb Member

    431
    2
    Jan 11, 2007
    Moorestown NJ
    Handbrake is a great program but I think rather than demux the h.264 video in the .mkv container, Handbrake will reencode the entire file to .mp4
     
  14. jcthorne

    jcthorne Well-Known Member

    3,116
    196
    Jan 28, 2002
    Houston
    for files that mkv2tivomp4.bat will not handle, I use meGUI. It can demux the mkv, recode incompatible audio only and remux into an IMSA standard Mp4. Handles many codecs that the bat file does not but not nearly as easy to use. It can also recode the video when necessary.
     

Share This Page

spam firewall

Advertisements