VDR Plugin

Discuss third-party additions, plugins and translations for PS3 Media Server

VDR Plugin

Postby ralf » Thu Jun 16, 2011 3:32 pm

In case anybody is interested: i have written a little PMS plugin for the VDR.

What it does:
It queries the VDR via Streamdev Plugin for its channels and adds the TV channels as direct TS links to PMS (= streaming is done directly from the VDR to the renderer), so that PMS is not bothered with re-encoding or even buffering.
The Radio channels are added as normal web audio links to the ES streams of the VDR/Streamdev (because they need to be re-encoded for the PS3).

I am using with my PS3 and it works quite OK. If there is enough interest i will post the binary and/or post the source on github.

[Edit 3. Dec. 11]
Here is the latest code: git@github.com:teddibaer/ps3mediaserver-vdr.git
Attached is the latest version, compiled for 1.50 (remember that you may have to rename it to .jar after downloading it).
Attachments
pms3-vdr.zip
(11.27 KiB) Downloaded 517 times
Last edited by ralf on Sat Dec 03, 2011 9:29 pm, edited 1 time in total.
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm

Re: VDR Plugin

Postby M3TeLL » Sat Jun 25, 2011 9:43 pm

I am very interested to test the plugin. ;-)
M3TeLL
 
Posts: 1
Joined: Sat Jun 25, 2011 9:21 pm

Re: VDR Plugin

Postby ralf » Fri Jul 01, 2011 9:44 pm

Hey - at least ONE is interested it seems :o

Here is the current binary. It needs to be renamed to .jar and placed into the plugins folder as usual.

Once PMS is started you need to configure the plugin with the host/port of your streamdev service using the options dialog in the plugin section of the PMS. Currently the channels are updated only when PMS is started or the options dialog is closed (whether there are changes or not).

There is a list of features i have in my mind for the plugin - but since my spare time is very limited it may take some time before i am able to implement any of this. Hope you like it the way it is right now anyway.

[Edit]
removed attached file - see first post
Last edited by ralf on Sat Dec 03, 2011 9:30 pm, edited 1 time in total.
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm

Re: VDR Plugin

Postby ralf » Wed Jul 13, 2011 9:35 pm

I have cleaned up and documented the source and release it here for anyone who is interested.

Have fun.


[Edit]
removed attached file - see first post
Last edited by ralf on Sat Dec 03, 2011 9:31 pm, edited 1 time in total.
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm

Re: VDR Plugin

Postby MaxWhite » Mon Aug 15, 2011 4:41 pm

Cool plugin!! Thanks a lot!

Just two problems I have found with it:

1. even with the configuration to my own server it is looking for "frodo". So I worked arround with an entry in the hosts file. I assume there is still some hard coded "frodo" somewhere.

2. String index out of range: -1 error:

Code: Select all
[Thread-12] INFO  17:06:43.582 Exception in thread "Thread-12" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[Thread-12] INFO  17:06:43.583    at java.lang.String.substring(Unknown Source)
[Thread-12] INFO  17:06:43.583    at net.pms.external.vdr.VDRChannel.getName(VDRChannel.java:54)
[Thread-12] INFO  17:06:43.584    at net.pms.external.vdr.VDRPlugin$UpdateThread.run(VDRPlugin.java:120)


From the debug log:

Code: Select all
[Thread-12] DEBUG 17:06:43.581 Adding 78. Beauty TV / class: net.pms.external.vdr.VDRStream
[Thread-12] DEBUG 17:06:43.582 read line: 250-79 JML Shop;BetaDigital:12148:hC34:S19.2E:27500:2303=2:2304=deu@3:0:0:514:133:7:0
[Thread-12] DEBUG 17:06:43.582 Adding 79. JML Shop / class: net.pms.external.vdr.VDRStream
[Thread-12] DEBUG 17:06:43.582 read line: 250-80 meinTVshop;BetaDigital:12480:vC34:S19.2E:27500:511=2:512=deu@3:0:0:899:133:33:0
[Thread-12] DEBUG 17:06:43.582 Adding 80. meinTVshop / class: net.pms.external.vdr.VDRStream
[Thread-12] DEBUG 17:06:43.582 read line: 250-81 viacombrandsolutions - Comedy Central:11973:vC34:S19.2E:27500:4071+8190=2:4072=fra@4:4074:D00,100,500,1811:28677:1:1101:0
[Thread-12] INFO  17:06:43.582 Exception in thread "Thread-12" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[Thread-12] INFO  17:06:43.583    at java.lang.String.substring(Unknown Source)
[Thread-12] INFO  17:06:43.583    at net.pms.external.vdr.VDRChannel.getName(VDRChannel.java:54)
[Thread-12] INFO  17:06:43.584    at net.pms.external.vdr.VDRPlugin$UpdateThread.run(VDRPlugin.java:120)


Any idea what is going wrong, here?

Ah - and btw. on feature request: It would be cool if you could add the capability for streaming "recordings", too ;-).
(I know how to do that with the network share method - but it would be better if that recodrings would show up in the same menu part as the VDR channels)
MaxWhite
 
Posts: 14
Joined: Mon Aug 15, 2011 4:24 pm

Re: VDR Plugin

Postby ralf » Thu Aug 18, 2011 9:21 pm

Hi,

i am happy it works for you. The attached updated should fix the 2 problems (thx for the bug report!).

The feature request of yours regarding recordings is one of the things i have in mind for quite some time already, but i am currently very busy with my work and family so i guess it will take some weeks until i will be able to do that.

Bye,
Ralf


[Edit]
removed attached file - see first post
Last edited by ralf on Sat Dec 03, 2011 9:31 pm, edited 1 time in total.
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm

Re: VDR Plugin

Postby ralf » Mon Aug 29, 2011 1:31 pm

Hi all,

i am sorry for the last version of the plugin that i put out late night in a hurry without much testing - therefor it only worked with my specific setup. :oops:
What really amazes me is that still nobody has complained even though there are 30+ downloads :?:

Anyhow - this is a new version of the plugin which should fix several bugs and also contains support for direct muxing of streamdev streams via the externalremux mechanism of the streamdev server. For more information on this please check the homepage of the streamdev plugin (http://projects.vdr-developer.org/proje ... -streamdev) and its source code.

This version also is able to list recordings - unfortunately streamdev does not support streaming of recordings directly yet. However - it might be possible to use the externalremux mechanism to let streamdev think it streams a tv program, but really stream a file from disk. I have done some tests in that direction but could not fully get it to work (the recorded movie started playing ok but froze after some seconds).
So - if anybody has some shell knowledge and time to tinker with it feel free to try to get it to work. I can send out my (non-working) remux/recorded-play script as a basis.

And one last thing - if you find any problem: PLEASE let me know. Of course you can also let me know if it just works for you.

Have fun,
Ralf


[Edit]
removed attached file - see first post
Last edited by ralf on Sat Dec 03, 2011 9:31 pm, edited 1 time in total.
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm

Re: VDR Plugin

Postby 0xf10 » Fri Oct 07, 2011 12:05 pm

Hi Ralf,

i run the plugin without problems so far, nice work. Are u still working on the plugin?
The base-functionality runs quite fine, but i have some ideas for additional features.

For example it should be possible to add additional epg-infos to the channel-name-listing using
SVDRP LSTE command.

Something like:
channel-name_current-show-name_start-time_stop-time..
(should be updated on directory-listing)

If you post the latest sources i also can try to implement this feature.

Thanks so far for the great work!
0xf10
 
Posts: 1
Joined: Fri Oct 07, 2011 11:40 am

Re: VDR Plugin

Postby ralf » Tue Oct 18, 2011 9:46 pm

Hi 0xf10, all,

i do not really have time to work on this right now so i have put the source on git@github.com:teddibaer/ps3mediaserver-vdr.git.
If anyone makes any enhancements please feed them back to me!

Bye,
Ralf
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm

Re: VDR Plugin

Postby ralf » Sun Dec 04, 2011 2:49 pm

Hi all,

i uploaded a new binary compiled for 1.5 (see first post).

Bye,
Ralf
ralf
 
Posts: 7
Joined: Thu Jun 16, 2011 3:17 pm


Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 6 guests