On 1/1/06, Steve Adeff <[EMAIL PROTECTED]> wrote:
> On Sunday 01 January 2006 12:19, Steve Adeff wrote:
>
> I'm really getting frustrated, there must be something I'm missing. I went all
> the way back to 8199 and I'm still getting stuttering! I even rebooted the
> machine. I've tried both gcc-4.0 and gcc-3.3. I do a make uninstall and make
> distclean before each compile but they still have stuttering for 1080i
> output.
>
> Help!


Steve,

Try doing a clean check-out of the latest svn (svn co
http://cvs.mythtv.org/svn/trunk/mythtv), not a svn update.

Then, try adding the attached patch to it: patch -p0 < RingBuffer.patch.

I still get an occational stutter, but they are very infrequent.

John
Index: libs/libmythtv/RingBuffer.cpp
===================================================================
--- libs/libmythtv/RingBuffer.cpp	(revision 8456)
+++ libs/libmythtv/RingBuffer.cpp	(working copy)
@@ -34,7 +34,7 @@
 #define O_LARGEFILE 0
 #endif
 
-const uint RingBuffer::kBufferSize = 10 * 256000;
+const uint RingBuffer::kBufferSize = 30 * 256000;
 
 #define PNG_MIN_SIZE   20 /* header plus one empty chunk */
 #define NUV_MIN_SIZE  204 /* header size? */
@@ -433,7 +433,8 @@
     wantseek       = false;
     readsallowed   = false;
     fill_min       = 1;
-    readblocksize  = (estbitrate > 12000) ? 256000 : 128000;
+//    readblocksize  = (estbitrate > 12000) ? 512000 : 128000;
+    readblocksize  = (estbitrate > 12000) ? 512000 : 128000;
 
 #if 1
     fill_threshold = 0;
@@ -448,7 +449,7 @@
         fill_threshold += 256000;
 
     if (estbitrate > 12000)
-        fill_threshold += 256000;
+        fill_threshold += 512000;
 
     fill_threshold = (fill_threshold) ? fill_threshold : -1;
 #else
@@ -723,7 +724,7 @@
         pthread_rwlock_unlock(&rwlock);
 
         if ((used >= fill_threshold || wantseek) && !pausereadthread)
-            usleep(500);
+            usleep(50);
     }
 
     delete [] readAheadBuffer;
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to