Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Tue May 21, 2013 10:07 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sun Feb 07, 2010 1:30 am 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
Hello,

I'm calling comskip.exe with an async process. I have seen other GUIs (ie mpeg2dvrmsgui.exe) display on their screen the progress in percent as the comskip.exe is running. How do I get that value? vb.net code below...

...

Dim identifyCommercialProcess As Process = New Process()
Dim dtStart As DateTime
Dim currentDestFileSize As Double = 0

identifyCommercialProcess.EnableRaisingEvents = True
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal
identifyCommercialProcess.StartInfo.WorkingDirectory = GetSubKeyValue(MSTRMAINKEYNAME, MSTRSUBKEYWORKINGDIR) & "\comskip"
identifyCommercialProcess.StartInfo.FileName = "comskip.exe"
identifyCommercialProcess.StartInfo.Arguments = Chr(34) & strFilename & Chr(34) & " " & Chr(34)
identifyCommercialProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
identifyCommercialProcess.StartInfo.CreateNoWindow = True

dtStart = Now
identifyCommercialProcess.Start()

pgrbarProcessFiles.Value = 0

While identifyCommercialProcess.Responding And identifyCommercialProcess.HasExited = False
lblFileConverting.Text = "Identifying commercials - " & vbCrLf & getFileNameOnly(strFilename)
Application.DoEvents()
End While
...

thank you!


Top
 Profile  
 
PostPosted: Sun Feb 07, 2010 8:37 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
Comskip writes progress to stderr.
Redirect the stderr output (output stream number 2) to a file and you can read the progress from the file being created


Top
 Profile  
 
PostPosted: Mon Feb 08, 2010 7:09 pm 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
Excellent. Thankyou for responding.


Top
 Profile  
 
PostPosted: Wed Feb 10, 2010 7:31 pm 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
Sorry to reopen this...

I was able to pull back both standarderror and standardoutput streams. standardoutput had information in it (same info i see when running in cmd prompt window). Standarderror never has information in it and is never raised. What I am looking for is a progress indicator, ie 1%...2%...3%...

Is it possible?

Thank you!


Top
 Profile  
 
PostPosted: Wed Feb 10, 2010 8:07 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
When you run comskip by dragging and dropping a recording onto the comskip.exe you will see the progress output being written.
It is possible , not sure, you may have to set
verbose=1


Top
 Profile  
 
PostPosted: Wed Feb 10, 2010 8:20 pm 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
Not suprisingly there was a bug on my end. I see the progress now. thank you again!


Top
 Profile  
 
PostPosted: Sat Feb 13, 2010 9:51 pm 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
Hi, it's me again, sorry.

Got it reporting back to me, but every file seems to stop at a certain percentage. It will stay at say 86% or 94% for 5mins at least. Comskip.exe still in task manager with memory fluctuating but CPU usage=0%. What is going on at this point? I have yet to have a file reach all the way to 100%. After this long pause however the dvrcut.bat generates successfully and everything seems fine. Just wondering what this random hang and not going all the way to 100% is all about?

thanks!


Top
 Profile  
 
PostPosted: Sat Feb 13, 2010 10:17 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
look in the comskip documentation for "standoff" and live_tv_retries


Top
 Profile  
 
PostPosted: Sun Feb 14, 2010 6:55 pm 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
No luck...

in comskip.ini I tried the following based on the support docs:

standoff=8000000
live_tv_retries=300 and 16

dvr-ms comskip status stuck at 93%

standoff=120000
live_tv_retries=300 and 16

dvr-ms comskip status stuck at 93%


Top
 Profile  
 
PostPosted: Mon Feb 15, 2010 9:07 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
When processing live tv comskip needs to wait till the file does no longer grow for some time as dvr-ms files are extended before being filled with video.
If you do not use live tv processing you can set
live_tv_retries=0
and comskip will not wait.


Top
 Profile  
 
PostPosted: Mon Feb 15, 2010 11:24 pm 
Offline

Joined: Sun Feb 07, 2010 1:25 am
Posts: 7
Worked a charm! Thanks so much!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group