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:
Klaus Schmidinger 2012-09-22 11:55:26 +02:00
parent 72c03260d7
commit 7cdfca45f4
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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).

View File

@ -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;
}

View File

@ -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: