VNSI & multiple tuners
#1
Should VNSI server support multiple tuners ?
I have a server running VDR with 2 USB DVB-T tuners. VDR sees them both and with VDR I can record a program from one mux and watch live tv belonging to another mux.
However when I use Kodi, it seems only one tuner is used; If a watch love tv (or have a record running) other clients can only enable live tv for channels that belong to the same mux.
This is what comes up in the kodi.log

22:29:26 T:123145305063424 ERROR: AddOnLog: VDR VNSI Client: ReadSuccess - failed with error code '997'
22:29:26 T:123145305063424 ERROR: AddOnLog: VDR VNSI Client: SwitchChannel - failed to set channel
22:29:26 T:123145305063424 ERROR: PVR - SwitchChannel - cannot switch to channel 'AlfaTV' on client '2631'
22:29:26 T:123145305063424 ERROR: PVRManager - PerformChannelSwitch - failed to switch to channel 'AlfaTV'
22:29:26 T:123145305063424 WARNING: HandleMessages - failed to switch channel. playback stopped

Does the vnsi server component write log somewhere that I could check?
Are there any VDR or VNSI setting that could have an effect?

I'm running
vdr:amd64/trusty 2.2.0-6yavdr0~trusty
vdr-plugin-vnsiserver:amd64/trusty 1:1.2.1~git20150926-e994084-0yavdr0~trusty
and Kodi 15.2, but that does not seem to matter, as the same applies to client running kodi 14 just as well.
Reply
#2
vdr writes log to syslog. set log level of vdr to 3 (startup scripts), then please patebin the log.
Reply
#3
I am having the same issue here. With the exactly same config.
I am recording on RTLNitro and wanted to Watch ARD simultaneously.
With streamdev I can switch to any channel I want while recording on another.
yaVDR log on level3 by default. I did not change that.

Kodi Log:
13:07:32 T:3956 NOTICE: EPG::CEpgContainer::Start - EPG thread started
13:07:32 T:444 NOTICE: Thread EPGUpdater start, auto delete: false
13:07:38 T:1500 NOTICE: DVDPlayer: Opening: pvr://channels/tv/Alle Kanäle/pvr.vdr.vnsi_1640430212.pvr
13:07:38 T:1500 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
13:07:38 T:3200 NOTICE: Thread DVDPlayer start, auto delete: false
13:07:38 T:3200 NOTICE: Creating InputStream
13:07:38 T:3200 NOTICE: AddOnLog: VDR VNSI Client: Logged in at '1445774858+3600' to 'VDR-Network-Streaming-Interface (VNSI) Server' Version: '1.3.1' with protocol version '8'
13:07:38 T:3200 ERROR: AddOnLog: VDR VNSI Client: cVNSISession::ReadSuccess - failed with error code '997'
13:07:38 T:3200 ERROR: AddOnLog: VDR VNSI Client: cVNSIDemux::SwitchChannel - failed to set channel
13:07:38 T:3200 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/Alle Kanäle/pvr.vdr.vnsi_1640430212.pvr]
13:07:38 T:3200 NOTICE: CDVDPlayer::OnExit()
13:07:38 T:1500 NOTICE: CDVDPlayer::CloseFile()
13:07:38 T:1500 NOTICE: DVDPlayer: waiting for threads to exit
13:07:38 T:1500 NOTICE: DVDPlayer: finished waiting
13:07:38 T:1500 NOTICE: CDVDPlayer::CloseFile()
13:07:38 T:1500 NOTICE: DVDPlayer: waiting for threads to exit
13:07:38 T:1500 NOTICE: DVDPlayer: finished waiting

yavdr Log
Oct 25 13:06:15 Microserver vdr: [1439] timer 1 (32 1253-1330 'Eine schrecklich nette Familie') set to event So. 25.10.2015 12:55-13:20 'Eine schrecklich nette Familie'
Oct 25 13:06:15 Microserver vdr: [1439] timer 1 (32 1318-1350 'Eine schrecklich nette Familie') set to event So. 25.10.2015 13:20-13:40 'Eine schrecklich nette Familie'
Oct 25 13:07:27 Microserver vdr: [1430] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Oct 25 13:07:27 Microserver vdr: [1430] VNSI: Client with ID 39 connected: 192.168.1.23:57617
Oct 25 13:07:27 Microserver vdr: [2749] VNSI: Welcome client 'XBMC Media Center' with protocol version '8'
Oct 25 13:07:27 Microserver vdr: [1442] VNSI: Timers state changed (23)
Oct 25 13:07:27 Microserver vdr: [1442] VNSI: Requesting clients to reload timers
Oct 25 13:07:27 Microserver vdr: [1442] VNSI: Trigger EPG update for channel Comedy Central/VIVA, id: 1411672839
Oct 25 13:07:27 Microserver vdr: [1442] VNSI: Trigger EPG update for channel Nickelodeon, id: 987747069
-> LOTS OF EPG UPDATE TRIGGERS FOLLOGING ...

Oct 25 13:07:38 Microserver vdr: [1430] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Oct 25 13:07:38 Microserver vdr: [1430] VNSI: Client with ID 40 connected: 192.168.1.23:57750
Oct 25 13:07:38 Microserver vdr: [2750] VNSI: Welcome client 'XBMC Media Center' with protocol version '8'
Oct 25 13:07:38 Microserver vdr: [2750] VNSI: LiveStreamer::Close - close
Oct 25 13:07:38 Microserver vdr: [2750] VNSI: close video input ...
Oct 25 13:07:59 Microserver vdr: [2750] VNSI: cxSocket::read: eof, connection closed
Oct 25 13:07:59 Microserver vdr: [2750] VNSI: LiveStreamer::Close - close
Oct 25 13:07:59 Microserver vdr: [2750] VNSI: close video input ...
Oct 25 13:07:59 Microserver vdr: [2750] VNSI: close video input ...
Oct 25 13:07:59 Microserver vdr: [2749] VNSI: cxSocket::read: eof, connection closed
Oct 25 13:08:00 Microserver vdr: [1442] VNSI: Client with ID 39 seems to be disconnected, removing from client list
Oct 25 13:08:00 Microserver vdr: [1442] VNSI: Client with ID 40 seems to be disconnected, removing from client list

Timeshift is activated on the Server and Client.

Femon shows signal on both heads and they are found by trusty as adapter0 and adapter1.

Could this be a vnsi issue?

Best regards...

Mirko
Reply
#4
truncated non-debug logs don't help much.
Reply
#5
kodi.log from OSX client trying to change channel and failing (debug enabled):
http://pastebin.ca/3221168

syslog
http://pastebin.ca/3221171

Basically this is what comes to syslog when I first tune on the OSX client to a channel on a same mux that is playing on the server and then try to change the channel that is on a different mux (and would require VDR/VNSI to use the other tuner):
Oct 27 13:36:25 torni vdr: [2038] VNSI: Client with ID 57 connected: 192.168.0.139:51341
Oct 27 13:36:25 torni vdr: [21917] VNSI: Welcome client 'XBMC Media Center' with protocol version '8'
Oct 27 13:36:25 torni vdr: [21917] VNSI: LiveStreamer::Close - close
Oct 27 13:36:25 torni vdr: [21917] VNSI: close video input ...
Oct 27 13:36:25 torni vdr: [21917] VNSI: Successfully found following device: 0x237f340 (2) for receiving
Oct 27 13:36:25 torni vdr: [21917] VNSI: Successfully switched to channel 20 - Kutonen
Oct 27 13:36:25 torni vdr: [21919] cLiveStreamer stream processor thread started (pid=1072, tid=21919, prio=high)
Oct 27 13:36:25 torni vdr: [21917] VNSI: Started streaming of channel Kutonen (timeout 10 seconds)
Oct 27 13:36:25 torni vdr: [21918] VNSI: VideoInput: no pat/pmt within timeout, falling back to channel pids
Oct 27 13:36:25 torni vdr: [21918] VNSI: Video Input - new pmt, attaching receiver
Oct 27 13:36:25 torni vdr: [21919] VNSI: Created stream for pid=523 and type=7
Oct 27 13:36:25 torni vdr: [21919] VNSI: Created stream for pid=655 and type=2
Oct 27 13:36:26 torni vdr: [2040] VNSI: Client with ID 56 seems to be disconnected, removing from client list
Oct 27 13:36:49 torni vdr: [21919] VNSI: exit streamer thread
Oct 27 13:36:49 torni vdr: [21919] cLiveStreamer stream processor thread ended (pid=1072, tid=21919)
Oct 27 13:36:49 torni vdr: [21917] VNSI: LiveStreamer::Close - close
Oct 27 13:36:49 torni vdr: [21917] VNSI: close video input ...
Oct 27 13:36:49 torni vdr: [21917] VNSI: call retune ...
Oct 27 13:36:49 torni vdr: [21917] VNSI: call retune ...
Oct 27 13:36:49 torni vdr: [21917] VNSI: close video input ...
Oct 27 13:36:49 torni vdr: [21917] VNSI: LiveStreamer::Close - close
Oct 27 13:36:49 torni vdr: [21917] VNSI: close video input ...
Oct 27 13:36:50 torni vdr: [21917] VNSI: cxSocket::read: eof, connection closed
Oct 27 13:36:50 torni vdr: [21917] VNSI: LiveStreamer::Close - close
Oct 27 13:36:50 torni vdr: [21917] VNSI: close video input ...
Oct 27 13:36:50 torni vdr: [21917] VNSI: close video input ...
Oct 27 13:36:50 torni vdr: [2040] VNSI: Client with ID 57 seems to be disconnected, removing from client list
Oct 27 13:37:25 torni vdr: [21925] epg data writer thread started (pid=1072, tid=21925, prio=low)
Oct 27 13:37:25 torni vdr: [21925] epg data writer thread ended (pid=1072, tid=21925)



To verify this is not a VDR issue not being able to use the other tuner I checked that I can view any channel using vdr-sxfe at the same time VDR is streaming live tv via VNSI to kodi client.

I should be able to build a test version of VNSI server if that's helpful for sorting this out.
This is a major WAF in our living room and daily headache of mine Smile
Reply
#6
What did you set priority to? (vnsi addon settings)
Reply
#7
If you know how to compile, you can try to change this line of code: https://github.com/FernetMenta/vdr-plugi...amer.c#L84

to

m_Device = cDevice::GetDevice(m_Channel, m_Priority, false, true);
Reply
#8
Thanks for the tip on priority setting. It was set to -99 on both clients (as default). I set the other client to 5 and the other to 99 and now everything seems to work OK.
What does the priority setting do? Are there recommended settings for it?

Thanks a lot!
Reply
#9
priority is some vdr functions. higher priority is allowed to interrupt playback of lower priority. In general recordings have priority greater 0, live has 0. If you programmed a timer, you want it to record even if it would need to interrupt live tv, right?
default priority of vnsi is set to -1. if you have -99, this is a migration issue from 14.x to 15.x. -99 is a special case of lowest priority that makes only sense for vod when a user wants to activate a card.

multiple tuners should work if every clients priority is set to -1.
Reply
#10
Hello guys,

I am suffering the same issues with my vdr with quad tuner and vnsi.

I can record one and watch another. Starting a third one it seems like every device is blocked.

Recording 4 different at the same time is working perfectly. Watching a third with stream development no issue.

No clue what I can do to solve this.

Any advice?
Reply
#11
One, I have to admit dumb question but I just don't know where I can set the priority.

Do I do this in the VDR or in Kodi itself?

My Clients are 2 times Windows and one Pi with OE 6.0

Thanks for guidance. ;-)
Reply
#12
(2016-02-03, 22:33)Palmdale95 Wrote: Recording 4 different at the same time is working perfectly. Watching a third with stream development no issue.

What does this mean? What is "stream development"?
Reply
#13
(2016-02-04, 14:26)Palmdale95 Wrote: One, I have to admit dumb question but I just don't know where I can set the priority.

Do I do this in the VDR or in Kodi itself?

configuration settings of vnsi addon
Reply
#14
(2016-02-04, 18:17)FernetMenta Wrote:
(2016-02-03, 22:33)Palmdale95 Wrote: Recording 4 different at the same time is working perfectly. Watching a third with stream development no issue.

What does this mean? What is "stream development"?

Sorry I don't know where my thoughts were. To much work.

What I wanted to state is that if I record to different channels and want to open a third in kodi it is not working, but recording 4 channels at the time is just perfect.
Reply
#15
what other vdr plugins do you have loaded?
Reply

Logout Mark Read Team Forum Stats Members Help
VNSI & multiple tuners0