Commit Graph

91 Commits

Author SHA1 Message Date
Frank Schmirler d66c635a80 client compatibility with VDR 2.3.1 (refs #2243) 2015-10-05 01:02:13 +02:00
Frank Schmirler 84c6f6b6f3 doubled size of client's filter buffer (fixes #2045) 2015-01-24 00:55:39 +01:00
Frank Schmirler b33d2631df Fixed problems related to VTP filter streaming like ringbuffer overflows,
stuttering or aborting video stream (refs #2045)

Toerless Eckert wrote:

This patch tries to resolve problems in streamdev-client that
can occur when enabling "StreamFilters". Enabling this option
is necessary to receive certain programs with dynamic PIDs such as
some german "regional" broadcast (eg: NDR).

Problem:

Without this fix, the following behavior was observed on a Raspberry
PI running streamdev-0.6.1-git with VDR-2.6.1:

- Buffer overflows of filter data
- Stop/go video on channels
- Total stopping of video

More logs in:

http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/125237-
streamdev-client-filter-daten-streamen-ndr-raspberry-haengt/

Analysis:

VDR expect section data from filters separately from the
main program stream. Historically, it received each filter data
via a separate file descriptor from the DVB card. In the streamdev-client
module, a socketpair is used to feed filter data to the main VDR code.
During certain operations in VDR, such as startup or channel change
(depending also on the speed of initialization of the video output driver),
VDR does not consume the filter data as fast as it is provided by
streamdev-client, resulting in overflow of the default socket buffers
used by streamdev-client.

To add to the problem of overflowing the socketpair buffers, the
streamdev-client code sends several times a second short packets into
the socketpair to determine if the receiving side (VDR) has closed
the socketpair (IsClosed(), CarbageCollect()). This further clogs
up the socketpair() buffer.

The raspberry PI socketpair buffering behavior seems to be the same
as that of other 3.x linux systems, the socket buffer size is by
default 163840, and it can be increased via sysctl net.core.wmem_max.
During startup, it can take up to 10 seconds before VDR will consume
filter data, so the socketpair buffer can fill up with 10 seconds worth
of data.

Solution

1. IsClosed()/CarbageCollect() where removed from client/filter.c
and replaced by explicitly tracking when VDR closes a filter socket.
This alone seems to already resolve the problem of hanging or stop&go
video and seems to be sufficient to receive dynamic-PID channels reliably.

2. filter.c was enhanced to request a larger socket buffer size
if config option FilterSockBufSize is set.

3. If supported (if streamdev-client runs on linux), the socketpair
queue is "flushed" to reduce the amount of "random" packet drop messages
and to rather drop sequential messages.
2015-01-24 00:19:04 +01:00
Frank Schmirler 657c8bc49c Added Polish translation (closes #2038) 2014-12-23 12:40:13 +01:00
Frank Schmirler 7b17f7725c Implemented GetCurrentlyTunedTransponder() on client (closes #2010) 2014-11-20 14:21:44 +01:00
Frank Schmirler 5fcd6eca69 Updated Slovak translation (closes #1626) 2013-11-25 12:44:22 +01:00
Frank Schmirler a4a774c6ce Updated Finnish translation (thanks to Rolf Ahrenberg) 2013-11-25 12:40:30 +01:00
Frank Schmirler 458a21a62a Fixed channel switch issues with priority > 0 2013-10-30 21:18:56 +01:00
Frank Schmirler 69b654d539 Removed noisy debug messages 2013-10-21 22:21:12 +02:00
Frank Schmirler a9c2adb565 Fixed priority handling, messed up when adding multi-device support 2013-10-19 01:22:45 +02:00
Frank Schmirler 329129d9c1 Updated Slovak translation (closes #1293) 2013-03-19 12:08:01 +01:00
Frank Schmirler 08198729ac Adapted Makefiles to VDR 1.7.36+ (thanks to macmenot). Old makefiles have
been renamed to Makefile-1.7.33 (fixes #1199)
2013-02-27 13:11:23 +01:00
Frank Schmirler 10db11acd9 API changes of VDR 1.7.38 (thanks to mal@vdr-developer) 2013-02-18 12:43:02 +01:00
Frank Schmirler 525edc1ccf Implemented multi-device support for streamdev client (closes #1207) 2013-01-29 00:02:17 +01:00
Frank Schmirler 281105f0c7 Fixed compiler error in client/device.c with VDR < 1.7.22 (reported by Uwe@vdrportal) 2012-06-22 08:54:47 +02:00
Frank Schmirler 80e40d4260 Updated Italian translation (thanks to Diego Pierotto) 2012-06-13 08:55:33 +02:00
Frank Schmirler 5cfa16c402 Added DeviceName() and DeviceType() to client device. The server IP and the
number of the device used on the server are returned respectively.
2012-06-07 19:23:14 +02:00
Frank Schmirler 744dc6792c Reimplemented some client device methods 2012-05-29 01:25:47 +02:00
Frank Schmirler 16f8c75918 Dropped m_UpdatePriority 2012-05-27 01:31:45 +02:00
Frank Schmirler fffd5aef4f Proper fix for "client sends ABRT after TUNE". Obsoletes many hacks in client 2012-05-21 00:42:08 +02:00
Frank Schmirler 2e8aefd2fe Added streamdev-client support for upcoming streamdev-server versions
with purely priority driven precedence.
2012-04-21 22:28:58 +02:00
Frank Schmirler 173d2cbb7a Fixed ProvidesChannel() on client always returning true since the new timeout
option has been added.
2012-03-10 23:28:53 +01:00
Frank Schmirler 83b05a6292 Updated Finnish translation (thanks to Rolf Ahrenberg) 2012-03-06 15:27:12 +01:00
Frank Schmirler a63f7247cb With VDR 1.7.25 priorities down to -99 will be used 2012-03-04 01:20:57 +01:00
Frank Schmirler 26af4459d8 Use the new streamdev-client setup option "Live TV Priority" to control
precedence among multiple clients. The VDR option "Primary Limit" which
has previouly been used for this purpose has been dropped in VDR 1.7.25.
2012-03-04 01:15:40 +01:00
Frank Schmirler 3da6ae734e Timout for network operations now configurable in streamdev-client setup 2012-03-03 23:39:30 +01:00
Frank Schmirler 229e8fbfff Update of po headers and Finnish translation (thanks to Rolf Ahrenberg) 2011-12-13 12:59:31 +01:00
Frank Schmirler ba7c61fb39 Support for non-cycle-free setups (e.g. where two VDRs mutually share
their DVB cards through streamdev-client/-server).
Must be enabled in streamdev-server setup. Obsoletes recursion patches.
2011-12-11 17:03:09 +01:00
Frank Schmirler 6a971b9145 Added missing phrase 2011-12-11 11:35:12 +01:00
Frank Schmirler 3440072e7e API change of VDR 1.7.22 2011-12-09 09:05:09 +01:00
Frank Schmirler d93ca82bd1 Update and UTF-8 conversion of Finnish po files (thanks to Rolf Ahrenberg) 2011-12-08 13:11:43 +01:00
Frank Schmirler 2fae067cfe streamdev-client returns true in its AvoidRecording() method 2011-09-10 00:08:04 +02:00
Frank Schmirler 2c8377d42a added support for VDR 1.7.19 SignalStrength/SignalQuality 2011-07-06 09:13:50 +02:00
Frank Schmirler f6299b4584 fixed missing #ifdefs for new NumProvidedSystems setup option 2011-05-16 08:46:17 +02:00
Frank Schmirler 17bb6390f9 Merge branch 'master' of projects.vdr-developer.org:vdr-plugin-streamdev
Conflicts:
	HISTORY
2011-03-18 15:56:34 +01:00
Frank Schmirler 58a4f3dbe5 Added Spanish translation 2011-03-18 15:52:42 +01:00
Frank Schmirler 2cb0ba6cf1 Dropped compatibility with VDR < 1.5.16 2011-03-07 22:05:36 +01:00
Frank Schmirler dc41eecffd return value of streamdev-clients cDevice::NumProvidedSystems() now
configurable in plugin setup (fixes #552)
2011-02-16 08:57:05 +01:00
Frank Schmirler 0783799826 increased client side timeout for TUNE command 2011-01-27 16:15:25 +01:00
Frank Schmirler 6ea5efe939 Snapshot 2010-09-15 2011-03-22 21:16:18 +02:00
schmirl ebacf759ab dropped "Synchronize EPG" feature
Modified Files:
	HISTORY README streamdev-client.c streamdev-client.h
	client/device.c client/setup.c client/setup.h client/socket.c
	client/socket.h po/de_DE.po po/fi_FI.po po/fr_FR.po
	po/it_IT.po po/lt_LT.po po/ru_RU.po po/sk_SK.po
2010-06-08 05:55:16 +00:00
schmirl dd7cc838ad switching between two encrypted channels on the same transponder didn't
always work (thanks to sk8ter@vdrportal)
2010-02-17 12:39:02 +00:00
schmirl e99ea00348 fixed regression from fix for switching between encrypted channels. It was
no longer possible to receive multiple (FTA) streams from the same
transponder
2009-10-19 06:19:10 +00:00
schmirl 1cf41fb16f - cleaned up common.h / common.c
- dropped cStreamdevMenuSetupPage
2009-09-18 10:41:41 +00:00
schmirl 44a71ffe8a added cDevice::NumProvidedSystems() which was introduced in VDR 1.7.0
Modified Files:
	HISTORY client/device.h
2009-06-23 10:26:54 +00:00
schmirl 64ff2c08be Added missing call to StopSectionHandler().
This method was introduced in VDR 1.5.15. Its absence could cause crashes
when shutting down VDR
2009-04-06 06:48:59 +00:00
schmirl 3d16ba0840 added comments to indicate that the VTP filter stream is proprietary format
Modified Files:
	client/filter.c server/livefilter.c
2009-02-13 13:02:39 +00:00
schmirl 37f2adf02b Fixed parsing Min/MaxPriority from config 2009-02-03 10:26:21 +00:00
schmirl 0e0b4b587d Added min/max priority (#508)
Modified Files:
	HISTORY README client/device.c client/setup.c client/setup.h
	po/de_DE.po po/fi_FI.po po/fr_FR.po po/it_IT.po po/ru_RU.po
2009-01-29 07:48:58 +00:00
schmirl 30aa3b0610 Problem when switching between encrypted channels still exists if CA id
is set to FTA or streamdev device. Disabled transponder check.
2009-01-14 07:35:51 +00:00