[Title] High Bit Rate of HTML5 streaming video are unsmooth and stuck during playing
authorqing.zhang <qing.zhang@intel.com>
Mon, 19 Aug 2013 06:46:05 +0000 (02:46 -0400)
committerqing.zhang <qing.zhang@intel.com>
Mon, 19 Aug 2013 08:37:13 +0000 (04:37 -0400)
[Issue#] TD-6970
[Problem] When the bandwidth (Bit Rate) of video source bigger than 2560 kbps,
        (depends on the type of codec and reference frame size), the playback would
be unsmooth and even stuck.
[Cause] The pop ring-cache head operation happened while overflow the 0.99 of Max Cache
-> 2MB, but the high bit rate of video would need much more free cache space.
[Solution] Supports some HD video source achieve more than 4096 kbps, extend the default
        max cache size to 5MB limition tmpfs and recover percentage from 99% to 69%.

        This updates will not impact the manual media-pipeline setup, because the pipeline owner c
        set any propriety as before.
[Developer] Qing.Zhang (qing.zhang@intel.com)

plugins/elements/gstqueue2.c

index 634debb..aff70e3 100755 (executable)
@@ -116,10 +116,10 @@ enum
 #define DEFAULT_USE_RATE_ESTIMATE  TRUE
 #ifdef GST_EXT_QUEUE_ENHANCEMENT
 #define DEFAULT_LOW_PERCENT        10.0
-#define DEFAULT_HIGH_PERCENT       99.0
+#define DEFAULT_HIGH_PERCENT       69.0
 #else
 #define DEFAULT_LOW_PERCENT        10
-#define DEFAULT_HIGH_PERCENT       99
+#define DEFAULT_HIGH_PERCENT       69
 #endif
 #define DEFAULT_TEMP_REMOVE        TRUE
 #ifdef GST_EXT_QUEUE_ENHANCEMENT
@@ -127,7 +127,7 @@ enum
 #endif
 #define DEFAULT_RING_BUFFER_MAX_SIZE 0
 #ifdef GST_EXT_QUEUE_ENHANCEMENT
-#define DEFAULT_FILE_BUFFER_MAX_SIZE (2 * 1024 * 1024)    /* 2 MB */
+#define DEFAULT_FILE_BUFFER_MAX_SIZE (5 * 1024 * 1024)    /* 5 MB */
 #endif
 
 enum