PVR: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Robweber
(added compile instructions - linux/windows)
>Robweber
(grammer, url changes)
Line 1: Line 1:
{{frodo}}
{{frodo}}
<!--{{:PVR/Contents}}-->
<!--{{:PVR/Contents}}-->
As of v12 (Frodo), XBMC supports [http://en.wikipedia.org/wiki/Digital_video_recorder Personal Video Recorder (PVR)] controls and features when paired with a PVR "backend". This allows you to watch live TV, listen to radio, view an EPG, schedule recordings and enables many other TV related features. A PVR backend is a second process/application that can either run on the same machine running XBMC, on a stand-alone device (able to feed several XBMC machines), or completely by itself with XBMC only running when needed. When paired with a backend, XBMC handles the interface allowing the user to watch live TV, scheduled recordings, time shift (not yet supported), etc.
As of v12 (Frodo), XBMC supports [http://en.wikipedia.org/wiki/Digital_video_recorder Personal Video Recorder (PVR)] controls and features when paired with a PVR "backend". This allows you to watch live TV, listen to radio, view an EPG, schedule recordings and enables many other TV related features. A PVR backend is a second process/application that can either run on the same machine running XBMC, on a stand-alone device (able to feed several XBMC machines), or completely by itself with XBMC only running when needed. When paired with a backend, XBMC handles the interface, or frontend, allowing the user to watch live TV, scheduled recordings, time shift (not yet supported), etc.


Due to the somewhat complicated nature of setting up PVR for XBMC, this guide was created to help users from start to finish.
Due to the somewhat complicated nature of setting up PVR for XBMC, this guide was created to help users from start to finish.
Line 7: Line 7:
==PVR History==
==PVR History==


XBMC has long had support for viewing recordings from backend recording services such as MythTV and TVHeadend through the use of specialized [[List_of_media_source_types#Videos_Specific_Sources|video sources]] that communicate with the backend software. This did not allow XBMC to be used a true PVR frontend since users still had to view EPG data and schedule recordings via the backend interface. Each of these sources was also part of the XBMC core codebase, so changes in the backend API often broke the integration until XBMC pushed out an update.  
XBMC has long had support for viewing recordings from backend recording services such as MythTV and TVHeadend through the use of specialized [[List_of_media_source_types#Videos_Specific_Sources|video sources]] that communicate with the backend software. This did not allow XBMC to be used a true PVR frontend since user still had to view EPG data and schedule recordings via the backend interface. These file sources were also part of the XBMC core codebase, so updates to the backend API often broke the integration until XBMC pushed out an update.  


Serious efforts to create a PVR frontend for XBMC started with a project during [[GSoC_-_Unified_PVR_Frontend|Google Summer of Code 2008]]. Project student [[User:Alcoheca|Alcoheca]] began the fork of what would eventually become the XBMC PVR branch. As this project became more mature it opened the door for skinners to start taking advantage of custom interfaces for PVR and add them to various XBMC skins.  
Serious efforts to create a PVR frontend for XBMC started with a project during [[GSoC_-_Unified_PVR_Frontend|Google Summer of Code 2008]]. Project student [[User:Alcoheca|Alcoheca]] began the fork of what would eventually become the XBMC PVR branch. As this project became more mature it opened the door for skinners to start taking advantage of skinning interfaces for PVR and add them to various XBMC skins.  


With the release of XBMC 10.0 (Dharma) came the addition of the [[Add-ons|addon]] framework to XBMC. Although binary addons were not available the PVR branch of XBMC started to use these as a structure for having various backends plug-in to a common API structure.  
With the release of XBMC 10.0 (Dharma) came the addition of the [[Add-ons|addon]] framework to XBMC. Although binary addons were not available, the PVR branch of XBMC started to use these as a structure for having various backends plug-in to a common API structure.  


During the development cycle for XBMC 12.0 (Frodo) the merge of the PVR and mainline XBMC branches was approved during the [[XBMC_DevCon|XBMC Devcon]]. This made the PVR API available to all mainstream XBMC users, although the addons are still to be maintained in a separate repository and not distributed with XBMC releases.
During the development cycle for XBMC 12.0 (Frodo) the merge of the PVR and mainline XBMC branches was approved during the [[XBMC_DevCon|XBMC Devcon]]. This made the PVR API available to all mainstream XBMC users, although the addons are still to be maintained in a separate repository and not distributed with XBMC releases.


== Supported Backends ==
== Supported Backends ==
If you want to use a PVR addon with XBMC, there are a few prerequisites. First, you need a TV tuner or IPTV source, and working backend to connect to XBMC. Below is a list of currently supported backends. The source for these addons can be found in the [https://github.com/opdenkamp/xbmc-pvr-addons XBMC PVR Addons Repo]
If you want to use a PVR addon with XBMC, there are a few prerequisites. First, you need a TV tuner or IPTV source, and a working backend to connect to XBMC. Below is a list of currently supported backends. The source for these addons can be found in the [https://github.com/opdenkamp/xbmc-pvr-addons XBMC PVR Addons Repo]


=== 1. HTS Tvheadend ===
=== 1. HTS Tvheadend ===
* OS: Linux
* Backend OS: Linux
* Homepage: [http://www.lonelycoder.com/hts/tvheadend_overview.html lonelycoder.com]
* Homepage: [http://www.lonelycoder.com/hts/tvheadend_overview.html lonelycoder.com]
* Addon maintainer: dushmaniac
* Addon maintainer: dushmaniac
* Forum support topic: [http://forum.xbmc.org/showthread.php?t=91716 XBMC forum]
* Forum support topic: [http://forum.xbmc.org/showthread.php?t=91716 XBMC forum]
* Installation: https://www.lonelycoder.com/redmine/projects/tvheadend/wiki
* Backend Installation: https://www.lonelycoder.com/redmine/projects/tvheadend/wiki


=== 2. VDR ===
=== 2. VDR ===
* OS: Linux
* Backend OS: Linux
* Homepage: [http://www.tvdr.de/ tvdr.de]
* Homepage: [http://www.tvdr.de/ tvdr.de]
* Addon maintainer: FernetMenta
* Addon maintainer: FernetMenta
* Addon Forum support topic: [http://forum.xbmc.org/showthread.php?t=45314 XBMC forum]
* Addon Forum support topic: [http://forum.xbmc.org/showthread.php?t=45314 XBMC forum]
* Installation: http://linuxtv.org/vdrwiki/index.php/VDR_installation
* Backend Installation: http://linuxtv.org/vdrwiki/index.php/VDR_installation


=== 3. MythTV ===
=== 3. MythTV ===
* OS: Linux
* Backend OS: Linux
* Homepage: [http://www.mythtv.org/ mythtv.org]
* Homepage: [http://www.mythtv.org/ mythtv.org]
* Addon maintainer: dteirney
* Addon maintainer: dteirney
* Addon Forum support topic: [http://forum.xbmc.org/showthread.php?t=82015 XBMC forum]
* Addon Forum support topic: [http://forum.xbmc.org/showthread.php?tid=110694 XBMC forum]
* Installation: http://www.mythtv.org/wiki/Packages
* Backend Installation: http://www.mythtv.org/wiki/Packages


=== 4. MediaPortal ===
=== 4. MediaPortal ===
Line 45: Line 45:
* Addon maintainer: margro
* Addon maintainer: margro
* Addon Forum support topic: [http://forum.xbmc.org/showthread.php?t=65488 MediaPortal Python plugin/PVR addon]
* Addon Forum support topic: [http://forum.xbmc.org/showthread.php?t=65488 MediaPortal Python plugin/PVR addon]
* Installation: http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/12_Installation
* Backend Installation: http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/12_Installation


=== 5. For The Record Argus TV Server ===
=== 5. For The Record Argus TV Server ===
Line 53: Line 53:
* Addon maintainers: margro, red-f
* Addon maintainers: margro, red-f
* Addon Forum support topic: [http://www.4therecord.eu/forum/viewtopic.php?f=41&t=2425 ForTheRecord forum]
* Addon Forum support topic: [http://www.4therecord.eu/forum/viewtopic.php?f=41&t=2425 ForTheRecord forum]
* Installation: http://www.4therecord.eu/wiki/index.php?title=English_Installation_Guide
* Backend Installation: http://www.4therecord.eu/wiki/index.php?title=English_Installation_Guide


=== 6. DVBLink TV Server ===
=== 6. DVBLink TV Server ===
Line 60: Line 60:
* Addon maintainers: zeroniak
* Addon maintainers: zeroniak
* Addon Forum support topic: [http://www.dvblogic.com/phpBB3/viewtopic.php?f=61&t=19703 DVBLink forum]
* Addon Forum support topic: [http://www.dvblogic.com/phpBB3/viewtopic.php?f=61&t=19703 DVBLink forum]
* Installation: See DVBLink forum
* Backend Installation: http://dvblogic.com/phpBB3/index.php


== Configuring XBMC ==
== Configuring XBMC ==
Once you have a working backend, you can begin the process of getting the matching pvr addon compiled and installed into XBMC. You must have a build version of XBMC compiled after [https://github.com/xbmc/xbmc/pull/1357 PR:1357] was merged into the master repository. This should be any build after September 4, 2012. Once Frodo is released the PVR components of XBMC will become part of the official release. Until then you must [[:Category:Compiling|compile XBMC yourself]], or use a [http://mirrors.xbmc.org/nightlies/ nightly build].  
Once you have a working backend, you can begin the process of getting the matching PVR addon compiled and installed into XBMC. You must have a build version of XBMC compiled after [https://github.com/xbmc/xbmc/pull/1357 PR:1357] was merged into the master repository. This should be any build after September 4, 2012. Once Frodo is released the PVR components of XBMC will become part of the official release. Until then you must [[:Category:Compiling|compile XBMC yourself]], or use a [http://mirrors.xbmc.org/nightlies/ nightly build].  


The PVR Addons are not distributed with XBMC. They reside in a separate repository located at [https://github.com/opdenkamp/xbmc-pvr-addons https://github.com/opdenkamp/xbmc-pvr-addons]
The PVR Addons are not distributed with XBMC. They reside in a separate repository located at [https://github.com/opdenkamp/xbmc-pvr-addons https://github.com/opdenkamp/xbmc-pvr-addons]


===Windows===  
===Windows===  
#To compile PVR addons for Windows first make sure you meet the [[HOW-TO:Compile_XBMC_for_Windows|compiling prerequisites]] for compiling XBMC. The same features are needed to compile the PVR addons.
* To compile PVR addons for Windows first make sure you meet the [[HOW-TO:Compile_XBMC_for_Windows|compiling prerequisites]] for compiling XBMC. The same features are needed to compile the PVR addons.
#Once the requirements are met, clone the PVR addon repository: [https://github.com/opdenkamp/xbmc-pvr-addons https://github.com/opdenkamp/xbmc-pvr-addons]. For more information on how to use Git, see the [[Git_Usage]] page If using TortiseGit, follow the [[HOW-TO:Compile_XBMC_for_Windows#Getting_the_sources|cloning instructions here]], substituting the correct repository URL.
* Once the requirements are met, clone the PVR addon repository: [https://github.com/opdenkamp/xbmc-pvr-addons https://github.com/opdenkamp/xbmc-pvr-addons]. For more information on how to use Git, see the [[Git_Usage]] page If using TortiseGit, follow the [[HOW-TO:Compile_XBMC_for_Windows#Getting_the_sources|cloning instructions here]], substituting the correct repository URL.
# Download the build dependencies by executing the batch file found in project\BuildDependencies\
* Download the build dependencies by executing the batch file found in project\BuildDependencies\
# Open the solution file located in project\VS2010Express\xbmc-pvr-addons.sln
* Open the solution file located in project\VS2010Express\xbmc-pvr-addons.sln
# Select the wanted configuration "Debug" or "Release"
* Select the wanted configuration "Debug" or "Release"
# Press F7 to build the solution
* Press F7 to build the solution
'''Note:''' The build system does not yet generate .zip archives
'''Note:''' The build system does not yet generate .zip archives
Workaround: copy the wanted pvr addons to your XBMC installation by hand.
Workaround: copy the wanted pvr addons to your XBMC installation by hand.
Line 97: Line 97:


===Configure Live TV===
===Configure Live TV===
#Enabling Live TV in XBMC  
* Enabling Live TV in XBMC  





Revision as of 13:05, 2 October 2012

Template:Frodo As of v12 (Frodo), XBMC supports Personal Video Recorder (PVR) controls and features when paired with a PVR "backend". This allows you to watch live TV, listen to radio, view an EPG, schedule recordings and enables many other TV related features. A PVR backend is a second process/application that can either run on the same machine running XBMC, on a stand-alone device (able to feed several XBMC machines), or completely by itself with XBMC only running when needed. When paired with a backend, XBMC handles the interface, or frontend, allowing the user to watch live TV, scheduled recordings, time shift (not yet supported), etc.

Due to the somewhat complicated nature of setting up PVR for XBMC, this guide was created to help users from start to finish.

PVR History

XBMC has long had support for viewing recordings from backend recording services such as MythTV and TVHeadend through the use of specialized video sources that communicate with the backend software. This did not allow XBMC to be used a true PVR frontend since user still had to view EPG data and schedule recordings via the backend interface. These file sources were also part of the XBMC core codebase, so updates to the backend API often broke the integration until XBMC pushed out an update.

Serious efforts to create a PVR frontend for XBMC started with a project during Google Summer of Code 2008. Project student Alcoheca began the fork of what would eventually become the XBMC PVR branch. As this project became more mature it opened the door for skinners to start taking advantage of skinning interfaces for PVR and add them to various XBMC skins.

With the release of XBMC 10.0 (Dharma) came the addition of the addon framework to XBMC. Although binary addons were not available, the PVR branch of XBMC started to use these as a structure for having various backends plug-in to a common API structure.

During the development cycle for XBMC 12.0 (Frodo) the merge of the PVR and mainline XBMC branches was approved during the XBMC Devcon. This made the PVR API available to all mainstream XBMC users, although the addons are still to be maintained in a separate repository and not distributed with XBMC releases.

Supported Backends

If you want to use a PVR addon with XBMC, there are a few prerequisites. First, you need a TV tuner or IPTV source, and a working backend to connect to XBMC. Below is a list of currently supported backends. The source for these addons can be found in the XBMC PVR Addons Repo

1. HTS Tvheadend

2. VDR

3. MythTV

4. MediaPortal

5. For The Record Argus TV Server

6. DVBLink TV Server

Configuring XBMC

Once you have a working backend, you can begin the process of getting the matching PVR addon compiled and installed into XBMC. You must have a build version of XBMC compiled after PR:1357 was merged into the master repository. This should be any build after September 4, 2012. Once Frodo is released the PVR components of XBMC will become part of the official release. Until then you must compile XBMC yourself, or use a nightly build.

The PVR Addons are not distributed with XBMC. They reside in a separate repository located at https://github.com/opdenkamp/xbmc-pvr-addons

Windows

  • To compile PVR addons for Windows first make sure you meet the compiling prerequisites for compiling XBMC. The same features are needed to compile the PVR addons.
  • Once the requirements are met, clone the PVR addon repository: https://github.com/opdenkamp/xbmc-pvr-addons. For more information on how to use Git, see the Git_Usage page If using TortiseGit, follow the cloning instructions here, substituting the correct repository URL.
  • Download the build dependencies by executing the batch file found in project\BuildDependencies\
  • Open the solution file located in project\VS2010Express\xbmc-pvr-addons.sln
  • Select the wanted configuration "Debug" or "Release"
  • Press F7 to build the solution

Note: The build system does not yet generate .zip archives Workaround: copy the wanted pvr addons to your XBMC installation by hand. Example: addons\pvr.demo\addon\*.* => YOUR_XBMC_DIR\addons\pvr.demo\*.*

Linux

 $ ./bootstrap
  • To install add-ons into /path/to/XBMC:
 $ ./configure --prefix=/path/to/XBMC
 $ make install
  • To build all PVR add-ons as .zip archives:
$ ./configure
$ make zip

Configure Live TV

  • Enabling Live TV in XBMC