Change filename when only doing commercial detection

#1
I have VAP setup to do commercial detection only. Is there a way for me to get it to also rename the input file so that it shows the season and episode number?

Thanks,

Kevin
 
#2
No direct way. You could do it in a VAPpostProcess.cmd script file but that will only be run if you let VAP complete processing, i.e, not just do commercial detection but also output the file with commercial cuts applied. I'm not sure what you meant by "when only doing commercial detection."

If you manage to rename a file in the Monitored folder, VAP will then see it as a new file and queue it for processing. Depending on how you rename it you could possibly use input file-ignore or filtering settings to prevent that.

Another trick would be to use two instances of VAP. VAP1 would be configured with no QSF or AdScan/Comskip ops at all, which will cause it to simply move files from the Monitored folder to the output folder, meta-renaming them in the process. Then VAP2 would have the VAP1 output folder as its Monitored folder and would do the commercial detection. You can run VAP1 and VAP2 concurrently or one-at-a-time. Search for the -config command line option in VAP-readMe.pdf for details on this.
 
#3
No direct way. You could do it in a VAPpostProcess.cmd script file but that will only be run if you let VAP complete processing, i.e, not just do commercial detection but also output the file with commercial cuts applied. I'm not sure what you meant by "when only doing commercial detection."

If you manage to rename a file in the Monitored folder, VAP will then see it as a new file and queue it for processing. Depending on how you rename it you could possibly use input file-ignore or filtering settings to prevent that.

Another trick would be to use two instances of VAP. VAP1 would be configured with no QSF or AdScan/Comskip ops at all, which will cause it to simply move files from the Monitored folder to the output folder, meta-renaming them in the process. Then VAP2 would have the VAP1 output folder as its Monitored folder and would do the commercial detection. You can run VAP1 and VAP2 concurrently or one-at-a-time. Search for the -config command line option in VAP-readMe.pdf for details on this.
I have VAP set to run commercial detection and output a vprj file which I then open in VRD to verify the cut points and then output the final mpg. VAP almost never gets the commercial points correct so I always end up having to verify them.
 
#4
I assume you're opening the .vprj file in VRD (to verify/adjust cuts) by clicking the "Run VideoReDo" button in VAP (When the commercial scan is done and the file goes into AWAITING CUTS status) -- correct? If you do that, VAP then runs VRD to create the final meta-renamed output file, and a VAPpostProcess.com file will be run (if it exists). You can rename the input file in that script.

Search the VAP-ReadMe.pdf doc on "vappostprocess" to get more details, including the four arguments that are passed to the postprocess script. If you need more help just post.

BTW the cut points are determined either by VRD or ComSkip, not by VAP. VAP just runs one of those programs.
 
#5
I assume you're opening the .vprj file in VRD (to verify/adjust cuts) by clicking the "Run VideoReDo" button in VAP (When the commercial scan is done and the file goes into AWAITING CUTS status) -- correct? If you do that, VAP then runs VRD to create the final meta-renamed output file, and a VAPpostProcess.com file will be run (if it exists). You can rename the input file in that script.

Search the VAP-ReadMe.pdf doc on "vappostprocess" to get more details, including the four arguments that are passed to the postprocess script. If you need more help just post.

BTW the cut points are determined either by VRD or ComSkip, not by VAP. VAP just runs one of those programs.
No I had been double clicking the file in explorer to launch VRD because Im sometimes doing it the next day and VAP is running in the tray. I will try your method tonight.
 
#6
I just cant find anything that is going to automatically do what I want. Running a post process seems pointless since that would rename the file that the vprj file points to.
 
#7
Your statement shows you really haven't understood what I've said so far. (The .vprj file will not even exist by the time a VAPpostProcess script runs.) And I don't understand exactly what you want. If you would explain it in sufficient detail, I might be able to help.

It might help to review the PROCESS FLOWS AND FOLDERS section of the PDF doc.
 
Last edited:
#8
My current process is this:
WMC records
WtvWatcher converts it to DVR-MS
VAP detects that DVR-MS exists and does an adscan
I open VRD by double clicking on the VPRJ file
I fix the ad points and output the file

What I want to do is have the output file name detect the season and episode number SSxEE so that the output file has the format necessary for Plex to automatically pick it up.
 
#9
Please give one or several example pairs of:
1. An input file name.
2. The corresponding desired output file name.

Be sure you have theTVDB searches enabled on the "Other" tab of the Advanced Configuration form. Then deposit one or more input files in the Monitored folder with VAP running but processing not started. After the files no longer have TRANSFERRING in their name, wait a few more seconds then right click on the file name(s) in the Monitored File list. What metadata do you see in the yellow box that pops up?

VAP has three possible ways to get metadata from the input files:
1. Read the metadata contained in the file.
2. Get the metadata from theTVDB.com.
3. Parse it from the input file name using a suitable template.

With these possibilities there is a high probability that metadata can be obtained and then used to automatically rename your output files (and place them in distinct folders named based on metadata, if desired).

None of the above requires a VAPpostProcess script. But you do need to let VAP complete the entire process flow, which in your case means using the "Run VideoReDo" button to review cuts in the .vprj file, save them, then restart processing --- NOT the manual loading of .vprj files you are currently doing. I suggest reading the first few sections of the PDF document where this is described in more detail. Actual operation is trivially easy once you understand how it works.
 
#10
Input filename: 24- Live Another Day_WNACDT_2014_05_16_19_58_00 - DVRMS.dvr-ms
Desired Output Filename: 24 - Live Another Day 09x03 1:00PM-2:00PM

I see:
Title: 24 - Live Another Day
Episode: Day 9, 1:00PM - 2:00PM. (#0903)
Genre: Drama

Im guessing that the 0903 is season/episode.
I have tried setting "Title metadata item renaming template" to "{Title}_{seasonnum}x{epnum}_{Date}" then opening
Then stopping processing, running VRD from VAP, saving off the updated cuts, then restarted processing in VAP which output the mpg file but then the log shows "Output file was not meta-renamed" and the files stay with their original titles.
 
#11
I figured it out following a previous thread that you responded to. I had my output format in the wrong location in Advanced Configuration. Thanks!
 
Top