mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Increased the size of the TS buffer to 5MB and that of the Recorder buffer to 20MB to better handle HD recordings
This commit is contained in:
		@@ -2893,6 +2893,8 @@ Torsten Lang <info@torstenlang.de>
 | 
			
		||||
 thread is running
 | 
			
		||||
 for suggesting to allow I/O intense threads to temporarily suspend their activities
 | 
			
		||||
 in case buffers run full
 | 
			
		||||
 for suggesting to increase the size of the TS buffer to 5MB and that of the Recorder
 | 
			
		||||
 buffer to 20MB to better handle HD recordings
 | 
			
		||||
 | 
			
		||||
Christian Ruppert <idl0r@gentoo.org>
 | 
			
		||||
 for some improvements to the Makefiles
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							@@ -7256,3 +7256,5 @@ Video Disk Recorder Revision History
 | 
			
		||||
  Currently the cutter thread is suspended if the TS or Recorder buffer use more
 | 
			
		||||
  than 50% of their capacity. Plugin authors may want to participate in this
 | 
			
		||||
  mechanism if they use intense background I/O.
 | 
			
		||||
- Increased the size of the TS buffer to 5MB and that of the Recorder buffer to
 | 
			
		||||
  20MB to better handle HD recordings (suggested by Torsten Lang).
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@
 | 
			
		||||
 * See the main source file 'vdr.c' for copyright information and
 | 
			
		||||
 * how to reach the author.
 | 
			
		||||
 *
 | 
			
		||||
 * $Id: dvbdevice.c 2.71 2012/05/09 08:33:59 kls Exp $
 | 
			
		||||
 * $Id: dvbdevice.c 2.72 2012/09/22 11:53:57 kls Exp $
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "dvbdevice.h"
 | 
			
		||||
@@ -1540,7 +1540,7 @@ bool cDvbDevice::OpenDvr(void)
 | 
			
		||||
  CloseDvr();
 | 
			
		||||
  fd_dvr = DvbOpen(DEV_DVB_DVR, adapter, frontend, O_RDONLY | O_NONBLOCK, true);
 | 
			
		||||
  if (fd_dvr >= 0)
 | 
			
		||||
     tsBuffer = new cTSBuffer(fd_dvr, MEGABYTE(2), CardIndex() + 1);
 | 
			
		||||
     tsBuffer = new cTSBuffer(fd_dvr, MEGABYTE(5), CardIndex() + 1);
 | 
			
		||||
  return fd_dvr >= 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,13 +4,13 @@
 | 
			
		||||
 * See the main source file 'vdr.c' for copyright information and
 | 
			
		||||
 * how to reach the author.
 | 
			
		||||
 *
 | 
			
		||||
 * $Id: recorder.c 2.16 2012/09/22 11:52:33 kls Exp $
 | 
			
		||||
 * $Id: recorder.c 2.17 2012/09/22 11:53:57 kls Exp $
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "recorder.h"
 | 
			
		||||
#include "shutdown.h"
 | 
			
		||||
 | 
			
		||||
#define RECORDERBUFSIZE  (MEGABYTE(5) / TS_SIZE * TS_SIZE) // multiple of TS_SIZE
 | 
			
		||||
#define RECORDERBUFSIZE  (MEGABYTE(20) / TS_SIZE * TS_SIZE) // multiple of TS_SIZE
 | 
			
		||||
 | 
			
		||||
// The maximum time we wait before assuming that a recorded video data stream
 | 
			
		||||
// is broken:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user