Hello,
I am running a VDR-based video-recorder (http://www.linuxtv.org/vdrwiki/index.php/Main_Page).
Additionally 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).
Now since HDTV is operated by the major channels in Germany, I wanted my VDR to stream (via coherence) live to my TV-Set.
To 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.
Configuration is straight forward
<plugin active="yes">
<uuid>97186c7f-4897-4905-ab5a-bbaa89c8042d</uuid>
<streamdevURL>http://arctisserver2:3000/TS/</streamdevURL>
<name>VDR Streaming</name>
<backend>VDRStream</backend>
</plugin>
where streamdevURL is the URL of the port of the streamdev-Plugin.
The plugin required two changes in the upnp-Core:
- There is a problem with the proxyClientFactoryClass: Closing a stream by the DLNA renderer, was not properly propagated via the proxy to the server.
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.
This is part of a bugfix that might be considered to be included in the main branch.
- 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.
I'm unsure about the consequences for other devices. Perhaps somebody can help me.
One 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.
The attached patch is for Coherence-0.6.6.x.
Feedback is welcome!