• On Septemer 25, 2018, the VideoReDo message board was moved to the Xenforo forum software. During the migration, we pruned thousands of inactive and spam users, if your user name was accidently removed simply register it again. Report any issues via email to support@videoredo.com.

Net Framework Unhandled Exception has returned

#21
Ok, in summary, Videoredo is great for commercial scanning, but the broadcast networks have made it extremely difficult for software like Videoredo to accurately cut a show. No matter how well I adjust Videoredo, it still, too often, hacks up the show wrong (especially ABC). I'd rather sit through the commercials in that case. Anyway, some shows I remove the commercials when I have the time (and some shows I don't care about). Either way, VPRJ metadata takes up very little space. So I simply store the .VPRJ and .mp4 files together in my server, instead of leaving them on my VAP computer. That way, if I have a show I want to remove the commercials from, I just go into the library and open up the VPRJ file. I don't have to wait for Videoredo to scan the .mp4 file for commercials. It has already done that. And, since the .mp4 file has also already been compressed, all VideoRedo has to do is take 30 seconds to "Remux" the show when the editing changes are completed. It may take me a whole week before I get the time to remove commercials from the show I want. That's why I don't leave them on the VAP computer.

I only use VAP config#2 for commercial scanning of the .mp4 file using the "Do Ad Scan" feature. Unfortunately, VAP doesn't run any post batch scripts with the "Do Ad Scan" feature. So once the .VPRJ file is created by VAP, I have a sperate watch program collect the media/xml (and VPRJ), and file them together into my library server. So, logically, I made the .vprj file the trigger for the watch program.
 
#22
OK, I think I understand your issues and I agree with your idea of what causes the problem. Unfortunately, both of the VAP mods you suggested would be more complex than I want to do. One easy mod would be for VAP to write a one-line text ("semaphore") file containing the video file name beside the .vprj file after it has finished writing. Then you would trigger on that file, and delete it after the moves to archive folder. However whether this would be bullet proof depends on the details of the watch program. VAP could have a multiple-try loop for writing the file in case the watch program locks the folder at the moment of writing it.

Let me know if you want to try this, and your preference for the file extension of the semaphore files (.txt or ?).
 
#23
How about having VAP use "temp (QSC) folder" to compose the file and then transfer it to output once completed? Since VAP is not converting and commercial scanning at the same time, there should be no conflicts and (in theory) it should not be a hard line changes in your script (im hoping thats the case). Then maybe ad a trigger where VAP suspends the feature of waiting for VPRJs changes (from Videoredo). Maybe a switch on start up like -NoWatchVPRJ . The VPRJ files arriving in the "output folder" are consider finalized. Does that simplify? Because I've gotten the opportunity to witness the problem a couple more times and it always happens at the very tail end of the AD scan. So I think its when VAP completes the VPRJ and then implements the process of watching the .VPRJ for changes.
 
Last edited:
#24
Reviewing the code I discovered the .vprj file is already being created on a "temporary" folder, actually the monitored folder, and then is moved to the output folder. So I've put in a loop that tries to copy it to the output folder up to 10 times, repeating at one second intervals if an error occurs. If the copy fails all 10 times a log entry "ERROR failed to move .vprj file to output folder" occurs.

Try substituting the VAP executable, Ver. 1.41T1 in this zip:
https://vap.videoredo.net/VAPexe141T1.zip
 
#25
Ok. I'll give it a test. I'm still suspecting more and more that its when VAP watches the created .Vprj for changes that might be the error contributor.
 
#26
OK! The problem of VAP locking up while scanning new files has returned. This is not the commercial scan issue we are currently working on. This is the problem I reported to you back on October 10th. This is happening with VAP config:1 which handles converting the .TS file to mp4, renames the media and creates the .btv xml file.

Originally I though it was VAP scanning and processing too many files. Its definitely something else. It could be related to the XML/theTVDB search. What happens is, is that a particular show will stall in "Transferring" mode and VAP will lock up. Empire 11-28-2018 is the latest culprit. I recorded the show twice on two different systems and both locked up VAP. So I created a small .TS file and renamed it "Empire_20181128_20002100" and filed into the VAP monitor folder along with the corresponding xml file. VAP locked up again. So its definitely not the TS media locking up VAP. Its related to the Metadata. I attacked my test files to this email for your review.

https://1drv.ms/u/s!AnHKMcbNlt04yQUzDhkHoFvNn7MC
 
#27
This one allowed me to find a bug in VAP's theTVDB.com search code that caused an infinite loop. Actually I think it's an inconsistency in the data in theTVDB.com. A search for the title "Empire" yields a TVDB series ID for which, when you search for the episodes associated with that ID, you get a web response error. But VAP had a bug in that it didn't anticipate that result, leading to the infinite loop.

Something is very amiss for Empire (Fox 2015) on theTVDB.com -- even the web UI (theTVDB.com) doesn't have it. I've posted about it on their forum.

The Empire .ts file you sent won't open in TVS5, says "no PID's found", so I couldn't test actually processing it.

Test executable (not an installer) ver. 1.41T2, which fixes the TVDB.com search bug mentioned above is in the zip linked here:
VAPexe141T2
 
#28
Make sure you set your PID setting to 55 (I believe Videoredo default is set to 05). The VideoRedo default setting errors a lot of .TS files. I will test the new VAP exe. That TS file is not the Empire episode anyway. Its just a short .TS file I use for testing VAPs metadata.
 
#30
Ok, the TVDB issue hasn't seemed to return but VAP config:2 crashing on the commercial skips is still happening. So its got to be VAP watching the .vprj file for Videoredo changes (after it generates the file). It must be conflicting with the Datamystics Watchfolder software which is also monitoring for completed .vprj file.

https://www.datamystic.com/filewatcher
 
Last edited:
#33
Sorry, I accidentally closed out the last error that occurred. So I waited for it to return. All I get is a "VideoRedoAutoProcessor has stopped working" error. "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

There is no additional data or solution. I'm looking through the VAP logs...


12/8/2018 1:11:15 PM H.264 is encoding for: Shameless ~ .s03.e06. OAD 2013 02-24. ''Cascading Failures''. SHOW [RDT- 20181208_11001200].mp4
12/8/2018 1:11:15 PM 1280 is video width for: Shameless ~ .s03.e06. OAD 2013 02-24. ''Cascading Failures''. SHOW [RDT- 20181208_11001200].mp4
12/8/2018 1:11:15 PM H.264 is encoding for: Shameless ~ .s03.e06. OAD 2013 02-24. ''Cascading Failures''. SHOW [RDT- 20181208_11001200] .mp4
12/8/2018 1:11:15 PM Started Ad Scan, .vprj only, input: Shameless ~ .s03.e06. OAD 2013 02-24. ''Cascading Failures''. SHOW [RDT- 20181208_11001200].mp4
12/8/2018 1:11:15 PM Unable to create meta-renamed output folder - file not movie or series show.
12/8/2018 1:11:15 PM Input file was: Shameless ~ .s03.e05. OAD 2013 02-17. ''The Sins of My Caretaker''. SHOW [RDT- 20181208_10001100].vprj
12/8/2018 1:11:15 PM Unable to create meta-renamed output folder - file not movie or series show.
12/8/2018 1:11:15 PM Input file was: Shameless ~ .s03.e06. OAD 2013 02-24. ''Cascading Failures''. SHOW [RDT- 20181208_11001200)].vprj
12/8/2018 1:11:18 PM VideoReDo said: INFO: VideoReDo version 5.3.83.770 - Aug 2 2018
12/8/2018 1:11:21 PM VideoReDo said: INFO: Edit mode set to cut
12/8/2018 1:20:34 PM VideoReDo completed VideoReDo AdScan on input: C:\Media Processing\Videos\Shameless ~ .s03.e06. OAD 2013 02-24. ''Cascading Failures''. SHOW [RDT- 20181208_11001200].mp4



Everything is ok up until 1:20:34pm. VAP finishes the AD Scan and that's when it stops logging. So I am assuming that VAP is watching and scanning its output folder for any changes to any .vprj file it creates. This is conflicting with the Datamystic Watchfolder program, which is also scanning that same directory for any new .VPRJ files that have been completed and left unattended. Maybe when both scan the file at the same time, VAP crashes.
 
#34
OK, substitute the VAP executable (NOT an installer) contained in the zip linked here:
VAPexe141t3.zip
If you add the CL option -vprjOnly (not case sensitive) to the shortcut following the .exe path, then VAP will finish with a file after doing the adscan or Comskip processing. It will not scan for changes in the .vprj files. Do not check "Auto Cut After Ad Scans" when using this option.

It will not run user postprocess scripts with -vprjOnly invoked, but more mods can make that happen also, if desired.
 
Last edited:
#35
VAP executable (NOT an installer) Ver. 1.41T4 included in the zip linked here:
VAPexe141T4.zip
Will run user postprocess scripts with -vprjOnly CL option invoked. See item 17 in "Things to Know" section of VAPreadme.pdf for details on postprocess scripts.

Here is a sample .bat script that will list the 9 arguments passed to the scripts:
Code:
@echo off
setlocal
echo THIS IS A TEST
echo %~1
echo %~2
echo %~3
echo %~4
echo %~5
echo %~6
echo %~7
echo %~8
echo %~9
pause
Notes:
1. To see this script run do NOT check "Run post-process scripts in hidden window" on Other tab of VAP Advanced Configuration screen. It may be minimized in the task bar when running also, so you need to click it to bring it up.
2. The pause statement makes the script output window remain visible for inspection, until you close it or hit space bar. (And stops VAP operation until then too.)
3. Place the script in the output folder where the .vprj file will be placed by VAP
4. Argument 6,, Output file size will always just be "NA" with -vprjOnly invoked.
5. One item you will most likely need is the folder where the input video file is located (probably the VAP Monitored folder). This is not supplied as an argument but of course you know what it is.
6. Check "Do Post process" for the file OR check "Run post-processing scripts by default" on the Other tab of VAP Advanced Configuration.

Hopefully being able to run postprocess scripts will eliminate the need for your "watcher" program and thus any possible bad interaction between it and VAP.
 
Last edited:
#36
VAP executable (NOT an installer) Ver. 1.41T4 included in the zip linked here:
VAPexe141T4.zip
Will run user postprocess scripts with -vprjOnly CL option invoked. See item 17 in "Things to Know" section of VAPreadme.pdf for details on postprocess scripts.

Here is a sample .bat script that will list the 9 arguments passed to the scripts:
Code:
@echo off
setlocal
echo THIS IS A TEST
echo %~1
echo %~2
echo %~3
echo %~4
echo %~5
echo %~6
echo %~7
echo %~8
echo %~9
pause
Notes:
1. To see this script run do NOT check "Run post-process scripts in hidden window" on Other tab of VAP Advanced Configuration screen. It may be minimized in the task bar when running also, so you need to click it to bring it up.
2. The pause statement makes the script output window remain visible for inspection, until you close it or hit space bar. (And stops VAP operation until then too.)
3. Place the script in the output folder where the .vprj file will be placed by VAP
4. Argument 6,, Output file size will always just be "NA" with -vprjOnly invoked.
5. One item you will most likely need is the folder where the input video file is located (probably the VAP Monitored folder). This is not supplied as an argument but of course you know what it is.
6. Check "Do Post process" for the file OR check "Run post-processing scripts by default" on the Other tab of VAP Advanced Configuration.

Hopefully being able to run postprocess scripts will eliminate the need for your "watcher" program and thus any possible bad interaction between it and VAP.

Thank you. I'll give it a test.
 
#37
So far working well. I ran the script test and this is what I get. For %1 and %2 I get the same file name without extension (I am going to assume this is normal since I am not using VAP config#2 to change file names. Traditionally %1 should be the new name and %2 the source name, correct?). %3 I get the VPRJ destination path. %4 I get a numeral "1280" which I assume means the video resolution 1280x720, and on %5, I get the source media extension ".mp4". %6-%9 I just get "NA". I definitely have enough to rebuild my script, however, maybe we should also have the Monitor folder path also be recorded in the variable. Perhaps %6?

Thank you.
 
Top