Ticket #1946: 0001-Limit-v4l2-framerate-to-15fps.patch

File 0001-Limit-v4l2-framerate-to-15fps.patch, 888 bytes (added by dsd, 13 years ago)
  • glive.py

    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: 
    7777            self.src_str = \
    7878                    'v4l2src ' \
    7979                    '! video/x-raw-yuv,width=%s,height=%s ' \
     80                    '! videorate ! video/x-raw-yuv,framerate=15/1 ' \
    8081                    % (PLAYBACK_WIDTH, PLAYBACK_HEIGHT)
    8182            self.play_str = \
    8283                    'xvimagesink force-aspect-ratio=true name=xsink'