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. Mar 24, 2010 #2061 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    AudioNutz,

    The current version of T2Sami for Windows (specifically, T2extract.exe) has:

    Code:
    T2Extract - Tivo Closed Caption Extraction Utility
         Version 3.2.0072
         Copyright (c) 2009 James Memmott - All Rights Reserved
         http://t2sami.com
    
    Usage: C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\t2extract.exe [--help] [opts...] <tivofile>
                      -or-
    Usage: C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\t2extract.exe [--help] [opts...] --vts n --pgc m --dvd <VIDEO_TS directory>
    
      --path, -p             output file location (default: same path as input file)
    
      --format, -f           output captioning format
                             sami (Default), srt (SubRip), 3gpp (Timed Text), dfxp (Timed Text)
      --dvd, -d              process DVD VIDEO_TS directory contents
      --pgc, -g              target PGC (DVD Only)
      --video, -i            extract video program(DVD Only)
      --output, -o           output file name(DVD Only)(default: based on VTS, PGG values)
      --vts, -v              target VTS (DVD Only)
      --subtitle, -s         process subtitle ( EN | FR | ... ) (DVD Only)
      --stream, -t           process subtitle stream ( 0x20-0x3f )(DVD Only)
      --sync-bias, -b        synchronization bias (sec.)
      --cutoff-duration, -c  cutoff duration (sec.)
      --text-size, -z        text size (SAMI format)
      --text-weight, -w      text weight (SAMI format)
      --font-style, -y       font family (SAMI format)
      --channel, -n          captioning channel 1 or 2
      --case, -a             sentence case conversion of ALL CAPS
      --help, -h             print this help and exit
    
    
    The -f option specifies the output captioning format that is desired.
     
  2. Mar 24, 2010 #2062 of 10413
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    Your question is not entirely clear. There is no need to merge the results with a file that comes from a Tivo as the file already contains the merged results. If you want to watch them in another player, typically they can be left as .smi files for WMP or .srt files for most other players. If you want to merge captions with video from another source for viewing on a Tivo, t2merge would be the simplest approach though not the only one. Stealing from my help file :

    Two Windows command line utilities have been provided to aid you in creating complex processing paths using additional third party tools. T2Merge is used to send captioned video back to a Tivo.

    T2Merge - Used to insert captions into an .mpg files for playback on your Tivo.

    T2Merge - Closed Caption Merge Utility


    Usage: %s [--help] [opts...] <mpeg file>
    -or-
    Usage: %s [--help] [opts...] -dvd <VIDEO_TS directory>

    --output-path, -p
    output file location (default: same path as input file)

    --output-file, -o
    output file - output file name

    --dvd, -d
    Process the directory contents as a DVD VIDEO_TS directory

    --pgc, -g
    target PGC (DVD Only)

    --vts, -v
    target VTS (DVD Only)

    --help, -h
    print help and exit

    the command line

    "C:\Program Files\T2Sami\t2merge" "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08).mpg"

    would merge SRT captions from a file named "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08).srt" with this Flash Gordon episode in the SRT format and save them in "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08)(0).mpg". The name of the output file and its location can be changed by including the -p and/or -o options:

    "C:\Program Files\T2Sami\t2merge" -p "C:\My Video\Flash Gordon" -o "Cold Day in Hell.mpg" "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08).mpg"

    would place the output in the "C:\My Video\Flash Gordon" subdirectory with the file name "Cold Day in Hell.mpg"

    similarly the command line

    "C:\Program Files\T2Sami\t2merge" -p "C:\My Video\Sister Windy" -o "In the Beginning.mpg" --vts 1 --pgc 1 --dvd "C:\DVD\The Story of Art\VIDEO_TS"

    would extract the captions from VTS 1, PGC 1 of the unencrypted DVD in C:\DVD\The Story of Art\VIDEO_TS and save them in "C:\My Video\Sister Windy\In the Beginning.mpg" in a format suitable for display on your Tivo. The t2merge utility does not transcode the audio or video portions of the program stream so these will be in the same format and resolution as they were on the original DVD.
     
  3. Mar 25, 2010 #2063 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    James,

    I thank you profusely for the info. I have just begun to recognize that there are now several different executables in the current T2Sami package, T2Merge.exe among them. I expect it will do the thing I am after, which is to merge captions back into the .mpg file after it has been decrypted from the .TiVo file. Afterward, if I understand you correctly, I can send the unencrypted .mpg file with the merged captions back to the TiVo for viewing. Excellent! Thanks again ....
     
  4. Mar 25, 2010 #2064 of 10413
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Actually, if all you are doing is decrypting the .tivo file and then sending the .mpg back to your Tivo, you should not need to do anything. The caption stream is left intact when .tivo files are decrypted to .mpg. (I believe that James also mentioned this.) Things are different if you want to transcode your video to h.264 or something else, however. In those case, you would need to use something to hardcode the subtitles into the video frames. I use avisynth + x264 or xvid_encraw, depending on whether I want to go to h.264 or xvid. Those are windows based programs though, so I am not sure how they would work under Mac windows emulation.

    Generally, I download shows to edit out commercials and then push/pull them back up to my Tivo. I use VideoRedo for editing/decrypting. Captions are held intact through the editting and decrypting process with VideoRedo. The output file will be .mpg that can be brought back to Tivo without any further work needed.
     
  5. Mar 25, 2010 #2065 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    James,

    I tried t2merge and got unexpected behavior.

    First I did

    Code:
    C:\>"C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\t2extract.exe" -f srt "\\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010).mpg"
    Extracting captions...
    Completed: 100&#37;
    
    That gave me the expected .srt file as output. Then I did

    Code:
    C:\>"C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\t2merge.exe" "\\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010).mpg"
    Injecting captions...
    Completed: 100%
    Rebuilding Program Stream...
    
    but that did not seem to generate a new .mpg output file and/or modify the old one. Instead it seems to have generated two output files, an .m2v and an .ac3. The .m2v plays in VLC or MPlayer on the Mac. It has captions as subtitles over the video, but it does not have audio. The separate .ac3 file has the audio.

    I understood from the instructions you gave in an earlier post that I was to expect the output file to be .mpg, not .m2v, and that the audio, video, and superimposed captions were to be in that one .mpg file. (I wasn't sure whether t2merge would just modify the original .mpg file or generate a new one.) How can I get t2merge to combine all elements into a single file?

    A separate issue: I tried to see whether I would get video, audio, and subtitles if I used t2player on the t2merge output, but t2player behaved very strangely. The first time I used it, it asked whether I wanted to use a package ("ff__________"?) not at all, one time, always, etc. I answered "always." Then I figured out how to open a video and tried to do so. t2player then failed to complete redrawing its window, while a "green arrow" icon appeared next to its tab in my task bar and then kept appearing and reappearing. I could not get t2player to continue, and eventually had to force it to quit. This is, of course, in Windows XP running under Parallels on my Mac. I tried twice more and (aside from not having to revisit whether to use "ff__________"?) got the same odd result. Any idea what was wrong?

    Thanks once again for all your help.
     
  6. Mar 25, 2010 #2066 of 10413
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    I am still not sure we are communicating. If all you are trying to do is watch the video, you do not need to use t2merge at all. Use tivodecode to create an mpg from the .tivo file, use t2extract to extract the caption to an .srt file. You are done!

    Play the file in VLC and it will find both the .mpg file with the audio/video stream and the .srt file with the captions as long has they have the same base file name. If the subtitle display is turned on, it will show as video with sound overlaid with the subtitles...

    If you subsequently run t2merge as you describe, you will simply put the captions back into the mpg stream and essentially recreate the file you started with. Going full circle and ending up back where you started.

    I suspect that the issue you are seeing with t2merge is related to the environment/installation on the Mac. The injection of captions from an .srt is done by injecting EIA 708 user data packets into the video stream on a frame by frame basis and plays havoc with the relationship between the physical program stream and the logical video stream inside of it. Seeing an mpg in this state will choke a Tivo during transfer. To avoid this, the program stream must be remultiplexed to clean it up. The audio (.ac3) and video (.m2v) are separated in the injection step and then multiplexed back together using mplex.exe afterward. If t2merge cannot invoke mplex.exe for this last step on the Mac it would leave things as you describe.

    It sounds like you are using ffdshow as your mpeg codec. The "green arrow" is the subtitle filter icon in ffdshow. It appears when ffdshow detects an .srt file and tries to display them for you. In T2Player this will result in two sets of captions: one from the embedded closed captions through T2Players filters and one from the .srt file and ffdshow. ffdshow will run with this anomaly under Windows but I have never tried DirectShow or ffdshow using Parallels on a Mac. In any case, all the symptoms point to ffdshow/DirectShow configuration issues on the Mac.
     
  7. Mar 25, 2010 #2067 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    James,

    Thanks yet again! I'm going to ignore the issue with t2player/ffdshow/DirectShow just now ... I've enough perplexity on my plate as it is. I'll look further into that matter later on.

    I'm just playing the video on my computer to see what the t2sami software has produced. The ultimate aim is to move it to the TiVo.

    I can play the original .mpg file (the one I input to t2extract and t2merge) in VLC running under Windows, and I can manually cause VLC to find the .srt subtitles file and use it. I get audio, video, and superimposed subtitles/captions. But I assume t2merge (or mplex.exe) did not multiplex the subtitles/captions into that original .mpg file.

    But not into the original .mpg file, right? That file appeared to be unchanged by all I tried to do ... unless your software manages to change its contents without changing the modification date reported by the Mac???

    If t2merge is able to invoke mplex.exe as its last step, what would I expect to see? A brand new file with the .mpg extension and with the original filename (but with something like "(0)" appended, I assume.

    I did not see that. Nor did I see any indication in the cmd.exe execution of t2merge that mplex.exe had actually been invoked at the end, either successfully or unsuccessfully. There were no error messages that I was able to see. t2merge just wrapped up its execution, seemingly normally.

    But no new version of the .mpg file appeared. I am assuming that one should have appeared. Why do you imagine it didn't?

    If you don't know what the cause of that was, then can you give me a hint as to how best to invoke mplex.exe manually ... what command line options to use, etc.?

    That is certainly not out of the question. I am using the Parallels emulation software with Windows XP SP2. Parallels allows me to pass folders from the Mac into Windows as directories that Windows can supposedly use in the usual way. The .tivo, .mpg, .srt, etc. files I have been talking about are all on the Mac and accessed via a "pseudo" Windows pathname that normally works fine. Clearly, t2extract had no problem with it, and t2merge was able to find the input file and create the intermediate .m4v and .ac3 output files in that directory. If I try mplex.exe manually, I may learn that it does in fact have a problem with the "pseudo" path ...


    The following was edited in after the original posting:

    I decided to go ahead and take a stab at using mplex.exe manually:

    Code:
    C:\>"C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe" -f 3 -v 2 -o "\\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010)(1).mpg" "\\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010).m2v" "\\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010).ac3"
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] mplex version 1.9.0 (2.2.7 $Date: 2006/02/01 22:23:01 $)
    **ERROR: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] File \\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010).m2v unrecogniseable!
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] File \\.psf\Host\Volumes\New 2TB Drive\TiVo Transfers\The Human Spark\3. Brain Matters\The Human Spark - Brain Matters (01_20_2010).ac3 looks like an AC3 Audio stream.
    **ERROR: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Unrecogniseable file(s)... exiting.
    
    C:\>
    As you can see, mplex objected to my .m2v file as unrecognizable. I simply dragged the icon for the file from a folder window to the cmd window, so I know the problem is not that I misspelled the filename. The .m2v file was made by t2merge and would seem to be OK. VLC plays it. Was I supposed to specify the .m4v file and the .ac3 file? That would seem to make sense. Why would the former be unrecognizable?
     
  8. Mar 25, 2010 #2068 of 10413
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    There is no problem with experimenting. I just wanted to make sure that you realized that the file that should be coming out of t2merge will be not be logically any different than the file you started with. If you sent the original file back to the Tivo and played it back with caption turned on or if you set the file that came out of t2merge back and played it the viewing experience would be substantially the same. Both would show essentially the same captions at the same point in the video.

    In any case, for my previous example

    "C:\Program Files\T2Sami\t2merge" -p "C:\My Video\Flash Gordon" -o "Cold Day in Hell.mpg" "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08).mpg"

    the mplex command would be as follows

    "C:\Program Files\T2Sami\mplex.exe" -f 3 -o "C:\My Video\Flash Gordon\Cold Day in Hell.mpg" "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08).m2v" "C:\My Video\Tivo\Flash Gordon - Cold Day in Hell - (Recorded 01-25-08).mp2"

    From the error message you are getting in your edited portion, I would suggest putting the original file through the Quick Stream Fix (QSF) function of VideoReDo and then repeating the experiment with the cleaned up version.
     
  9. Mar 25, 2010 #2069 of 10413
    superflysocal

    superflysocal New Member

    70
    0
    Nov 26, 2009
    is this possible?
     
  10. Mar 25, 2010 #2070 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    That would have to be added as another option since currently the time filter is global. I'm curious though what you are using the time filter for specifically? If you don't want older programs to transfer you can always add them to history file from GUI using Auto Transfers->Add selected to history file. i.e. I'm just trying to figure out the value of having time filters for specific programs? If the problem is related to certain programs that don't have unique ProgramId entries that issue is already solved in next release.
     
  11. Mar 25, 2010 #2071 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    James,

    After QSF on the original .TiVo file (which was a different one than before; it was a 5 min. clip of "The Rock" from Encore HD) VideoReDo produced a .mpg file which I cranked into t2extract and then t2merge. The latter produced an new .mpg file (!) and also a file named mplex.txt. The new .mpg file was too short, and the mplex.text file had in it

    Code:
    INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] mplex version 1.9.0 (2.2.7 $Date: 2006/02/01 22:23:01 $)
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] File C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).m2v looks like an MPEG Video stream.
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] File C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).ac3 looks like an AC3 Audio stream.
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Found 1 audio streams and 1 video streams
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Selecting generic MPEG2 output profile
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Multiplexing video program stream!
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Scanning for header info: Video stream e0 (C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).m2v) 
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] VIDEO STREAM: e0
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Frame width     : 1920
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Frame height    : 1080
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Aspect ratio    : 16:9 display
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Picture rate    : 29.970 frames/sec
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2SamiStuff\mplex.exe] Bit rate        : 65000000 bits/sec
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Vbv buffer size : 1222656 bytes
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] CSPF            : 0
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Scanning for header info: AC3 Audio stream 00 (C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).ac3)
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] AC3 frame size = 1536
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] AC3 AUDIO STREAM:
       INFO: [C:\Documents and Settings\Eric\Desktop\newkmttg stuff\T2Sami Stuff\mplex.exe] Bit rate       :    49152 bytes/sec (384 kbit/sec)
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Frequency      :     48000 Hz
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] SYSTEMS/PROGRAM stream:
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] rough-guess multiplexed stream data rate    : 66735000
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Setting best-guess data rate.
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Run-in delay = 0 Video delay = 0 Audio delay = 0
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] New sequence commences...
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf=      0 frame=000000 sector=00000000
       INFO: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=      0 frame=000000 sector=00000000
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=22 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf=   1994 frame=000000 sector=00000001
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=      0 frame=000000 sector=00000000
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=57692 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf= 215412 frame=000025 sector=00000723
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  15102 frame=000028 sector=00000022
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=128464 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf= 226081 frame=000038 sector=00001118
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  14949 frame=000053 sector=00000041
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=227321 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf= 200996 frame=000071 sector=00002056
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audiobd: buf=  15063 frame=000087 sector=00000067
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=241042 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf=   2021 frame=000078 sector=00002281
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  13422 frame=000091 sector=00000070
    ++ WARN: [C:\Documents andSettings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=378632 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf= 210573 frame=000116 sector=00003621
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  16188 frame=000141 sector=00000108
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=587923 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf= 233035 frame=000182 sector=00005291
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\newkmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  14775 frame=000213 sector=00000163
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=602727 required(DTS)=0
    ++ WARN:[C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf=   2025 frame=000187 sector=00005505
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  13134 frame=000217sector=00000166
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=678914 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf= 181610 frame=000218 sector=00006383
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  15471 frame=000245 sector=00000187
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too late sent(SCR)=693961 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf=   2025 frame=000224 sector=00006593
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  13830 frame=000249 sector=00000190
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Stream e0: data will arrive too latesent(SCR)=888912 required(DTS)=0
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Video e0: buf=   2025 frame=000277 sector=00008280
    ++ WARN: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Audio bd: buf=  16071 frame=000318 sector=00000243
    **ERROR: [C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe] Too many frame drops -exiting<TEST INFO>: Child process ended
    
    What does "Too many frame drops" suggest to you? Does it simply reflect the long series of earlier ++ WARN: messages? I would assume it does. But I would also assume that VideoReDo QSF's "cleaned up" output would be immune to this kind of problem!

    I should also mention that the original .TiVo file was transferred directly from my TiVo to my Windows environment, and all subsequent processing was done within that environment. None of the files or folders were on a "pseudo" network drive as was previously the case. That eliminates one variable ...

    I appreciate your help in all this, James ...
     
  12. Mar 25, 2010 #2072 of 10413
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    Frame drops are typically caused by a target bit rate that is too low. Too many drops will stop the process because the results will be very poor. mplex is trying to calculate the value it should use. It looks like this may be coming out too low.

    You can try to manually mux the .m2v and .ac3 files and override the rate with a command like the following to force a higher bit rate. If this works I will have to look at the code to see if I can send mplex a better value or allow you to override it directly.

    "C:\Documents and Settings\Eric\Desktop\new kmttg stuff\T2Sami Stuff\mplex.exe" -r 12000 -f 3 -o "C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).mpg" "C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).m2v" "C:\Documents and Settings\Eric\Desktop\The Rock\The Rock (03_25_2010).ac3"
     
  13. Mar 26, 2010 #2073 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    James,

    No joy. I tried the suggested command and the result was exactly the same. I even raised the -r value as high as 40000 and it made no difference! The result was exactly as before.

    I have also made some other experiments without success. I used VideoReDo to take a 1-min. clip from the middle of the originally 5-min. "The Rock" video, under the assumption that maybe the very beginning of the original file was somehow deficient. I had to pass that 1-min. .mpg file back through VRD Quick Stream Fix before t2merge could utilize mplex on the intermediate output files, but after I did that t2merge was able to recognize its two output intermediates and process them. Unfortunately, the result was a truncated file that only plays for 10 sec., not 1 min. The mplex process terminated normally, though, and (sadly) the intermediate files were removed automatically, so I could not use them manually with an mplex command. Also, there was no mplex.txt file generated to show me what might have caused mplex to terminate early.

    Does it make any difference that my original file is HD?

    I am at a loss ... Do you have any ideas?
     
  14. Mar 26, 2010 #2074 of 10413
    wood252ota

    wood252ota Member

    52
    1
    Apr 19, 2008
    Standalone kmttg - what is needed
    Since the new premiere will support TS downloading, it looks like I'm about to become a kmttg user. The machine I want to put it on has no internet access, so I would need to put all that kmttg needed on CD and put it on that machine. I have TTG, VideoRedo and Java already on there. I don't need kmttg to decode, edit, etc. Just get the file from the Premiere to the PC hard disk as a .tivo file and I can take it from there.
    Thanks for any help
     
  15. Mar 26, 2010 #2075 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    Other than the kmttg installation you just need "curl" from the tools zip file. So a sample installation would be:
    1. Make a folder for the kmttg installation:
    c:\kmttg
    2. Unzip kmttg_v0p7i.zip into that folder.
    3. Unzip kmttg_win32_tools_v0p7h.zip into the same folder.
    That's it. Run program by double-clicking on kmttg.jar. Under config make sure to configure to download in TS format.
     
  16. Mar 26, 2010 #2076 of 10413
    wood252ota

    wood252ota Member

    52
    1
    Apr 19, 2008
    Moyekj,
    Works for me. Thanks for the quick reply.
     
  17. Mar 26, 2010 #2077 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Question for you Moyekj: Upgrading from kmttg_v0p7e to kmttg_v0p7i, would it be in my best interest to copy kmttg.jar into my execution folder*, and simply delete the tivodecode folder, allowing for kmttg to go out and download it for me?

    *I install into a version named folder, such as \kmttg_v0p7b, \kmttg_v0p7c, etc., then copy the contents over to a non-version named "execution" folder: \kmttg. This allows for a quick fallback by copying the previous version back into the execution folder in case something goes sideways.
     
  18. Mar 26, 2010 #2078 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    I would do something like:
    1. Unzip 7i into "execution" folder allowing it to overwrite existing files. (I assume you already have previous installation there with config.ini, auto.ini, auto.history etc which contains all your settings/preferences).
    2. Remove "tivodecode" folder from "execution" folder.
    3. Double click on kmttg.jar and let it download and install updated tools.
     
  19. Mar 26, 2010 #2079 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Done and done. I think the kmttg_win32_tools_v0p7h.zip extracted over my comskip.ini. I'm pretty sure it was the default comskip.ini since I keep a copy of override comskip.ini's in the output folders that need overriden.

    Thanks K!
     
  20. Mar 26, 2010 #2080 of 10413
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    There is no inherent problem with HD. I just ran a clip of my own through t2merge with no special adjustments to make sure I had not inadvertently caused a problem in the current release:

    Video : 1920 x 1080, 16:9, 38.810 nominal bitrate, 14.054 kbit/s actual bitrate
    Audio : AC3 384Kbps, Dolby Digital 5.1, 48000 Hz

    It ran all the way through and plays fine with captions correctly added when I transferred it back to my TivoHD.

    That does not mean the problem is not encoding dependant however. Each cable channel sets its own encoding standards and they vary widely. There are many issues such as GOP length and the exact mixture of I, B, and P frames that can affect what comes out. I would like to get a short clip (~2 minutes) from you so I can see exactly what your video stream looks like. I will take that offline and PM you to do this as it has no general interest for the forum.
     

Share This Page