Author: duncan
Date: Wed Sep 27 10:05:22 2006
New Revision: 8247
Modified:
branches/rel-1-5/freevo/src/tv/v4l2.py
Log:
Added some test code for getinput and setinput
Modified: branches/rel-1-5/freevo/src/tv/v4l2.py
==============================================================================
--- branches/rel-1-5/freevo/src/tv/v4l2.py (original)
+++ branches/rel-1-5/freevo/src/tv/v4l2.py Wed Sep 27 10:05:22 2006
@@ -346,3 +346,20 @@
self.inuse = FALSE
+'''
+To run this as standalone use the following before running python v4l2.py
+pythonversion=$(python -V 2>&1 | cut -d" " -f2 | cut -d"." -f1-2)
+export PYTHONPATH=/usr/lib/python${pythonversion}/site-packages/freevo
+export FREEVO_SHARE=/usr/share/freevo
+export FREEVO_CONFIG=/usr/share/freevo/freevo_config.py
+export FREEVO_CONTRIB=/usr/share/freevo/contrib
+export RUNAPP=""
+'''
+
+if __name__ == '__main__':
+ print 'DEBUG=%s' % (config.DEBUG)
+ viddev=Videodev('/dev/video0')
+ inp = viddev.getinput()
+ print 'viddev.getinput=%s' % (inp)
+ viddev.setinput(inp)
+ print 'viddev.setinput okay'
-------------------------------------------------------------------------
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