TiVo-VideoReDo-AutoProcessor Program

linfor

New member
I really like this program. I use it several times a day and it makes life easier. With about 10 hours of recordings daily it is GREAT!! Thanks a lot for creating it.
Is there anyway to call another program to run after the cutting of the commercials? I want to call ccextractor or mpg2srt to create subtitle files after the ads are removed from the show
 

dlflannery

Moderator
I really like this program. I use it several times a day and it makes life easier. With about 10 hours of recordings daily it is GREAT!! Thanks a lot for creating it.
Is there anyway to call another program to run after the cutting of the commercials? I want to call ccextractor or mpg2srt to create subtitle files after the ads are removed from the show
Yes, as long as it has a command line interface (i.e., doesn't require you to start a GUI to run it). All you do is call it from the TVAPpostProcess.cmd batch file with a line like this:

call <programPath> <arg1> <arg2> ....

The only catch is that only one argument has been passed into TVAPpostProcess.cmd, which is the "bare" video file name (without path or extension). Thus all the arguments passed to the program you call must either be pre-determined constants or constructable knowing only the bare video name.

You can put as many of these as you wish in there.

Speaking of this, did you see my post #39 to you? Did it work?
 

dlflannery

Moderator
dlflannery:
Well done! Nice little app.
Following msmart's 8 simple steps to auto-processing heaven (a few posts back) works great.

I do have a question though. What are the proper setttings in TVAP if you just want to take newly transferred TiVo files, pass it through VideoReDo with no QSF, no Ad-Scan, so we simply have a .mpg file in a new location instead of the .tivo file in the "my recordings" location.

I tried simply setting the "Delete TiVos" in Default settings. I got an error indicating "Error deleting .TiVo file: <program name>"

I tried stopping the processing, resetting the status, and then starting the process, and it deleted the file immediately. But it never to process it through VideoRedo.

Are there proper setttings in TVAP to do this?
Just set it up to do only the QSF function. This is basically equivalent to just loading it into VRD as a .TiVo then saving as a .mpg. (VRD does most of the QSF clean up in that case anyway, and there is no significant processing time difference.) The delete .TiVo thing should function properly then.
 

dlflannery

Moderator
postprocess batch file for XVID/AVI encoding

Here is the MediaFire link to a zip package containing the batch file and instructions.

Users are welcome to try this TVAPpostProcess.cmd file. You need to have AviSynth, dgIndex and ffmpeg (all free). Here is what it's about:

This batch produces xvid/avi files and uses dgindex and avisynth to feed a .avs stream into ffmpeg. You could of course feed the mpeg2 directly into ffmpeg. The .avs method allows an autocrop, i.e., if the video is a movie with 2.35:1 aspect it will automatically crop and produce a 640x272 output instead of 640x480. This allows faster and more efficient processing for encoding (and for pyTivo transcoding later). You can do this cropping manually with ffmpeg arguments also but you would have to manually configure it for each video. The .avs method also provides more sophisticated handling of interlacing and field order.

Start with the BatchNotes.txt file. A package of the required AviSynth plugins is also included, which saves a lot of searching and downloading time.
All you need to do is download and install dgIndex, AviSynth and ffmpeg, copy the AVS plugins to the correct folder, and edit the folder path variables in the batch file following the remarks provided. Instructions for testing the batch outside TVAP are also included.
 

dlflannery

Moderator
TVAP Ver. 0.52

- Increased time interval .TiVo file must have constant size to be declared "done transferring" from 5 seconds to 15 seconds. This is to reduce possible problem experienced by one user when his TiVo box was busy doing other things and DeskTop failed to transfer any bytes during a five second interval -- and TVAP decided the file was done transferring. Note this required increasing the startup delay time from 7 seconds to 18 seconds.

- Added starRating, mpaaRating and tvRating to metadata file.

Follow link in my signature to get download link.
 

TivoTodd

New member
Is there a setting to cause VideoRedo to use "Enable Filters" with a specific resolution?

Certain shows recorded from SciFi (Stargate series, so far) won't pass through an Ad-Scan unless you QF with filters enabled. The recorded show apparenlty has a section of commericals that is at a different resolution (352x480) than the rest of the show and commercials (544x480).

During Ad-Scan, TVAP (or perhaps it is the VRD background process) pops up a dialog box reporting the error (<title>MovieWindow Problem, <text> Video Thread: Video Dimensions changed), and halts there until you press OK. Once you do, TVAP saves a .vprj file for the show with nothing in it, deletes the .tivo file (if selected) and attempts the QF on the next show. This problem pretty much kills any unattended processing.

My current workaround is to use VRD to open the QF file, QF the file again with filters enabled(save it to an (02) filename). Some times I have to change the "Samples" value, and rescan to get the "bad" resolution to show up. Select the proper resolution, and then save the new QF (02).
After that QF is saved, I delete the original QF, rename the (02) to the original name, and open VRD again to start the Ad-Scan, perform edits, and save it over the .vrpj file in the Ad Scan destination. And TVAP takes off from there.

So.. feature enhancement, or just live with it? I don't know how you can code for something like that and have it work with all shows... perhaps do the filter scan (samples value of 128 usually works) and select the highest resolution for the QF? Or, perpaps watch for the error, and create a new status that indicates manual processing is needed, or something.

This one's a doosey!

I am on Cox cable, if anyone is interested in seeing if they do or don't have that same problem.
 

dlflannery

Moderator
Is there a setting to cause VideoRedo to use "Enable Filters" with a specific resolution?

Certain shows recorded from SciFi (Stargate series, so far) won't pass through an Ad-Scan unless you QF with filters enabled. The recorded show apparenlty has a section of commericals that is at a different resolution (352x480) than the rest of the show and commercials (544x480).

During Ad-Scan, TVAP (or perhaps it is the VRD background process) pops up a dialog box reporting the error (<title>MovieWindow Problem, <text> Video Thread: Video Dimensions changed), and halts there until you press OK. Once you do, TVAP saves a .vprj file for the show with nothing in it, deletes the .tivo file (if selected) and attempts the QF on the next show. This problem pretty much kills any unattended processing.
...........
So.. feature enhancement, or just live with it?.
Do you have VRD TVSuite?

With VRD Plus there was no way to control the QSF filter size via the COM interface (which is what TVAP uses). However I searched the forum for "filter" in response to your post and found these posts which say this control has been added to VRD TVSuite, and indeed it does show up in the help for it..

If you're interested I could give you modified .vbs script files (which are used by TVAP) with this filter hard coded to 544x480. You would sub these for the ones distributed with TVAP (temporarily, saving the originals of course).

You have to have TVSuite for this although you could free-trial it long enough for these tests.
 

msmart

New member
Will TVAP remember to auto-cut shows that have been QSF'd and scanned if I stop processing, close TVAP, install the latest version and start it up?
 

TivoTodd

New member
Do you have VRD TVSuite?

With VRD Plus there was no way to control the QSF filter size via the COM interface (which is what TVAP uses). However I searched the forum for "filter" in response to your post and found these posts which say this control has been added to VRD TVSuite, and indeed it does show up in the help for it..

If you're interested I could ......
Nope.. plain old VRD here. It sounds like the your fix would have to be remembered everytime I updated to the latest version, or I would write over your .vbs scripts. I will keep doing what I am doing, for now. Perhaps SciFi, or my local Cox broadcaster will stop monkeying with the resolution.. /rude Cox!

Thanks again, dlf!
 

dlflannery

Moderator
Nope.. plain old VRD here. It sounds like the your fix would have to be remembered everytime I updated to the latest version, or I would write over your .vbs scripts. I will keep doing what I am doing, for now. Perhaps SciFi, or my local Cox broadcaster will stop monkeying with the resolution.. /rude Cox!

Thanks again, dlf!
If the test worked and you are willing to spring for TVSuite, we could figure out something so you didn't have to worry about the scripts, for example a command line option such as /f that you would just edit into the TVAP shortcut properties, which would invoke the filter. Let me know if you want to test it.
 

dlflannery

Moderator
Will TVAP remember to auto-cut shows that have been QSF'd and scanned if I stop processing, close TVAP, install the latest version and start it up?
For a new version with the same XML data file format there would be no problem. But typically new versions do involve additions to the XML format, e.g., for tvRating.

However the workaround is easy.

1. Save off a copy of the TivoFileManager.xml file before installing the new version.
2. Uninstall the old version and Install the new version.
3. Run it, reconfigure if needed, then shut it down.
4. Using notepad, look in the new XML file and the old one you saved. The memory of .vprj files to be processed is near the bottom in sections bracketed by <AutoCuts> and </AutoCuts>. I don't know whether the autocut data will have survived in the new XML or not but if you just copy it from the old XML and paste it into the new one in the same location, that should do the trick.

As long as you saved the old XML file, there are other tricks to be tried if this one didn't work.
 

msmart

New member
Yes, that does sound easy. I didn't have as many shows waiting for me to edit (the .vprj file) as I thought so I just manually edited them, when auto-cuts finished downloaded .52.

On to my next quest.... now that you've given us metadata txt files, I've got an accumulation of them waiting for me to extract the seriesTitle, episodeTitle, and description to place into a spreadsheet I maintain listing shows I've downloaded and burned to DVD.

I used to use TiVoPlayList to export the entire playlist to a file and parse into columns in the spreadsheet. However, all shows in the playlist were exported so I would have to delete the shows I didn't download (over and over again.)

Now, with TVAP, I get the metadata information just for the shows I download and process with TVAP. A time saver I think, but that leads me to my problem, how to I get the 3 data elements I want from the individual files into my spreadsheet?

I re-read through the TVAP thread over at tivocommunity and saw where someone had written some sort of script that would get the data from the metadata files. There was a request to have it posted but it wasn't.

Any suggestions on how to do it faster than a copy/paste method?
 

dlflannery

Moderator
TVAP Ver. 0.53

- Added command line option -p<#> to set priority of VRD processes.
0 = low, 1 = below normal, 2 = normal. TVAP defaults to below normal

- Added logic to prevent any possibility of writing empty DisplayMajorNumber item to pyTivo metadata file.

TVAP should only set the priority of the VRD processes it is controlling.

To add the CL arg to a shortcut, add it after the program path in the shortcut properties, target entry. Do not add it inside the quotation marks and do put a space between it and what is already there.

Note: An example CL arg is: -p1
There should be no space between the -p and the number.

The priority-setting feature has not been tested on Vista. If you have admin privileges it probably will work fine. Otherwise there are several possibilities:

1. It will still work fine.
2. It won't complain but just won't set priority.
3. It will bring up a message of some kind.

Let me know what you observe. You can see priority in Task Manager by configuring the Base Priority column in its process display.

I have seen three different process names for VRD:

videoredo3.exe
videoredo.exe
VIDEOR~1.exe (name mangling for DOS 8.3 filenames ??)

My computer just suddenly starting using the third one instead of the second one for no apparent reason at all. I think TVAP will handle it OK.
 
Last edited:

msmart

New member
Color me stupid, but were exactly do I change the priority? It's not making sense to me.

I have XP Home and use Process Explorer rather than Task Manager. Using it to change priority, you're given the following choices 4=Idle, 6=Below Normal, 8=Normal, 10=Above Normal, 13=High, 24=Realtime.

After installing .53 I see that VRD (that TVAP launches) now defaults to 6 as expected. So if 1=below normal, and 0=Low, wouldn't 0 actually equal Idle in my case?

But again, were do I change it from 1 to 0?
 

dlflannery

Moderator
Color me stupid, but were exactly do I change the priority? It's not making sense to me.

I have XP Home and use Process Explorer rather than Task Manager. Using it to change priority, you're given the following choices 4=Idle, 6=Below Normal, 8=Normal, 10=Above Normal, 13=High, 24=Realtime.

After installing .53 I see that VRD (that TVAP launches) now defaults to 6 as expected. So if 1=below normal, and 0=Low, wouldn't 0 actually equal Idle in my case?

But again, were do I change it from 1 to 0?
AFAIK idle = low

It's a command line argument.
Right click on TVAP shortcut.
Select properties
Edit the "Target" field.
It should contain something like:

"C:\Program Files\TVAP\TiVo-VideoReDo-AutoProcessor.exe"

Add a space after the last quote then add -p0 so you now have:

"C:\Program Files\TVAP\TiVo-VideoReDo-AutoProcessor.exe" -p0

The 0 is the numeral 0 not the letter O.
 

dlflannery

Moderator
TVAP Ver. 0.54

29 January 2008 Ver. 0.54
- Added Do post-process check box to per-file settings. Defaults to checked.
If checked, optional user-supplied TVAPpostProcess.cmd file will be run on
the completed mpeg2 file.

Now you can control which files are post-processed. If you don't have a post-process batch file in place, nothing will happen and it doesn't matter whether the new check box is checked.

For download follow TVAP link in my signature below.
 

dlflannery

Moderator
TVAP Ver. 0.55 -- Bug fix!

4 February 2008 Ver. 0.55
- Fixed: Always ran user-supplied TVAPpostProcess.cmd file after manual review of .vprj file, ignoring Do post process checkbox setting.

And thanks to msmart for calling this to my attention!
 

dlflannery

Moderator
TVAP Ver. 0.56

5 February 2008 Ver. 0.56
- If your TVAPpostProcess.cmd uses Handbrake (hbcli.exe), its priority will be set to the same level as VRD processes, per the TVAP -p# command line option. (See Ver. 0.53 info in TVAPreadme.txt for priority setting.)
Note side effect: Any other instances of hbcli.exe running when your batch starts will also be set to this priority.

- Installer no longer removes Desktop shortcut on uninstall, and upon installation offers "Don't create a start menu folder" option which, if checked will not create a new shortcut -- thus preserving any -p# option you had edited into the shortcut target line.
Side effect: The start menu entry is also not created if this option is checked.

Note you can delete any shortcut by selecting it and hitting Shift-Del (in case you uninstall TVAP and want to get rid of the shortcut).
 
Top Bottom