From 8d23b7e04fc9b7cba47beb0893384bf3231ce5f3 Mon Sep 17 00:00:00 2001
From: Daniel Drake <dsd@laptop.org>
Date: Fri, 16 Apr 2010 17:31:58 -0300
Subject: [PATCH] Limit v4l2 framerate to 15fps
The XO-1.5 camera is able to supply frames at a very high rate,
resulting in 100% CPU usage and backlogged gstreamer pipelines.
---
glive.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/glive.py b/glive.py
index a1a4610..84281db 100644
a
|
b
|
class Glive: |
77 | 77 | self.src_str = \ |
78 | 78 | 'v4l2src ' \ |
79 | 79 | '! video/x-raw-yuv,width=%s,height=%s ' \ |
| 80 | '! videorate ! video/x-raw-yuv,framerate=15/1 ' \ |
80 | 81 | % (PLAYBACK_WIDTH, PLAYBACK_HEIGHT) |
81 | 82 | self.play_str = \ |
82 | 83 | 'xvimagesink force-aspect-ratio=true name=xsink' |