Linux-VDR Channel -> first alpha for testing

Rock'n'Roll :-)

works like a charme. ..

Hi Alex, 

I've made fork on your ver channel I've fixed some epg issues and adapted the channel for Samsung Smart TV

https://github.com/bmihovski/plex-vdr-live-samsung-tv-plugin.bundle

hi guys, great to read all this - i'm waiting to get my s2tuner card tomorrow and hope to get livetv on my PMS + XBMC (13) with Plexbmc Box running.

could you tellme if it's possible to pause livetv and have it timeshifted ?

can't wait to test :)

hi, i can watch tv on my pc with vlc player. i use this adress in the vlc player as a network stream: rtp://239.2.16.1:8208

is it possibile to use your plugin with plex to watch tv. which seetings i need for your plugin. i only can watch with: rtp://239.2.16.1:8208

hope you can help me

Hi Alex, 

I've made fork on your ver channel I've fixed some epg issues and adapted the channel for Samsung Smart TV

https://github.com/bmihovski/plex-vdr-live-samsung-tv-plugin.bundle

Hi there,

great - I should move it to github probably. I am playing around a bit with it the last days but nothings worth releasing...

Thanks for the info! Cheers

Alex

Is this still working ? I am trying this with 2.1.6 vdr on arch linux and plex keeps telling me channels is not responding

Hi triton,

yes for me it is ;-) .. you do need:

vdr-plugin-streamdev
vdr-plugin-restfulapi
 

in your archvdr installation though.

and must open the ports in streamdevhosts.conf if plex is not running on the same IP. If this doesn't help, please post the plex-plugin-logfile, it should contain an error that would help ...

Cheers

Alex

2015-01-08 12:46:48,035 (7f29bdffb700) :  CRITICAL (runtime:883) - Exception (most recent call last):
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 119, in call
    result = self.func(*args, **kwargs)
  File "/var/lib/plex/Plex Media Server/Plug-ins/VDR-Live.bundle/Contents/Code/__init__.py", line 71, in MainMenu
    namespaces=NAMESPACESGROUP)[item]
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
    _getitem_           = lambda x, y: x.__getitem__(y),
IndexError: list index out of range
 
2015-01-08 12:46:48,040 (7f29bdffb700) :  DEBUG (runtime:106) - Sending packed state data (104 bytes)
2015-01-08 12:46:48,041 (7f29bdffb700) :  DEBUG (runtime:918) - Response: [500] 959 bytes
2015-01-08 12:46:51,816 (7f29bdffb700) :  DEBUG (runtime:717) - Handling request GET /video/vdr
2015-01-08 12:46:51,822 (7f29bdffb700) :  DEBUG (runtime:814) - Found route matching /video/vdr
2015-01-08 12:46:51,825 (7f29bdffb700) :  DEBUG (networking:172) - Requesting 'http://192.168.0.7:8002/channels/groups.xml'
2015-01-08 12:46:51,839 (7f29bdffb700) :  INFO (__init__:58) - Loading VDR GroupsList via restfulapi-plugin at Port 8002
2015-01-08 12:46:51,843 (7f29bdffb700) :  CRITICAL (runtime:883) - Exception (most recent call last):
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 119, in call
    result = self.func(*args, **kwargs)
  File "/var/lib/plex/Plex Media Server/Plug-ins/VDR-Live.bundle/Contents/Code/__init__.py", line 71, in MainMenu
    namespaces=NAMESPACESGROUP)[item]
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
    _getitem_           = lambda x, y: x.__getitem__(y),
IndexError: list index out of range
 
2015-01-08 12:46:51,847 (7f29bdffb700) :  DEBUG (runtime:106) - Sending packed state data (104 bytes)
2015-01-08 12:46:51,848 (7f29bdffb700) :  DEBUG (runtime:918) - Response: [500] 959 bytes
2015-01-08 12:46:48,040 (7f29bdffb700) :  DEBUG (runtime:106) - Sending packed state data (104 bytes)
2015-01-08 12:46:48,041 (7f29bdffb700) :  DEBUG (runtime:918) - Response: [500] 959 bytes
2015-01-08 12:46:51,816 (7f29bdffb700) :  DEBUG (runtime:717) - Handling request GET /video/vdr
2015-01-08 12:46:51,822 (7f29bdffb700) :  DEBUG (runtime:814) - Found route matching /video/vdr
2015-01-08 12:46:51,825 (7f29bdffb700) :  DEBUG (networking:172) - Requesting 'http://192.168.0.7:8002/channels/groups.xml'
2015-01-08 12:46:51,839 (7f29bdffb700) :  INFO (__init__:58) - Loading VDR GroupsList via restfulapi-plugin at Port 8002
2015-01-08 12:46:51,843 (7f29bdffb700) :  CRITICAL (runtime:883) - Exception (most recent call last):
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 119, in call
    result = self.func(*args, **kwargs)
  File "/var/lib/plex/Plex Media Server/Plug-ins/VDR-Live.bundle/Contents/Code/__init__.py", line 71, in MainMenu
    namespaces=NAMESPACESGROUP)[item]
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
    _getitem_           = lambda x, y: x.__getitem__(y),
IndexError: list index out of range
 
2015-01-08 12:46:51,847 (7f29bdffb700) :  DEBUG (runtime:106) - Sending packed state data (104 bytes)
2015-01-08 12:46:51,848 (7f29bdffb700) :  DEBUG (runtime:918) - Response: [500] 959 bytes
2015-01-08 12:46:48,040 (7f29bdffb700) :  DEBUG (runtime:106) - Sending packed state data (104 bytes)
2015-01-08 12:46:48,041 (7f29bdffb700) :  DEBUG (runtime:918) - Response: [500] 959 bytes
2015-01-08 12:46:51,816 (7f29bdffb700) :  DEBUG (runtime:717) - Handling request GET /video/vdr
2015-01-08 12:46:51,822 (7f29bdffb700) :  DEBUG (runtime:814) - Found route matching /video/vdr
2015-01-08 12:46:51,825 (7f29bdffb700) :  DEBUG (networking:172) - Requesting 'http://192.168.0.7:8002/channels/groups.xml'
2015-01-08 12:46:51,839 (7f29bdffb700) :  INFO (__init__:58) - Loading VDR GroupsList via restfulapi-plugin at Port 8002
2015-01-08 12:46:51,843 (7f29bdffb700) :  CRITICAL (runtime:883) - Exception (most recent call last):
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 119, in call
    result = self.func(*args, **kwargs)
  File "/var/lib/plex/Plex Media Server/Plug-ins/VDR-Live.bundle/Contents/Code/__init__.py", line 71, in MainMenu
    namespaces=NAMESPACESGROUP)[item]
  File "/var/lib/plex/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
    _getitem_           = lambda x, y: x.__getitem__(y),
IndexError: list index out of range
 
2015-01-08 12:46:51,847 (7f29bdffb700) :  DEBUG (runtime:106) - Sending packed state data (104 bytes)
2015-01-08 12:46:51,848 (7f29bdffb700) :  DEBUG (runtime:918) - Response: [500] 959 bytes
 
 
 

ah ... there was one error I never had, but others reported in the vdrportal.

Do you have channel groups in vdr ? Meaning, a channels.conf line that starts with a ":" ?

Like this:

:Hauptprogramme
Das Erste HD;ARD:418000:C0M256:C:6900:6010=27:6020=deu@3,6021=mis@3;6022=deu@106:6030;6031=deu:0:11100:41985:1051:0
ZDF HD;ZDFvision:394000:C0M256:C:6900:6110=27:6120=deu@3,6121=mis@3,6123=mul@3;6122=deu@106:6130;6131=deu:0:11110:102:1079:0
arte HD;ARD:113000:C0M256:C:6900:513=27:514=deu@3,515=fra@3:518;1521=fra,1522=deu:0:17113:9999:121:0
3sat;ZDFvision:394000:C0M256:C:6900:210=2:220=deu@3,221=mis@3,222=mul@3;225=deu@106:230;231=deu:0:28007:102:1079:0
RTL Television,RTL;UMKBW:442000:C0M256:C:6900:523=2:524=deu@3;525=deu@106:528;1551=deu:0:12101:9999:161:0
RTL2;UMKBW:442000:C0M256:C:6900:563=2:564=deu@3:568;1671=deu:0:12105:9999:161:0
ProSieben;UMKBW:442000:C0M256:C:6900:543=2:544=deu@3;545=deu@106:548:0:12103:9999:161:0
SAT.1;UMKBW:442000:C0M256:C:6900:533=2:534=deu@3;536=deu@106:538:0:12102:9999:161:0
VOX;UMKBW:442000:C0M256:C:6900:553=2:554=deu@3:558;1641=deu:0:12104:9999:161:0
kabel eins;UMKBW:442000:C0M256:C:6900:573=2:574=deu@3:578:0:12106:9999:161:0
Disney SD;UMKBW:450000:C0M256:C:6900:513=2:514=deu@3;516=deu@106:518:0:11102:9999:191:0
SIXX;UMKBW:442000:C0M256:C:6900:623=2:624=deu@3:628:0:20116:9999:161:0
Tele 5;UMKBW:450000:C0M256:C:6900:733=2:734=deu@3:738:0:12111:9999:191:0
:Sky Movie
Sky Cinema HD,Cinema HD;SKY:354000:C0M256:C:6900:1279=27:0;1283=deu@106,1284=eng@106:32:1850,1835,1838,1831,98E:131:133:6:0
Sky Cinema +1,Cinema1;SKY:370000:C0M256:C:6900:1791=2:1792=deu@3,1793=eng@3;1795=deu@106:32:1850,1722,1835,1838,1831,98E:11:133:2:0
Sky Cinema +24,Cinema24;SKY:370000:C0M256:C:6900:2303=2:2304=deu@3,2305=eng@3;2307=deu@106:32:1850,1722,1835,1838,1831,98E:43:133:2:0
Sky Atlantic HD,AtlanticHD;SKY:698000:C0M256:C:6900:1279=27:0;1283=deu@106,1284=eng@106:32:1850,1835,1838,1831,98E:110:133:13:0
Sky Hits HD,SkyHitsHD;SKY:706000:C0M256:C:6900:767=27:0;771=deu@106,772=eng@106:32:1850,1835,1838,1831,98E:107:133:12:0
Sky Emotion,Emotion;SKY:370000:C0M256:C:6900:2815=2:2816=deu@3;2819=deu@106:32:1850,1722,1835,1838,1831,98E:20:133:2:0
Sky Action HD,ActionHD;SKY:698000:C0M256:C:6900:767=27:0;771=deu@106,772=eng@106:32:1850,1835,1838,1831,98E:116:133:13:0
Sky Comedy,Comedy;SKY:370000:C0M256:C:6900:2559=2:2560=deu@3,2561=eng@3;2563=deu@106:32:1850,1722,1835,1838,1831,98E:8:133:2:0
Sky Krimi,Krimi;SKY:378000:C0M256:C:6900:1791=2:1792=deu@3:32:1850,1722,1835,1838,1831,98E:23:133:4:0

Where the :Hauptprogramm starts a group. The API-Call is relying on those groups to build a menu structure.... the error "out of bound" looks like somehting like this to me.

Cheers

Alex

Well I have ":@ for each channel number so I guess this is causing issues. is there a way to have plugin ignore :@

Well my channels.conf look like this
:@2
KWGN-DT;(null):593000:M10:A:0:49=2:52=eng@4,53=spa@4;52=@106,53=@106:0:0:3:0:455:0
:@4
KCNC-TV;(null):599000:M10:A:0:49=2:52=eng@4,53=spa@4;52=@106,53=@106:0:0:1:0:457:0
:@7
KMGH News;(null):491000:M10:A:0:97=2:100=eng@4:0:0:6:0:0:0
:@9
KUSA-DT;(null):189000:M10:A:0:49=2:52=eng@4,53=spa@4;52=@106,53=@106:0:0:1:0:463:0
:@10
9News N;(null):189000:M10:A:0:65=2:68=eng@4;68=@106:0:0:2:0:463:0
:@11
KMGH Digital Television;(null):491000:M10:A:0:49=2:52=eng@4,53=spa@4:0:0:3:0:0:0
:@14
KTFD-DT;(null):479000:M10:A:0:49=2:0:0:0:1:0:443:0
:@15
KTFD 14.2 Bounce;(null):479000:M10:A:0:65=2:0:0:0:2:0:443:0
:@16
KTFD-DT;(null):479000:M10:A:0:81=2:0:0:0:3:0:443:0
:@17
14-4 KTFD-DT;(null):479000:M10:A:0:97=2:0;100=eng@106:0:0:4:0:443:0
:@18
Azteca America Colorado;(null):491000:M10:A:0:65=2:68=spa@4:0:0:4:0:0:0
:@20
KTVD-DT;(null):503000:M10:A:0:49=2:0;52=eng@106,53=esl@106:0:0:3:0:465:0
:@22
MeTV;(null):503000:M10:A:0:65=2:0;68=eng@106:0:0:4:0:465:0
:@23
V-Me;(null):497000:M10:A:0:65=2:68=spa@4,69=fre@4;68=@106,69=@106:0:0:2:0:459:0
:@24
Create;(null):497000:M10:A:0:81=2:84=eng@4;84=@106:0:0:3:0:459:0
:@25
COZI   ;(null):563000:M10:A:0:81=2:84=eng@4;84=@106:0:0:5:0:491:0
:@26
THISTV ;(null):593000:M10:A:0:65=2:68=eng@4;68=@106:0:0:4:0:455:0
:@27
Antenna;(null):581000:M10:A:0:65=2:68=eng@4;68=@106:0:0:4:0:467:0
:@40
KRMT;(null):629000:M10:A:0:49=2:52=@4,53=@4;52=@106,53=@106:0:0:3:0:469:0

Hm ... I am currently not able to look into that unfortunately. My Python skills are really limited and since I posted this plugin I haven't touched it again ;-)

I will have some days off in Feb and put a reminder in. guess one could strip out the @ with a RegExp and then the rest should work again.

Cheers

Alex

Hi,

I've done a quick update to remove the '@'. I've not got VDR installed so I cant test it

https://github.com/greeeny101/plex-vdr-live-samsung-tv-plugin.bundle

I have the same problem, i have channel groups and using latest git still doesn't show any channels!

thanks

joe

Bumping up this thread, perhaps somebody can help me. I played with this plugin at night, and I managed to install the plugin, it starts, but when I click the channel group, no channels are showing up. Don’t see anything in logs, but maybe.
I’m running a home server with Ubuntu Server 14 LTS, with VDR latest and plugins latest compiled from git (vdr, streamdev, restfulapi, etc), on VDR side it is working fine. Plex is also updated to latest release.

Here are the logs, maybe help: Link

Would be great to have this tested and to try out!

Hi,

I am travelling right now with now access to my home environment, and no docker enabled hardware around, so I can not check that … The only thing I spot in the log that is really different to what I remember from my own setup at home - do you have “[ ]” around in the name of the channelgroup?

I assume that this might cause my lame parsing code to break, that is the only Idea I have right now …

Maybe you could export the first 2-3 channelgroups from the channels.conf file of vdr to pastebin?

Other but that - I will be on vacation as of the weekend, and be back begin of September with a couple of days time to work on my private projects, so then I can take a look at code aswell.

Cheers
Alex

Hi Alex,

thanks for following up on this!

I looked at the code and what I did is to change the following line:

from
SINGLEGROUP_URL = ‘http://%s:%s/channels.xml?group=%s’

to
SINGLEGROUP_URL = ‘http://%s:%s/channels.xml?groups=%s’

As I have checked in browser, restfulapi needs groups instead of group, once I changed this, it did import channels, but oddly, not all of them, just a few. Couldn’t find out on what basis, but only imported around 10 channels, and I couldn’t start playing them at all.

The name of my channel group is:

:[S0.8W] Name

Here is the pastebin of the channels.conf few channels. LInk

Thank you for looking into this, it would be great to have this working!

EDIT: now the channels that are loaded are playing fine in browser, but looking at the logs, there is some sort of error with importing the EPG data for certain channels, at least it looks to me like. Is there a way to disable importing of EPG data, or to make the plugin able to import channels even if no epg data is present? The epg data is there, I can see it in Kodi.

Plugin log2

EDIT2: I updated to the [“Samsung”](https://github.com/Jondalar/plex-vdr-live.bundle ““Samsung””) version of the plugin, there I also had to change the following to get channels loaded at all:

SINGLEGROUP_URL = ‘http://%s:%s/channels.xml?group=%s’

to

SINGLEGROUP_URL = ‘http://%s:%s/channels.xml?groups=%s’

And now most of my channels are loaded, some of them are missing. Maybe the channels that are missing are the ones where no EPG is available. It would be great if the plugin could be modified to load channels where no EPG is available too.

Hi,

after a test with my groups names, I guess the spaces are the issue … I will look at this after vacation, the ’ ’ needs to be replaces by a ‘%20’ so the html call to the RestAPI works properly, you can play with the URL in a browser and see that happen.

The SINGLEGROUP_URL calls the RestfulAPI plugin to retrieve the Info on just one channelgroup.

That it works for you with our change is unexpected result/output from the RestfulAPI plugin and probably a fallback/safety response instead of sending an error… but the guys in the vdrportal will know.

Once I have had the time to look at this (maybe even from hotel by using my iPad, if it bugs me too much) I will push a new version to github and post an update here.

I would have found this, if I ever used a ’ ’ in my groups in my channel.conf at home :wink: If you find that yourself (in the init.py is some characted replacement code as far as I remember), it would be nice to drop a note to me.

Rgds,
Alex

Hi,

I tested this and got it working after a few tweaks.

Is there any chance to get DVB Subtitles working, and also any way to select audio channel? This seems like a Plex limitation. It would be easy to burn subtitles during transcoding, or just pass through the stream if direct play is used. But it seems that there is no way to tell Plex about this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.