id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
296	New Backend für VDR-Streaming	Wallenstein	dev	Hello,\r\n\r\nI am running a VDR-based video-recorder (http://www.linuxtv.org/vdrwiki/index.php/Main_Page).\r\n\r\nAdditionally I own a Sony Bravia KDL 40Wxxxx with DLNA support. Coherence was the best choice to bring the recordings of VDR onto the TV-Set (based on a slightly adapted fs_storage backend, adding some additional filetypes).\r\n\r\nNow since HDTV is operated by the major channels in Germany, I wanted my VDR to stream (via coherence) live to my TV-Set.\r\n\r\nTo this end I have developed a new backend called vdrstream that uses the data of the streamdev-server VDR plugin, to set up a channellist for DLNA, and streams MPEG-TS video streams from VDR to the TV set.\r\n\r\nConfiguration is straight forward\r\n\r\n{{{\r\n<plugin active="yes">\r\n  <uuid>97186c7f-4897-4905-ab5a-bbaa89c8042d</uuid>\r\n  <streamdevURL>http://arctisserver2:3000/TS/</streamdevURL>\r\n  <name>VDR Streaming</name>\r\n  <backend>VDRStream</backend>\r\n</plugin>\r\n}}}\r\nwhere streamdevURL is the URL of the port of the streamdev-Plugin.\r\n\r\nThe plugin required two changes in the upnp-Core:\r\n\r\n 1. There is a problem with the proxyClientFactoryClass: Closing a stream by the DLNA renderer, was not properly propagated via the proxy to the server.\r\n\r\n I have made the TCPconnector in upnp/core/utils.py  l. 418 now an explicit attribute of the proxy, in order to attach a listener, that closes the backend stream.\r\n\r\n This is part of a bugfix that might be considered to be included in the main branch.\r\n\r\n 2. The Sony Bravia does not accept MPEG_TS_PAL but rather MPEG_TS_SD_EU_ISO. I have therefore changed this type in upnp/core/DIDLLite.py.\r\n\r\n I'm unsure about the consequences for other devices. Perhaps somebody can help me.\r\n\r\nOne slight open problem is, that von HDTV-streams audio and video is not synchronized. (For standard TV streams it is OK). I have not yet found the reason for it.\r\n\r\nThe attached patch is for Coherence-0.6.6.x.\r\n\r\nFeedback is welcome!\r\n\r\n\r\n\r\n	enhancement	new	major	0.7	MediaServer Server	1.0		backend vdr	
