↓ Skip to main content
  1. Posts/

Mount: DTT + PVR System + XBMC + Streaming + Timeshift for 8,26€

·
Rubén Infante Docio
Author
Rubén Infante Docio
Software engineer
Table of Contents

With the new version of XBMC 12 Frodo the possibility of using XBMC as a PVR client is introduced.

Below we will see how to install this in an XBMC on Ubuntu for DVB-T DTT systems as is the case in Spain.

What is it for?
#

  • Watch TV Streaming from anywhere
  • View the programming guide
  • Schedule automatic recordings
  • Filtering
  • Control Parental
  • Timeshift -> pause, fast forward and backward while watching TV. Without going over time to the current broadcast. Magic doesn’t :P
  • Instant recordings.

All this from the web or from XBMC.

If you want to access from the internet (outside the network, it will be necessary to open ports 8091 and 8092) and a fixed ip or domain dyndns etc.

Requirements
#

  • DTT tuner € 8,66 (shipping costs and VAT included)
    Tuner
  • Linux with XBMC installed

Steps
#

  1. Open a terminal

    #sustituye stable por unstable > beta > stable según lo que desees
    sudo apt-add-repository http://apt.tvheadend.org/stable
    sudo apt-get update
  2. The GPG should be installed with

    curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -

    We install, provide username and password and with this we would have the PVR backend installed

  3.  sudo apt-get install tvheadend
  4. Now we will have two methods to update our Linux system to be compatible with this type of interfaces.

    1. Part 1
      #

      It consists of updating v4l (Video for Linux), a whole set of tools not included in ubuntu by default that will allow us to control everything related to video devices, capture cameras, webcams, etc.

      To do this, we enter the following commands in a terminal

      sudo apt-get install linux-source
      sudo apt-get install patchutils libproc-processtable-perl build-essential git-core linux-headers-`uname -r`
      cd /usr/src
      sudo git clone git://linuxtv.org/media_build.git
      cd media_build
      sudo ./build
      sudo make install
    2. Part 2 (Only valid for devices with the chipset of devices such as the one in the header
      #

      cd ..
      wget https://raw.github.com/torvalds/linux/master/Documentation/dvb/get_dvb_firmware
      sudo ./get_dvb_firmware it9135
      sudo dd if=dvb-usb-it9135-01.fw ibs=1 skip=64 count=8128 of=dvb-usb-it9135-01.fw
      sudo dd if=dvb-usb-it9135-02.fw ibs=1 skip=12866 count=5817 of=dvb-usb-it9135-02.fw
      sudo cp dvb-usb-it9135-0* /lib/firmware/
  5. We restart and with all this we will proceed to configure the PVR backend

  6. We access via browser with http://IP_LAN_PC:9981/

  7. Configuration -> DVB Inputs -> Select the adapter -> Add DVB Network by location… -> Select your country and city.

  8. Once the scan is finished (waiting a little while, when you see that all the channels you want are there) -> Map DVB services to channels… Since in Spain the channels are received as services

  9. We move on to the XBMC configuration
    #

    1. We install the XBMC plugin if it isn’t

      sudo apt-get install xbmc-pvr-tvheadend-hts
    2. Go to System -> Addons -> We look for the PVR Tvheadend -> addon We activate it

    3. We configure username and password

  10. Done!

Now we just need to do some research on the XBMC options and the web interface. To discover many cool things.

Wise note
#

To check that the device is detected, you can use the

dmesg | grep -i dvb

Update 28/05/2013
#

Point 2 has been updated since the official website incorrectly specifies the url

Broadcasting through the browser is only available if we use a server with anonymous access, that is, anyone can see our channels through the internet. P.S. It can be limited by IP, of course, and we could have a tunnel that connects our network and in this way we could secure it.

Steps
#

  1. Settings -> Access Control -> create a new user
  2. Activate the account and give it the permissions we want.

Another day I will show you how to do it. :P

Related


Comentarios

  • Juan
    Juan
    Sin internet tambien funcionaria la TDT en el XBMC??? Perdonad si la pregunta es tonta…
  • ruben0909
    ruben0909

    Hola Juan,

    Por supuesto, es como una televisión normal, siempre que no quieras usar una guía de TV, sincronizada por internet ni conectarlo a canales por internet funciona perfectamente.

    Un saludo

    • Alex
      Alex
      Una pregunta Juan, cómo es eso de Conectar a canales por internet??? PDTA: Disculpa mi ignorancia…
      • Rubén Infante Docio
        No es el tema del post, pero es muy sencillo busca en Google Zatoo, tvalacarta, las propias webs de cada canal…etc
  • Jorge
    Jorge

    Hola, que tal? queria hacerte una consulta,

    he leido tu articulo https://rubeninfante.com/2013/05/26/montar-tdt-sistema-pvr-xbmc-streaming-timeshift-por-866e/

    Por lo que comentas es posible ver la tdt utilizando una tarjeta de TV, sin necesidad de tener conectado la xbmc a internet.

    El problema que yo tengo yo utilizo el add on Tvheadend para ver la tdt pero en cuanto desconecto el cable de red, deja de funcionar y aparece el mensaje de “tvheadend client conexion perdida”, es decir, para ver la tdt tengo la necesidad de estar conectado a internet.

    Hay alguna solucion para arreglar esto u otra opcion para ver la tdt en xbmc sin necesidad de estar conectado a internet.

    Gracias por su respuesta.

    • Rubén Infante Docio

      Hola Jorge,

      Ahora mismo no tengo acceso a mi xbmc, pero ¿Podrías probar esto? Accede a la configuración de TvHeadEnd en el cliente para xbmc.

      Dónde pone la ip prueba estos valores consecutivamente

      • 127.0.0.1
      • localhost

      Dime si alguno de los dos te funciona,

      Un saludo

  • Azhara
    Azhara

    Buenas tardes,

    Tengo instalado como SO Linux Kubuntu 13.10 y no consigo instalar Tvheadend. He seguido los pasos pero finalmente no funciona. No sé si es que no habrá soporte.

    Agradecería muchísimo la ayuda.

    Un saludo!

  • Rubén Infante Docio
    Hola Azhara, ¿En qué paso te has quedado? ¿Que error te da?
  • Azhara
    Azhara

    Hola Rubén, muchísimas gracias por contestar.

    He hecho todos estos pasos:

    curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add - sudo apt-add-repository http://apt.tvheadend.org/stable sudo apt-get update sudo apt-get install tvheadend

    Después he puesto en el navegador http://IP_LAN_PC:9981/ y no sigue el siguiente paso que es que me pida usuario y contraseña.

    De hecho, al ejecutar esos comandos me dio un error 404 (no me acuerdo exactamente qué ponía) Voy a intentar repetir el proceso de nuevo en una instalación limpia y te lo digo concretamente cuál es.

    He estado leyendo y en foro oficial alguien tenía el mismo problema https://tvheadend.org/boards/5/topics/10129 En esta página hay un usuario recomienda una solución, pero no tengo ni idea a que se refiere ni cómo hacerlo ¿Puede ser que no estén los repositorios para ubuntu y haya que crearlos o algo así?

    Yo no tengo mucha idea de esto, así que estoy dando palos de ciego. Si digo muchas barbaridades no te asustes, jeje.

    Un saludo, y muchas gracias! ;)

  • Azhara
    Azhara

    Hola Rubén,

    Te he contestado por aquí, pero ahora no me sale el mensaje que he escrito y hace un rato sí, ¿por qué puede ser?

    Gracias de nuevo y un saludo

  • Azhara
    Azhara
    Ya sale, perdona. No he dicho nada. jeje…
  • Rubén Infante Docio

    Hola Azhara. Si te dió 404 vuelve a intentarlo ahora que por lo que veo en los repositorios si hay versión disponible, Si sigue sin funcionar. Puedes compilarlo con las intrucciones que pone aquí https://github.com/tvheadend/tvheadend

    Gracias, un saludo, para cualquier duda no dudes en decirlo

  • jorge cortes
    jorge cortes
    Buen día ya instale todo tal cual lo indicas y funciona el programa mi problema es la tarjeta de tv no pude conseguir la que sugieres existe la posibilidad que me pases el chip o los chips soportados para buscar una en mi zona o algún otro modelo por Internet. Ya probé con dos distintos y no los reconoce.
    • Rubén Infante Docio
      Hola el chip es el it9135, pero debería valer cualquier sintonizadora compatible con Linux. Un saludo