Kodi Community Forum

Full Version: [LINUX] HOW-TO get Live TV with VDR and PVR-Testing Branch - Without manual compile!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
ok i will wait for XBMC PVR + VDR + OPENSC (OR SC) to be ready for maverick...

for now i wil try compile just for test a VDR 1.7.15

Smile

Leo, Croatia! Smile
SOLVED !!!

Ubuntu 10.10 maverick
VDR 1.7.15 (compiled from sources)
VDR-SC plugin 1.0 from HG repository (compiled from sources)
VDR-VNSISERVER plugin (compiled from sources)
XBMC-PVR-TESTING2 (compiled from sources)
Self made script that parse SoftCam.Key in the new format for Irdeto2 (M2 replaced by EMM string ...)
Tested on Bulsat 39E with self scanned channels list

Bye Smile
Could someone maybe give me a hand?

I'm very close to getting this to work, just falling at the last hurdle. I've got the pvr-testing2 branch installed all fine: I compiled from source. VDR seems to be installed fine too, and I've scanned the channels into channels.conf. In XBMC I can see all the channels under Live TV, and the EPG data for each channel, so clearly its all working fine. I cannot however actually watch the TV channels. Either:
a) if I use the streamdev plugin,when I select a channel it almost plays, kinda goes into the video player, but then exits it. The occasional channel will crash XBMC.
b) if I use the VNSI plugin, when I select a channel a popup comes up saying "Channel cannot be played" or something. No crashes though.

I'm not at home right now so can't post any logs or anything, what could I post that might help diagnose the problem?

For reference I'm using Ubuntu Maverick 10.10, and a K-World 395U USB TV Tuner.

Thanks guys!
MaytiOne Wrote:SOLVED !!!

Ubuntu 10.10 maverick
VDR 1.7.15 (compiled from sources)
VDR-SC plugin 1.0 from HG repository (compiled from sources)
VDR-VNSISERVER plugin (compiled from sources)
XBMC-PVR-TESTING2 (compiled from sources)
Self made script that parse SoftCam.Key in the new format for Irdeto2 (M2 replaced by EMM string ...)
Tested on Bulsat 39E with self scanned channels list

Bye Smile

could you please provide me with the steps actually taken? i love XBMC but i'm very new to the whole compiling thing.

many thanks
Okay so no-one has thus far had any insight on my issue (post above the last one).

A log of me attempting to open the TV channels is available here: http://pastebin.com/uA2ssrsj

Pretty certain the relevant bits are:
a) VNSI plugin:
Code:
20:16:23 T:3078641520 M:376676352  NOTICE: DVDPlayer: Opening: pvr://channels/tv/all/1.pvr
20:16:23 T:3078641520 M:376676352 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:16:23 T:2878159728 M:376676352   DEBUG: thread start, auto delete: 0
20:16:23 T:2878159728 M:376676352  NOTICE: Creating InputStream
20:16:23 T:2878159728 M:376676352   ERROR: AddOnLog: xbmc.pvrclient/VDR VNSI Client: cVNSISession::ReadSuccess - failed with error code '997' to
20:16:23 T:2878159728 M:376676352   ERROR: AddOnLog: xbmc.pvrclient/VDR VNSI Client: cVNSIDemux::Open - Can't open channel 1 - BBC NEWS
20:16:23 T:2878159728 M:376676352   ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/all/1.pvr]
20:16:23 T:2878159728 M:376676352  NOTICE: CDVDPlayer::OnExit()
20:16:23 T:2878159728 M:376676352  NOTICE: CDVDPlayer::OnExit() deleting input stream
20:16:23 T:2878159728 M:376676352   DEBUG: Thread 2878159728 terminating
20:16:23 T:3078641520 M:376676352   DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc
then a little bit later
Code:
20:16:38 T:3078641520 M:377606144  NOTICE: PVR: PVRManager stoping
20:16:38 T:3044232048 M:377606144    INFO: PVR: Unloading EPG information
20:16:38 T:3044232048 M:377606144   DEBUG: Thread 3044232048 terminating
20:16:39 T:3078641520 M:377614336   ERROR: AddOnLog: xbmc.pvrclient/VDR VNSI Client: ERROR: VNSI Data Listener thread 1651 won't end (waited 1 seconds) - canceling it...
20:16:39 T:3078641520 M:377614336    INFO: ADDON: Dll Destroyed - VDR VNSI Client
20:16:39 T:3078641520 M:377614336  NOTICE: PVR: PVRManager starting
20:16:39 T:3078641520 M:377614336   ERROR: PVR: couldn't load any clients


b) streamdev plugin

Plugin starts okay...
Code:
20:16:43 T:3078641520 M:377233408    INFO: starting PVRManager
20:16:43 T:3078641520 M:377233408  NOTICE: PVR: PVRManager starting
20:16:43 T:3078641520 M:377233408  NOTICE: TVDatabase: Added new PVR Client ID '2' with Name 'VDR Streamdev Client' and GUID 'pvr.vdr.streamdev'
20:16:43 T:3078641520 M:377233408   DEBUG: PVR: VDR Streamdev Client - Creating PVR-Client AddOn
20:16:43 T:3078641520 M:377233408   DEBUG: ADDON: Dll Initializing - VDR Streamdev Client
20:16:43 T:3078641520 M:377233408   DEBUG: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: Creating VDR PVR-Client
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting host
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting port
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting priority
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting ftaonly
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting useradio
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting convertchar
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting timeout
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting ignorechannels
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting handlemessages
20:16:43 T:3078641520 M:377233408   DEBUG: CAddonHelpers_Addon: AddOn VDR Streamdev Client request Setting usedirectory
20:16:43 T:3078641520 M:377233408    INFO: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: CVTPTransceiver::Connect - server greeting: Welcome to Video Disk Recorder (VTP)
20:16:43 T:3078641520 M:377233408    INFO: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: Connected to server 127.0.0.1:2004 using capabilities TS,FILTERS
20:16:43 T:3078641520 M:377274368   DEBUG: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: CVTPTransceiver::CreateDataConnection - local address 127.0.0.1:57557
20:16:43 T:3078641520 M:377274368   DEBUG: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: CVTPTransceiver::OpenStreamSocket - listening on 0.0.0.0:31950
20:16:43 T:3078641520 M:377274368  NOTICE: PVR: PVRManager started. Clients loaded = 1
20:16:43 T:3078641520 M:377274368   DEBUG: CGUIMediaWindow::GetDirectory (addons://enabled/xbmc.pvrclient)
20:16:43 T:3078641520 M:377274368   DEBUG:   ParentPath = [addons://enabled/xbmc.pvrclient]
20:16:43 T:3052624752 M:377241600   DEBUG: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: VDR Data Response thread started (pid=1632, tid=1669)
but it doesn't seem to want to play...
Code:
20:16:53 T:3078641520 M:371949568  NOTICE: DVDPlayer: Opening: pvr://channels/tv/all/1.pvr
20:16:53 T:3078641520 M:371949568 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:16:53 T:2804509552 M:371949568   DEBUG: thread start, auto delete: 0
20:16:53 T:2804509552 M:371949568  NOTICE: Creating InputStream
20:16:53 T:2804509552 M:371949568   ERROR: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: CVTPTransceiver::SendCommand - Failed with code: 560 (Channel not available)
20:16:53 T:2804509552 M:371949568   ERROR: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: Couldn't check if 127.0.0.1:2004 provides channel 1
20:16:53 T:2804509552 M:371949568   ERROR: AddOnLog: xbmc.pvrclient/VDR Streamdev Client: VDR does not provide channel 1
20:16:53 T:2804509552 M:371949568   ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/all/1.pvr]
20:16:53 T:2804509552 M:371949568  NOTICE: CDVDPlayer::OnExit()
20:16:53 T:2804509552 M:371949568  NOTICE: CDVDPlayer::OnExit() deleting input stream
20:16:53 T:3078641520 M:371949568   DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc


Can anyone at least give me a hint as to how to further investigate the issue?
Finally (after a weeks worth of fiddling) managed to get it to work: had to use 'w_scan' to make the channels.conf file rather than 'scan'.
Thanks for all the help guys.
So what's going on with the pvr-testing branch in relation to VDR?

It seems like a lot of effort is being concentrated on TVHeadend. Whilst TVHeadend is good I much prefer VDR.

Currently using r32871 and starting to feel left behind. Are there other pvr builds that work with VDR?
Out of interest why do you prefer VDR?
I found VDR much harder to set-up, and it insisted on shutting my computer down all the time, despite me turning off all the "Allow VDR to shutdown computer" settings that I could find. Tvheadend was easy to set-up and appears to be a lot better supported here.

In terms of builds, I think you can use the repository maintained by dushmaniac from the tvheadend thread, theres a link to it in his sig. It contains the VDR plugins too.
nssk Wrote:Out of interest why do you prefer VDR?
I found VDR much harder to set-up, and it insisted on shutting my computer down all the time, despite me turning off all the "Allow VDR to shutdown computer" settings that I could find. Tvheadend was easy to set-up and appears to be a lot better supported here.

I only moved to VDR because recordings weren't working with TVHeadend which made it only any use for watching TV. Whereas recordings work great with VDR.

VDR is harder to setup and you definitely need to be more knowledgable in Linux to get it up and running nicely but I find once it's up and running it's more flexible. I've managed to set it up a few times now after changing ubuntu versions without any hassle. One of the main things I remember to do is make copy of setup.conf and channels.conf.

VDR records to .ts rather than .mkv, I prefer this.

I'm going to be adding some DVB-S2 cards to my TV server system soon and I feel it'll work better with VDR. I may be wrong about that but I just see VDR as being a more powerful solution.

Using TVHeadend is perfectly fine and does a great job with XBMC and it is far easier to setup, the only reason I moved in the first place was the recording problem.


There's a line in the VDR setup.conf file (/var/lib/vdr/setup.conf) that needs to be...

MinUserInactivity = 0

If you had it set as 0 then your shutdown issue was else, but I guess that doesn't matter since you use TVHeadend now.
Ah fair enough, to be fair I haven't actually tried recording on tvheadend yet, but its not a massive loss for me. Maybe I'll come back to VDR one day Smile

And yep I had that set to 0 but it would still shutdown. Even tried editing the shutdown script itself, still didn't help. No worries though cheers for the help.
nssk Wrote:Ah fair enough, to be fair I haven't actually tried recording on tvheadend yet, but its not a massive loss for me. Maybe I'll come back to VDR one day Smile

And yep I had that set to 0 but it would still shutdown. Even tried editing the shutdown script itself, still didn't help. No worries though cheers for the help.

No worries.

I think it may have been an isolated case with my TVHeadend recording issue but the devs didn't know how to fix it at the time so I moved to VDR. They hadn't heard of it before so I'm guessing most other people had no problems at all.
Heya, I wasn't reading this thread, but decided to have a look when ant_thomas posted in the tvheadend one.

I am currently maintaining the pvr merge and it's not concentrated on tvheadend, but since I run tvheadend myself, I am fixing bugs I encounter and am accepting other people's patches to tvheadend because I can test those properly.

If someone is interested in maintaining the vdr addon, then you can fork of my "master" branch on github.

Someone posted on trac that streamdev wouldn't work anymore with the latest sources, so if you want to try my builds, you'll have to use vnsi.
I'll give your branch another go with VNSI and see if that makes it work.

If not I might end up going to TVHeadend if my recording issue is resolved (which it could be now).

It is a shame that no one else is looking after the VDR side of things at the moment. Maybe that'll change when Dharma is released.
Bah, VNSI doesn't want to work for me on the pvr-testing2 build so I'll just stick to streamdev and be happy that things are working well as they are.
In case anyone is interested....

I'm now using the Lars Op den Kamp Dharma Build with VDR and VNSI. Channel switching is definitely much faster than Streamdev. So far so good.

I get to carry on with VDR with the newest XBMC builds, I'm happy!
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30