Saturday, October 10, 2020

MythTV v31 Example Installation Steps with Ubuntu 20.04

I used the steps shown below to install MythTV v31 on Ubuntu 20.04.  MythTV is open source media center software for a home theater or television computer, and it is most often used to watch and record TV content.  Ubuntu is one of the most popular Linux operating system distributions.  

The MythTV frontend and backend were installed so the system can be used to watch and record TV content, and the system can be used by other MythTV frontends in my home.  An Asus H110T was used with Intel graphics.  A single hard drive was used for the operating system and all other files.  Also, an HDHomeRun Prime was used with Comcast Xfinity.  

The guide data source is from SiliconDust and TVMaze, and this differs from the more commonly used Schedules Direct source.  The steps below indicate when Schedules Direct users need to do something different.
  1. Install Ubuntu using the minimal install option.  The installation iso file and instructions for installing Ubuntu Desktop LTS can be found at
  2. Boot into Ubuntu and start Software Updater.
  3. Install all available updates.
  4. Reboot, and repeat steps two and three until Software Updater indicates there are no more updates.
  5. Set a static IP address:
    • Left click on the network icon on the top-right of the screen, left click on the right arrow next to the network connection, and left click Wired Settings.
    • Left click the gear icon next to the current working network connection.
    • Left click the IPv4 tab.
    • Left click Manual, and enter appropriate values for the address, netmask, and gateway.  The netmask and gateway values match what my Android phone lists when connected to my home network by tapping Settings, Network and Internet, Wi-Fi, gear icon, and Advanced.
    • Left click the toggle to turn automatic DNS off, and enter appropriate values for the DNS addresses.  For example,, is common for Comcast.
    • The automatic routes can be left on.
    • Click Apply.
  6. Reboot, start Firefox, and verify the connection is working.
  7. Install Mythbuntu Control Panel (MCP) by following the instructions here.
  8. Start MCP, click Repositories, select version 31, and click Apply.
  9. Close MCP, start Software Updater, and install any updates found.
  10. Start MCP, click System Roles, select Primary Backend and Desktop Frontend, and click Apply.  There is no need to select the XMLTV option for the guide data sources noted above.  Schedules Direct users need to select the XMLTV option.
  11. Close MCP, and reboot the computer.
  12. Start MCP, click Setup, and do the following:
    • Do the first several steps here to add the current user to the mythtv group and add a link to config.xml.  The option to run MythTV Backend Setup as the mythtv user is not needed if using the guide data sources noted above.  Schedules Direct users can use this option to use MythTV Backend Setup to configure XMLTV.
    • Always select the option to stop the backend if it is running.  This item will remain grayed out if the backend is not running.  At this step, the backend will normally not be running.
    • Click the MythTV Backend Setup button.
  13. Setup the backend (part one):
    • In General, set the security pin to 0000.
    • In General, set the IPv4 primary IP address to the address used in setting the static IP address above.
    • In Capture Cards, press enter with new capture card highlighted, press the down key to highlight new capture card, and press enter.
    • Select HDHomeRun networked tuner, press the right arrow key, press enter with use HDHomeRun... selected to enable it, and in Recording Options, deselect EIT scanning.
    • Repeat the above step three times for the three available tuners.
    • In Video Sources, create a new source, name it NG, set the listing grabber to no grabber, the CF table to default, and the network ID to -1.  This step will be different for Schedules Direct users.
    • In Input Connections, create three connections, set the display name to Prime1, Prime2 and Prime3, set the name to MPEG2TS, and set the source to NG.  This step will be different for Schedules Direct users.
    • In Storage Directories, set the default to /var/lib/mythtv/recordings/, and set live TV to /var/lib/mythtv/livetv/.  Do not copy and paste the path text.
    • Save, and press Esc to exit myth-setup.  Do not start the backend, and do not update the database when prompted upon exiting.
  14. Reboot the PC.
  15. Start MCP, click Setup, and apply the option to enable networking.
  16. Scan for channels and add channels to MythTV:
    • Start Firefox, and access the HDHomeRun Prime's web page interface by going to and then going to the "base url" listed on the discover page.
    • Left click Channel Lineup.
    • Left click Detect Channels, and give it about 20 minutes to detect all channels.  The channel numbers should appear as the scan progresses.  Channels marked "DRM" will not work with MythTV.  With Comcast, only premium channels such as HBO are generally marked "DRM".
    • Add channels to MythTV using the script.  The usage instructions can be found here.  This script is compatible with using the guide data sources noted above.  If Schedules Direct is to be used, using this script is not recommended.
  17. Start MCP, click Setup, stop the backend if running, and click the MythTV Backend Setup button.
  18. Setup the backend (part two):
    • In Channels, delete the channels that are not needed by pressing the D key with the channel selected.
    • In Input Connections, set the starting channel to the desired channel number.
    • Exit myth-setup.  Do not start the backend, and do not update the database when prompted upon exiting.
  19. Reboot the PC.
  20. Optionally start MCP, and install Mythweb.  The developmental modules will need to be enabled for the version of MCP that is current at the date of this blog posting.
  21. Set the sound output in Ubuntu:
    • Left click the lower left Show Applications icon, and left click Settings.
    • In Sound, set the output to HDMI/displayPort-Built-in Audio.
    • Close the settings window.
  22. Setup the frontend:
    • Left click the lower left Show Applications icon, and left click MythTV Frontend.
    • In Setup, select Setup Wizard.
    • In the wizard, choose an audio device, and select Test Speakers.  Change the audio device and test again until the test sound can be heard.  
    • Also in the wizard, choose VAAPI Normal for the video playback profile.  After this step, it should be possible to watch live TV.
    • In Video, select Playback.
    • Use the arrow keys to highlight Current Video Playback Profile, and press the right arrow key.
    • For the vaapi entry, deselect Deblocking filter, and set the primary and fallback deinterlacer to none.  I have all 720p channels, so I do not need deinterlacing.
    • Set the deinterlacer quality for both rates to none. 
  23. Install hdhrepg2myth using the directions shown here.
  24. Install mythrecmaze using the directions shown here.
  25. Start MCP, click Startup Behavior, and apply the option to automatically start MythTV Frontend.


  1. This has been very helpful. I just used Mythbuntu Control Panel and have one question. When I exit mythtv setup, it asks if I want to start the backend, but my normal user password doesn't work--is this because it is starting the backend setup with the mythtv user?

  2. I'm glad you found it useful. It is a user issue. Choose no when asked about starting the backend and reboot. The backend will automatically start after booting.

  3. I thought there might be a way to start it without restarting. It's been years since I've upgraded my box...setup things have changed a little. Last time I installed was when Mythbuntu was an official distribution.