Commit Graph

42 Commits

Author SHA1 Message Date
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 2cdf160648 Configurable buffer for live TV 2014-05-18 15:24:24 +02:00
Frank Schmirler 54440cb080 Typo 2014-05-18 15:16:13 +02:00
Frank Schmirler c18f7d47e7 Disabled PS remuxer which is said to produce anything but PS 2013-11-17 11:20:42 +01:00
Frank Schmirler 1439b016b3 The patches intcamdevices and ignore_missing_cam are no longer required
on VDR >= 1.7.30. The localchannelprovide patch became obsolete with VDR
1.7.21.
2013-11-17 10:52:12 +01:00
Frank Schmirler f194ca2074 Added option to suspend live TV when the server starts (closes #1296) 2013-11-02 16:58:17 +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 525edc1ccf Implemented multi-device support for streamdev client (closes #1207) 2013-01-29 00:02:17 +01:00
Frank Schmirler 84db6323a6 Corrected typos (thanks to Ville Skyttä) 2012-06-28 17:17:59 +02:00
Frank Schmirler af48d11b18 Release 0.6.0 2012-05-29 12:07:54 +02:00
Frank Schmirler ab26b4770a Updated README, dropped obsolete patches. 2012-05-12 13:41:45 +02:00
Frank Schmirler 8719007f5a New special meaning "show current channel" when channel 0 is requested.
Applies to HTTP streaming only (thanks to Rolf Ahrenberg)
2012-04-21 22:47:36 +02: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 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 59c6558ce3 VDR 1.7.22 obsoletes cap_net_raw patch.
Added cap_net_raw patch for VDR 1.7.5 - 1.7.21.
2011-12-09 09:04:00 +01:00
Frank Schmirler afe255aa0b Added server menu with list of clients. Connections can be terminated
with the "red" key. The former main menu action of suspending live TV
moved to the "blue" key.

Squashed commit of the following:

commit 7175d7de91
Author: Frank Schmirler <vdr@schmirler.de>
Date:   Sun Nov 27 11:51:26 2011 +0100

    Updated README

commit 94aef85adc
Author: Frank Schmirler <vdr@schmirler.de>
Date:   Sun Nov 27 11:32:16 2011 +0100

    Moved "closing connection" log message to overload of cTBSocket::Close() in
    cServerConnection.

commit 9b91301d94
Author: Frank Schmirler <vdr@schmirler.de>
Date:   Fri Nov 25 00:24:37 2011 +0100

    Don't keep a pointer to the connection in components MulticastGroup
    structure as the connection may now be deleted from outside via menu.

commit 7347e24123
Author: Frank Schmirler <vdr@schmirler.de>
Date:   Thu Nov 24 23:45:59 2011 +0100

    Fixed missing Display() call after disconnecting a client.

commit c652e8fa81
Author: Frank Schmirler <vdr@schmirler.de>
Date:   Tue Nov 22 01:15:09 2011 +0100

    Added server menu with list of clients. Connections can be terminated
    with the "red" key. The former main menu action of suspending live TV
    moved to the "blue" key.
2011-11-28 16:23:57 +01:00
Frank Schmirler e0e14bb322 Added notice that sysctl commands for max number of IGMP groups has to be
issued before starting VDR.
2011-10-25 12:30:05 +02:00
Frank Schmirler ee7929bd39 Deleted obsolete section about static priority 2011-02-16 08:59:12 +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 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 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 1474cdf799 Fixed sysctl command 2009-09-04 13:19:39 +00:00
schmirl 78410ea576 Added IGMP multicast server
Modified Files:
	CONTRIBUTORS HISTORY Makefile README po/de_DE.po po/fi_FI.po
	po/fr_FR.po po/it_IT.po po/ru_RU.po server/component.c
	server/component.h server/connection.c server/connection.h
	server/livefilter.c server/server.c server/setup.c
	server/setup.h server/streamer.c server/streamer.h
	streamdev/streamdevhosts.conf tools/socket.c tools/socket.h
Added Files:
	patches/vdr-cap_net_raw.diff server/componentIGMP.c
	server/componentIGMP.h server/connectionIGMP.c
	server/connectionIGMP.h
2009-02-13 10:39:20 +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 86c82c1381 - added HTTP authentication (#475)
Modified Files:
	HISTORY README streamdev-server.c server/connection.h
	server/connectionHTTP.c server/connectionHTTP.h
	server/server.c server/server.h
2008-10-14 11:05:46 +00:00
schmirl 42474b8431 Added vdr-1.6.0-intcamdevices.patch (#429)
Modified Files:
	HISTORY README client/device.h
Added Files:
	patches/vdr-1.6.0-intcamdevices.patch
2008-10-02 07:14:47 +00:00
schmirl 34a62eb2ef - added gettext support (thanks to Rolf Ahrenberg)
- added vdr-1.6.0-ignore_missing_cam patch
- dropped obsolete respect_ca patch
- removed legacy code for < VDR 1.5.9 (thanks to Rolf Ahrenberg)
2008-04-08 14:18:15 +00:00
schmirl 9c60fb4e42 - changed location of streamdevhosts.conf to VDRCONFDIR/plugins/streamdev
- changed externremux.sh's default location to VDRCONFDIR/plugins/streamdev
- added sample externremux.sh from http://www.vdr-wiki.de/
- stop providing channels after client has been disabled at runtime
- added logging of the client device's card index
- changed default suspend mode to "Always suspended"
- added "Hide Mainmenu Entry" setup option on client
2008-04-07 14:50:32 +00:00
schmirl b66bf7a698 Rewrite of http menu (#439)
Including
- m3u playlists by Petri Hintukainen (#254)
- way to pass parameters to externremux by Rolf Ahrenberg
- using host header for absolute URLs for better DNAT / Reverse Proxy support
2008-03-28 15:11:40 +00:00
schmirl 79836e69a9 Updated 2008-03-28 08:01:24 +00:00
thomas 03a836a3ed Wieder mal ein Test 2006-08-07 16:24:27 +00:00
thomas c3ad1f33e1 *** empty log message *** 2006-08-06 20:30:06 +00:00
thomas afd3532893 Finaler Test neues CommitInfo System 2006-08-06 20:27:52 +00:00
thomas e30e52bbb5 Finaler Test Neues CommitInfo System 2006-08-06 20:25:39 +00:00
thomas 5fcfb46878 *** empty log message *** 2006-08-06 20:21:54 +00:00
thomas 6d8349a92b Nächster Test 2006-08-06 20:21:17 +00:00
thomas 62f1ebd554 Nochmal ein Test von CVSSpam 2006-08-06 20:19:54 +00:00
thomas e62ad3613d Test 2006-08-06 17:23:17 +00:00
thomas 453640ede4 CVS Test 2006-08-06 16:54:31 +00:00
lordjaxom 302fa2e672 Initial revision 2004-12-30 22:43:55 +00:00