1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TiVo-VideoReDo-AutoProcessor Program

Discussion in 'TiVo Home Media Features & TiVoToGo' started by dlfl, Jul 19, 2007.

  1. Sep 7, 2007 #81 of 418
    FrooBrar

    FrooBrar tivodecode author

    42
    0
    Dec 4, 2006
    Well, yes and no. I can add default parameters to the functions in my class, but I cannot add default parameters to the interface, which is in a .h file which is autogenerated by MIDL at compile time.

    And I didn't use the empty string as the default value, but that would probably be easier.

    I just did a little googling, and I found this:
    http://blogs.msdn.com/eric_carter/archive/2004/04/15/114079.aspx

    Looks like C# does not support the default parameters option of COM. Ugh.

    I will change my implementation to accept the empty string to mean "use the mak in the registry and throw if it is not found"...
     
  2. Sep 7, 2007 #82 of 418
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,521
    181
    Apr 17, 2000
    Nevada
    Sorry what I meant was that the user could add defaults on their end by editing the .h file which is automatically generated by MSVS when adding a ActiveX control to a C++ project. If you wanted to simplify it you could provide a replacement .h file the user could just drop into the project overwriting the auto generated one.

    Although allowing an empty string is the easier option

    Dan
     
  3. Sep 7, 2007 #83 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    Interesting link. I've done a fair amount of C++ programming (Borland Builder, mostly) and I find C# syntax refreshingly simpler. But not in this case!
     
  4. Sep 9, 2007 #84 of 418
    FrooBrar

    FrooBrar tivodecode author

    42
    0
    Dec 4, 2006
    I have put a new release of tivocom at http://tivodecode.sourceforge.net/tivocom/tivocom-1.2.zip

    This is what I said in my commit message (should describe the changes pretty well)

    rework interfaces (bumped typelib version to 1.1). Add support for decoding
    the MPEG stream. Added support to read and write from streams (implementing
    IStream) and make the versions which take filenames use a stream
    implementation that wraps file access. Make OpenTivoFile take the MAK as a
    parameter. It has a default value of "" (empty string), which means try to
    get the MAK from the registry, so either omit that param (for those
    languages which permit that) or specify it as empty string to use the MAK
    from the registry. Added progress reporting of MPEG stream decoding via a
    connection point. Progress is updated every 100 frames, and percent
    complete is provided if the tivo file stream supports Seek and Stat
    functions


    Also, something I didn't mention in the commit message is I changed the error when the MAK is not found so that it returns the same HRESULT (ERROR_FILE_NOT_FOUND), but also sets the error info so you may get a description of the error as "MAK not found". Hopefully a little better than the generic "file not found" message it was giving...

    Please try it out and let me know what you think.
     
  5. Sep 10, 2007 #85 of 418
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,521
    181
    Apr 17, 2000
    Nevada
    Does this functionality give the user the ability to write MPEG Program Stream data to the file while maintaining the encrypted meta data?

    Also a technical, but mostly unrelated, question... In the .tivo file's header there is some unencrypted XML data labeled "fingerprint" and "salt". Is it possible to generate these two values from scratch using nothing more then the MAK? Or do they need to come from the TiVo itself? I've noticed that they are different in each .tivo file, so they're not static values. I've also noticed that changing even a single digit of either one prevents TiVo Desktop from being able to decrypt the metadata in the file. It also effect the video, but only if the video is encrypted, and that is not a requirement. However TiVo Desktop does require the metadata to be encrypted so these values are needed for proper metadata storage.

    The ultimate goal here would be to allow the building of a .tivo file from scratch. Taking unencrypted metadata and an unencrypted MPEG stream an melding them into a .tivo file which can then be read by TiVo Desktop and transfered onto a TiVo complete with metadata.

    Dan
     
  6. Sep 11, 2007 #86 of 418
    FrooBrar

    FrooBrar tivodecode author

    42
    0
    Dec 4, 2006
    No, just to decrypt the MPEG part to a file or stream.

    All right, here's a quick overview of how the keys are generated for encrypting/decrypting the data (metadata and video)

    Video: Take the MAK, in ASCII, concatenate the plaintext XML chunk, take the SHA1 of this.

    Metadata: Make a string "tivo:TiVo DVR:MAK", take the MD5 of this string, convert that to ASCII hex, concatenate the plaintext XML chunk, take the SHA1 of this.

    So, technically, the format of the chunk you are referring to does not matter. It could say whatever you wanted. It is used verbatim to decrypt the data in the file.

    I have written a perl script to test generating a TiVo header with metadata from the decrypted chunks, using tdcat and a little creative use of pack(). It is not really in a user-friendly or portable state, and I intend to get around to writing a C program to do this when I get some free time, and add this to tivodecode, but I will try to post the perl script I have right now.

    I have done this with the perl script, and it worked. So far I have noticed that TiVo Desktop uses chunk id 1, while the TiVo itself prefers to use chunk id 2. Also, if you change the metadata in chunk 2 and send it back to the TiVo, you may be surprised to see the TiVo still showing you the old metadata. This seems to be due to the unique show id in chunk 2 xml, and I guess the TiVo has a cache of metadata based on show id and does not update it. Just delete the show ID from the chunk 2 xml before sending it back to the tivo and it will work.

    Also, the file generated is the part of the tivo file right up to the start of the MPEG data. I just ran:
    cat decrypted_mpeg.mpg >> output.TiVo
    and got a combined file.
     

    Attached Files:

  7. Oct 13, 2007 #87 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    - Fixed: When TivoToGo (at least Ver. 2.3 that I use) queues multiple tivo files for transfer, it creates zero-length files on the tivo transfer directory and TVAP decided the files had completed transferring because their length was not changing.

    - Fixed: MetaData for files being transferred was not handled properly.

    Download or view readme instructions/details at:
    ftp://upload:upload@videoredo.net/VRD Add-Ons/TiVo-VideoReDo-AutoProcessor/
     
  8. Oct 16, 2007 #88 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    16 October 2007 Ver. 0.41
    - TiVo files "queued" for transfer by Desktop (i.e., sitting on transfer folder with constant zero size)
    are shown as TRANSFERRING in the file list, with "queued" displayed for file length. This allows
    user to set custom processing options.
     
  9. Oct 17, 2007 #89 of 418
    saberman

    saberman Member

    248
    1
    May 4, 2004
    I tried running it on Windows XP SP2 from an account that is a power user but not an administratior and it said:

    ---------------------------
    TestUAC.exe - Application Error
    ---------------------------
    The application failed to initialize properly (0xc0000135). Click on OK to terminate the application.
    ---------------------------
    OK
    ---------------------------

    I go the same results when I tried "run as" using an adminstrator id.
     
  10. Oct 17, 2007 #90 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    Thanks for the info. I hope such issues are not causing TVAP users problems that they can't work around. I haven't sorted out the interaction between user privileges and MAK owner beyond what FrooBar said in post #66 of this thread.
     
  11. Nov 7, 2007 #91 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    If you have TVSuite installed, the Run VideoReDo button will launch it, even if you also have VRD-Plus installed.

    Regarding the TVAP VRD COM interface, if you have both Plus and TVSuite installed, TVAP uses the COM interface from whichever program was last run with the normal GUI interface. I haven't figured out why but it doesn't seem to make a practical difference as the COM functionality used by TVAP seems to run identically in either case.
     
  12. Nov 8, 2007 #92 of 418
    dakk

    dakk New Member

    20
    0
    Nov 8, 2005
    I just installed Tivo series 3 hd ...I already had Tivo series 2dt ......when transferring 30 Rock to computer using TivoDesktop 2.52, the series 3 reads 31 min. 498 MB ......My old series 2dt reads 31min. 853 MB .....the series 3 unit when transferring to TivoDesktop is doing this to all recordings.
    When I run the files thru VideoReDo..their are way to many audio synch errors, than when I load it into DVDStyler 1.5 I get :
    Prepare
    Cleaning temporary directory
    Generating menus
    Generating menu 1 of 1
    Prepare
    Converting jpg to mpeg
    INFO: [jpeg2yuv] Parsing & checking input files.
    INFO: [jpeg2yuv] YUV colorspace detected.
    INFO: [jpeg2yuv] Starting decompression
    INFO: [jpeg2yuv] Image dimensions are 720x480
    INFO: [jpeg2yuv] Movie frame rate is: 29.970030 frames/second
    INFO: [jpeg2yuv] Interlaced frames, top field first.
    INFO: [jpeg2yuv] Frame size: 720 x 480
    INFO: [jpeg2yuv] Number of Loops 1
    INFO: [jpeg2yuv] Now generating YUV4MPEG stream.
    INFO: [jpeg2yuv] Processing non-interlaced/interleaved C:\Documents and Settings\Kevin Faye\dvd\menu1-0.mpg_bg.jpg, size 155981
    INFO: [jpeg2yuv] Rescaling color values.
    ++ WARN: [mpeg2enc] Unknown stream tag encountered: 'C420jpeg'
    INFO: [mpeg2enc] Selecting DVD output profile
    INFO: [mpeg2enc] Encoding MPEG-2 video to C:\Documents and Settings\Kevin Faye\dvd\menu1-0.mpg_bg.m2v
    INFO: [mpeg2enc] Horizontal size: 720 pel
    INFO: [mpeg2enc] Vertical size: 480 pel
    INFO: [mpeg2enc] Aspect ratio code: 1 = 1:1 pixels
    INFO: [mpeg2enc] Frame rate code: 4 = 30000.0/1001.0 (NTSC VIDEO)
    INFO: [mpeg2enc] Bitrate: 9000 KBit/s
    INFO: [mpeg2enc] Quality factor: 8 (1=best, 31=worst)
    INFO: [mpeg2enc] Field order for input: top-field-first
    INFO: [mpeg2enc] Sequence unlimited length
    INFO: [mpeg2enc] Search radius: 16
    INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 18
    INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
    INFO: [mpeg2enc] Progressive format frames = 0
    INFO: [mpeg2enc] Buffering 45 frames
    INFO: [mpeg2enc] SETTING MMX and EXTENDED MMX for QUANTIZER!
    INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
    INFO: [mpeg2enc] SETTING MMX for TRANSFORM!
    INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
    INFO: [mpeg2enc] GOP LENGTH = 1
    INFO: [mpeg2enc] Frame start 0 I 0 0
    INFO: [mpeg2enc] Frame end 0 220.68 220.68 8.6 8.57
    INFO: [mpeg2enc] GOP LENGTH = 0
    Multiplexing audio and video
    INFO: [???] mplex version 2.0.0 (2.2.3 $Date: 2004/01/13 20:45:26 $)
    INFO: [???] File C:\Documents and Settings\Kevin Faye\dvd\menu1-0.mpg_bg.m2v looks like an MPEG Video stream.
    INFO: [???] File C:\Program Files\DVDStyler\data\silence.mp2 looks like an MPEG Audio stream.
    INFO: [???] Video stream 0: profile 8 selected - ignoring non-standard options!
    INFO: [???] Found 1 audio streams and 1 video streams
    INFO: [???] Selecting dvdauthor DVD output profile
    INFO: [???] Multiplexing video program stream!
    INFO: [???] Scanning for header info: Video stream e0 (C:\Documents and Settings\Kevin Faye\dvd\menu1-0.mpg_bg.m2v)
    INFO: [???] VIDEO STREAM: e0
    INFO: [???] Frame width : 720
    INFO: [???] Frame height : 480
    INFO: [???] Aspect ratio : 1:1 pixels
    INFO: [???] Picture rate : 29.970 frames/sec
    INFO: [???] Bit rate : 9000000 bits/sec
    INFO: [???] Vbv buffer size : 229376 bytes
    INFO: [???] CSPF : 0
    INFO: [???] Scanning for header info: Audio stream c0 (C:\Program Files\DVDStyler\data\silence.mp2)
    INFO: [???] MPEG AUDIO STREAM: c0
    INFO: [???] Audio version : 1.0
    INFO: [???] Layer : 2
    INFO: [???] CRC checksums : no
    INFO: [???] Bit rate : 16384 bytes/sec (128 kbit/sec)
    INFO: [???] Frequency : 48000 Hz
    INFO: [???] Mode : 0 stereo
    INFO: [???] Mode extension : 0
    INFO: [???] Copyright bit : 0 no copyright
    INFO: [???] Original/Copy : 0 copy
    INFO: [???] Emphasis : 0 none
    INFO: [???] SYSTEMS/PROGRAM stream:
    INFO: [???] rough-guess multiplexed stream data rate : 9319496
    INFO: [???] target data-rate specified : 10080000
    INFO: [???] Setting specified specified data rate: 10080000
    INFO: [???] Scanned to end AU 0
    INFO: [???] Run-in Sectors = 89 Video delay = 13019 Audio delay = 0
    INFO: [???] New sequence commences...
    INFO: [???] Video e0: buf= 237568 frame=000000 sector=00000000
    INFO: [???] Audio c0: buf= 4096 frame=000000 sector=00000000
    INFO: [???] STREAM e0 completed @ frame 0.
    INFO: [???] STREAM c0 completed @ frame 249.
    INFO: [???] Multiplex completion at SCR=536868.
    INFO: [???] Video e0: buf= 237568 frame=000000 sector=00000021
    INFO: [???] Audio c0: buf= 1024 frame=000249 sector=00000048
    INFO: [???] VIDEO_STATISTICS: e0
    INFO: [???] Video Stream length: 41314 bytes
    INFO: [???] Sequence headers: 1
    INFO: [???] Sequence ends : 1
    INFO: [???] No. Pictures : 0
    INFO: [???] No. Groups : 1
    INFO: [???] No. I Frames : 1 avg. size 41314 bytes
    INFO: [???] No. P Frames : 0 avg. size 0 bytes
    INFO: [???] No. B Frames : 0 avg. size 0 bytes
    INFO: [???] Average bit-rate : 9905600 bits/sec
    INFO: [???] Peak bit-rate : 0 bits/sec
    INFO: [???] BUFFERING stream too short for useful statistics
    INFO: [???] AUDIO_STATISTICS: c0
    INFO: [???] Audio stream length 96000 bytes.
    INFO: [???] Syncwords : 250
    INFO: [???] Frames : 250 padded
    INFO: [???] Frames : 0 unpadded
    INFO: [???] BUFFERING stream too short for useful statistics
    INFO: [???] MUX STATUS: no under-runs detected.
    Multiplexing subtitles (buttons) into mpeg
    DVDAuthor::spumux, version 0.6.14-GfD-1.
    Build options: gnugetopt iconv freetype
    Send bugs to <gfd@boraxsoft.de>
    INFO: Locale=C
    INFO: Converting filenames to US-ASCII
    STAT: 0:00:00.000
    INFO: PNG had 2 colors
    INFO: PNG had 2 colors
    INFO: PNG had 2 colors
    INFO: Pickbuttongroups, success with 1 groups, useimg=1
    INFO: Found EOF in .sub file.
    INFO: Max_sub_size=148
    INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18
    Create VOB files
    Fix MPEG-file: G:\DVD'S\PBS\Ken Burns\Ken Burns American Stories - ''The Congress'' (Recorded Nov 7, 2007, WNET).mpg
    warning: couldn't find any valid system header. I'm continuing anyway
    DemultiplexingXXX : [audio 00 video 01] [ 0.01%]
    DemultiplexingXXX : [audio 07 video 03] [ 5.00%]
    DemultiplexingXXX : [audio 11 video 04] [ 10.00%]
    DemultiplexingXXX : [audio 12 video 05] [ 15.00%]
    DemultiplexingXXX : [audio 14 video 07] [ 20.00%]
    DemultiplexingXXX : [audio 14 video 09] [ 25.00%]
    DemultiplexingXXX : [audio 15 video 10] [ 30.00%]
    DemultiplexingXXX : [audio 16 video 10] [ 35.00%]
    DemultiplexingXXX : [audio 16 video 10] [ 40.00%]
    DemultiplexingXXX : [audio 16 video 11] [ 45.00%]
    DemultiplexingXXX : [audio 16 video 11] [ 50.00%]
    DemultiplexingXXX : [audio 16 video 14] [ 55.00%]
    DemultiplexingXXX : [audio 16 video 14] [ 60.00%]
    DemultiplexingXXX : [audio 16 video 14] [ 65.00%]
    DemultiplexingXXX : [audio 16 video 14] [ 70.00%]
    DemultiplexingXXX : [audio 16 video 14] [ 75.00%]
    Erroneous packet size, skipping
    DemultiplexingXXX : [audio 16 video 15] [ 80.00%]
    DemultiplexingXXX : [audio 16 video 15] [ 85.00%]
    DemultiplexingXXX : [audio 16 video 15] [ 90.00%]
    Erroneous packet size, skipping
    Erroneous packet size, skipping
    DemultiplexingXXX : [audio 16 video 15] [ 95.00%]
    DemultiplexingXXX : [audio 16 video 15] [100.00%]
    INFO: [???] mplex version 2.0.0 (2.2.3 $Date: 2004/01/13 20:45:26 $)
    INFO: [???] File C:\Documents and Settings\Kevin Faye\dvd\title0-0-0-0.m2v looks like an MPEG Video stream.
    **ERROR: [???] File unrecogniseable!
    **ERROR: [???] Unrecogniseable file(s)... exiting.
    Error executing of command: mplex -f 8 -S 0 -M -V -o "C:\Documents and Settings\Kevin Faye\dvd\title0-0-0.vob" "C:\Documents and Settings\Kevin Faye\dvd\title0-0-0-0.m2v" "C:\Documents and Settings\Kevin Faye\dvd\title0-0-0-0.mp2"
    s this a hardware problem specific to my series 3 unit?
    Has anyone had a problem like this?
    I have to stop recording on my series 3.....I can't put them on dvd
    I also noticed when Cablevision came to remove cable box & installed the cards in TCD648250B Series3 HD Digital Media Recorder my signaled from tivo to my TV is now on HDMI,Composite 1 & S Video 1 where w/my series 2 dt box it was on HDMI,TV channel 03 NTSC & Composite 1, now all I get is snow on NTSC
    Could someone please point me in the right direction
    I have some season series's coming to an end, one or two episodes left, I would hate to lose them, esp. after all the time & effort to get the full series.
     
  13. Nov 9, 2007 #93 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    Did you mean to post in this thread? I don't see how your problem relates to TVAP?

    I've used the Dan203 method (VRD + DVDStyler) but not on HD videos. Don't have any idea what the problem is. Try posting on the VideoReDo and DVDStyler forums, and/or start a new thread on this forum, perhaps in the Series3/HD section.

    Good luck!
     
  14. Nov 9, 2007 #94 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    I thought TVSuite had an identical COM interface (used by TVAP) to VRD-Plus. However I get TVSuite crashes when TVAP trys to start AdScans using the TVSuite COM interface (using Beta 544).

    I've posted this problem on the VideoReDo TVSuite support thread and I'm hoping this is just a temporary bug in the Beta version -- or that VRD can tell me what is different about the TVSuite COM interface so I can adapt TVAP appropriately.

    As mentioned in a previous post, if you have both Plus and TVSuite installed, the COM interface that is used by TVAP is determined by which program was last run in the normal GUI interactive mode.

    Thus if you are running TVSuite my suggested work-around to allow TVAP to automate adscans is as follows:

    1. Keep a copy of VRD-Plus installed (or download and install it). I'm not aware of any conflicts from having both programs installed -- as I do.

    2. Before running TVAP, start VRD Plus and shut it down. This will cause TVAP to use the Plus COM interface. Unfortunately I just modified TVAP so if you have both Plus and TVSuite installed, the "Run VideoReDo" button will run TVSuite, which will cause further COM operations to run from TVSuite. If I don't get a quick resolution of the problem from VRD, I will release a new version where the button defaults to VRD Plus (if it is installed).
     
  15. Nov 10, 2007 #95 of 418
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,521
    181
    Apr 17, 2000
    Nevada
    Has DanR responded to your problem yet? If not let me know and I'll point him toward it. (the COM interface is his territory)

    Dan
     
  16. Nov 10, 2007 #96 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    I see TVSuite beta 545, just released, has this on the fix list:

    Sounds like that was my problem -- will test.

    Thanks Dan

    Edit: Limited testing indicates TVSuite Beta 545 has fixed the problem!

    Thus if you are using TVAP with TVSuite, upgrade TVSuite to 545 !
     
  17. Nov 17, 2007 #97 of 418
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    Would it be possible to auto enable filters during QSF processing? On my first test I ran into a file that had an errant 720x480 frame at the transition from commercials back to the movie while the rest of the Tivo file was 528x480. Don't know how often this occurs. It caused VideoReDo to crash during ad scan and TVAP assumed process was complete. When enable filters is selected, a window pops up asking you to select the video dimension. Normally there is just one dimension listed and filtering is not required. It would be great if TVAP could check the enable filters box to see if more than one dimension appears. If only one appears, auto press OK and proceed with QSF. If more than one appears, pause and let the user select appropriate video dimension before proceeding with QSF.

    Also, is it possible to auto shrink the TVAP window vertically when the window is maximized. I use a double high taskbar and the bottom of the window is cut off even when maximized.
     
  18. Nov 17, 2007 #98 of 418
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    I didn't see the Episode Number in the metadata window but was wondering if it was available. I'd love to be able to rename the output file to include the episode number after the title in the file name. Episode Num is not always provided on the Tivo Program Details screen, but when available, it sure would be handy to make it part of the file name. Great program though, Thanks.
     
  19. Nov 17, 2007 #99 of 418
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    I looked into this briefly and don't see a way to do it via the VRD COM interface that TVAP uses.

    Not sure I understand here. Are you using 800x600 screen graphics? Even with just 1024x768 graphics, there is plenty of room for a double layer task bar. TVAP is only 576 pixels high. Of course the TVAP window can be resized manually.
     
  20. dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    TVAP does read the "episodeTitle" metadata and reports it as sub-title. I don't have a .tivo file that has an episode number in it. The only series I record is "The Office", which doesn't have it. However I do have a "Cranky Geeks" podcast in my NPL and I notice the episode title (which would be sub-title in TVAP) is "Episode 90". (This file cannot be transfered to my PC of course.)

    See if you see episode numbers in your files in the sub-title in the TVAP metadata display. Or maybe I just need to get a .tivo that has an episode number field in it distinct from the episodeTitle field. What are some series that you know have the numbers?
     

Share This Page