OXullo Intersecans wrote:
On 11/lug/08, at 13:58, #! /usr/bin/doma wrote:
libavg's V4L2 implementation has been surely tested with Bt8x8 PCI
boards and a bunch of webcams, but I personally have no reports about
vloopback.
What version are you using?
I'll put all my sys infos here. Basicly i'm using vloopack [1] from
the
svn trunk. I compiled it last week for Kernel 2.6.24-16 on Ubuntu
8.04/Hardy. It works really good with effectv,xawtv and pd.
Setting up vloopback is quit easy..
ok, please, also provide a py/avg pair that you are using to test
libavg functionality over your set up video pipeline
here you go - i'm testing with TestVideo.py/camera.avg from
libavg-0.7.0/src/test. hope attachement works.
if not try this:
http://bitnik.org/data/2008/test_vloopback.tar
Libavg
-------
Compiled SVN trunk for python2.5 yesterday. Everything works fine
except
the segfault message at the termination of a avg script. But it
doesn't
really bother..
To cleanup that boring message, point your browser here:
https://www.libavg.de/wiki/index.php/Libavg_on_Ubuntu#8.04_known_issue
thx, mate..
-doma
<?xml version="1.0"?>
<!DOCTYPE avg SYSTEM "../../doc/avg.dtd">
<avg width="1280" height="480">
<camera id="camera1" x="640" y="0" width="640" height="480" source="v4l"
pixelformat="YUV420" capturewidth="640" captureheight="480" channel="1"
device="/dev/video1" framerate="30"/>
</avg>
<!--<avg width="1280" height="960">
<camera id="camera" x="0" y="0" width="1280" height="960"
device="/dev/video1394/0" mode="640x480_RGB" framerate="15"/>
</avg>
-->
#!/usr/bin/python
# -*- coding: utf-8 -*-
from libavg import avg
import unittest
import sys, syslog
class CameraTestCase(unittest.TestCase):
def __init__(self, testFuncName, bpp):
self.__bpp = bpp;
self.__testFuncName = testFuncName
unittest.TestCase.__init__(self, testFuncName)
print "-------- ", self.__testFuncName, " --------"
def setUp(self):
Player.setResolution(0, 0, 0, self.__bpp)
def test(self):
def setWhitebalance():
self.__camera.whitebalance = 24407
def resetWhitebalance():
self.__camera.whitebalance = -1
def changeBrightness():
self.brightness += 10
self.__camera.brightness = self.brightness
def stopPlayback():
self.__camera.stop()
Player.setTimeout(500, self.__camera.play)
self.curFrame = 200
Player.loadFile("camera.avg")
Player.setFramerate(60)
self.__camera = Player.getElementByID("camera1")
self.__camera.play()
#Player.getElementByID("camera").play()
self.brightness = 0
# Player.setInterval(200, changeBrightness)
# Player.setTimeout(200, setWhitebalance)
Player.setTimeout(300, resetWhitebalance)
# Player.setInterval(3000, stopPlayback)
Player.play()
def playerTestSuite(bpp):
suite = unittest.TestSuite()
suite.addTest(CameraTestCase("test", bpp))
return suite
Player = avg.Player()
Log = avg.Logger.get()
Log.setCategories(Log.APP |
Log.WARNING |
Log.PROFILE |
# Log.PROFILE_LATEFRAMES |
Log.CONFIG |
Log.MEMORY |
# Log.BLTS |
Log.EVENTS)
runner = unittest.TextTestRunner()
if len(sys.argv) != 3:
bpp = 24
else:
bpp = int(sys.argv[1])
runner.run(playerTestSuite(bpp))
_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users