David Hutchison

Plex DVR with the Official Xbox One Digital TV Tuner - The indirect approach

In part 2 of this series we tried, and failed, with the direct approach of passing the USB tuner straight through to the Plex Docker container and seeing if it would work anyway.

In this part, we will build a set up which does allow Plex to use the Xbox One Digital TV Tuner.

Nothing in this approach is new, but this does bring together the work of many projects.

» Continue reading

Plex DVR with the Official Xbox One Digital TV Tuner - Introduction

I have been using Plex as the software powering my media server for around two years now, and recently opted to pay for a lifetime Plex Pass. It does get used daily, and some of the features of the paid version looked particularly useful, such as the offline mobile media sync and the (beta) Live TV & DVR feature.

Since I dropped my subscription to satellite television 6 months or so ago, I have been without the ability to record anything which shows on TV, and need to rely on catch up services. In reality, this is not much of a problem as I do not watch a lot of television, but there are a couple of programs I watch which I would like to keep.

My home antenna does have a cable terminating in to the same room as my server sits and, while not on the supported hardware list, I do have a Microsoft Official Xbox One Digital TV Tuner lying about unused.

The setup I am starting with is:

It was worth spending a bit of time trying to get this tuner device working, as I already had it, and it is a cheap USB tuner compared to the devices which are officially supported (~£8, vs the cheapest of the supported devices being the Hauppauge Freeview HD TV for Xbox One at ~£40). Also, the host OS I use rules out the Hauppauge Freeview HD TV for Xbox One anyway, as the only operating system listed for Linux support is Ubuntu 16.4.

This is the introduction to a series of posts documenting the journey to getting Plex DVR working with this unsupported device. The approach has been rife with failures, but has been a learning experience and, while a bit less clean than I would like, it works.

Centos, MakeMKV and External Drives

For most of the last two years, I have been using an HP Microserver as my media server (running plex) and general development server running on CentOS 7. A few months ago I bought an external Blu-Ray writer, specifically a Samsung SE-506, for use with it.

In the past I have tried MakeMKV for extracting MKV files from some old home made DVDs, and I wanted to try this directly from the server. I had two problems when trying this:

  1. The drive was not supported by the libusb version supplied with the version of CentOS which was available at the time, fortunately the release of CentOS 7.3 brought the support I needed.
  2. MakeMKV was unable to use the attached drive unless it was being ran by root.

In order to allow MakeMKV to be able to access the drive when ran as a non-root user, a new udev rule is needed. My drive is mounting as the device “/dev/sr0”, so I created a new file “etc/udev/rules.d/80-bluray.rules” with the content:

    KERNEL=="sr?", MODE="0666"

This file will target any “sr” device and change the permissions so it is accessible by any user (the default permissions where 0660). More details are available in the udev documentation - it looks to be an enourmously powerful utility.