VAP and Comskip

jcorb99

Member
Mr. Flannery.... when you were developing this, I saw several posts on the Comskip website to Erik regarding retrieving the percentage complete for the Comskip scan process. How did you end up integrating this into your program? Did you use the StdErr output or something else? I am attempting to write something that is not quite as involved as yours, but I am writing it in PowerBASIC. Can you help me?
 

dlflannery

Moderator
VAP captures the StdErr. It searches the most recent captured string for the last occurrence of the '%' character then takes the preceding two characters as the percent completion.

IIRC the percent completion usually cycles from 0 to 100 twice. I just let the progress bar do that since it would be hard to determine how to combine it into one 0-100 sequence. Slightly confusing to the operator but at least it portrays some measure of progress.
 

jcorb99

Member
Mr. Flannery.... I appreciate your help on this very much, but in your posts to Erik, you stated that "I've figured out how to redirect stderr from the comskip process directly into my C# code". How did you do this? PowerBASIC has the similar ability to utilize a "string queue" and I can parse each line from the stderr stream. My question is how did you capture/redirect the stderr stream within the VAP C# code? Can you provide me an example of your code? I sure would appreciate your help. Please know that this is for personal, not commercial use. Thank you, my friend.
 

jcorb99

Member
Thank you, very much! It has been many years since I took a series of C++ classes in college and I understand from your writings that your program is written in C#, but I will see if I can dust off my C skills and decipher your logic. Again, I thank you immensely! BTW, I saw from one of your posts on another site (TIVO, I think) that you live or have lived in Ohio.... I am from Ohio, as well.
 
Top Bottom