[pitivi] Discoverer: Increase the blocksize of the source elements to 128kb



commit d5aebe0bf59a7971a9711c0268731b66ceed7994
Author: Edward Hervey <bilboed bilboed com>
Date:   Sun May 10 12:01:47 2009 +0200

    Discoverer: Increase the blocksize of the source elements to 128kb
    
    The default value is 4kb ... which makes the decoding of high-bitrate
    content (like 6MPixel photos or HDV footage) in push-mode exceedingly
    slow. Giving 32times more data at once speeds up those scenarios.
---
 pitivi/discoverer.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pitivi/discoverer.py b/pitivi/discoverer.py
index c964dcd..8a861d7 100644
--- a/pitivi/discoverer.py
+++ b/pitivi/discoverer.py
@@ -265,6 +265,10 @@ class Discoverer(Signallable, Loggable):
 
             return None
 
+        # increment source blocksize to 128kbytes, this should speed up
+        # push-mode scenarios (like pictures).
+        if hasattr(source.props, 'blocksize'):
+            source.props.blocksize = 131072
         return source
 
     def _useDecodeBinTwo(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]