Author: duncan
Date: Mon Jan 15 21:11:29 2007
New Revision: 8982
Modified:
branches/rel-1/freevo/src/commdetectcore.py
branches/rel-1/freevo/src/helpers/recordserver.py
Log:
[ 1635514 ] Add connection test for CommDetect in Recordserver
Patch from Justin Wetherell applied
Modified: branches/rel-1/freevo/src/commdetectcore.py
==============================================================================
--- branches/rel-1/freevo/src/commdetectcore.py (original)
+++ branches/rel-1/freevo/src/commdetectcore.py Mon Jan 15 21:11:29 2007
@@ -53,7 +53,7 @@
self.edlList=[]
videoCodec='-ovc lavc'
nosound='-nosound'
- videoFilter='-vf blackframe'
+ videoFilter='-vf blackframe=98:48'
output='-o /dev/null'
grep='| grep vf_blackframe'
outfile='> /tmp/blackframes.txt'
Modified: branches/rel-1/freevo/src/helpers/recordserver.py
==============================================================================
--- branches/rel-1/freevo/src/helpers/recordserver.py (original)
+++ branches/rel-1/freevo/src/helpers/recordserver.py Mon Jan 15 21:11:29 2007
@@ -55,6 +55,7 @@
from video.commdetectclient import initCommDetectJob
from video.commdetectclient import queueIt
from video.commdetectclient import listJobs
+from video.commdetectclient import connectionTest
import rc
rc_object = rc.get_singleton(use_pylirc=0, use_netremote=0)
@@ -1359,11 +1360,15 @@
if config.VCR_POST_REC:
util.popen3.Popen3(config.VCR_POST_REC)
if config.REMOVE_COMMERCIALS:
- (status, idnr) = initCommDetectJob(prog.filename)
- (status, output) = queueIt(idnr, True)
- print output
- (status, output) = listJobs()
- print output
+ (result, response) = connectionTest('connection test')
+ if result:
+ (status, idnr) = initCommDetectJob(prog.filename)
+ (status, output) = queueIt(idnr, True)
+ _debug_(output)
+ (status, output) = listJobs()
+ _debug_(output)
+ else:
+ _debug_('commdetect server not running')
else:
print 'not handling event %s' % str(event)
return
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog