Wednesday, July 9, 2025

MythTV v35 Example Installation Steps with Ubuntu 24.04

I used the steps below to install MythTV v35 and configure MythTV and the system to use a Magewell Pro Capture HDMI (model 11040) card.  An ASUS Prime B760M-A AX microATX motherboard was used with an Intel Core i3-12100 processor.  The steps below can be used to record and watch live TV using MythTV.  The MythTV wiki has guidance for installing the additional software needed for guide data and to automatically change the channel depending on the EPG source and cable box or other source device being used.  

Search for Magewell Pro Capture Cards on Amazon

ASUS Prime B760M-A AX microATX Motherboard on Amazon

Install Ubuntu

  1. After inserting the Magewell card in the PCI slot, Install Ubuntu using the default apps (essentials) option.  Installing the latest LTS desktop version is recommended.  The latest Ubuntu LTS version as of the date of this blog post is 24.04.  The installation iso file for installing Ubuntu Desktop LTS can be found at https://ubuntu.com.  If you are unfamiliar with installing Ubuntu, an official tutorial is available at https://ubuntu.com/tutorials/install-ubuntu-desktop.  
  2. Boot into Ubuntu, activating Ubuntu Pro as part of the installation finalization options presented is recommended, and start Software Updater.  
  3. Install all available updates.  
  4. Reboot, check for and apply updates again, and repeat checking for updates until Software Updater indicates there are no more updates.

Install Magewell Card Driver

  1. At this point, the light on the back of the Magewell card should be blinking blue.  Download the latest Magewell driver from https://www.magewell.com/downloads/pro-capture#/driver/linux-x86.
  2. Extract the tar.gz file.
  1. Create a folder named src in your home folder, and create a folder named Magewell in the src folder.
  2. Copy the extracted ProCaptureForLinux folder into the Magewell folder.  The driver may need to be reinstalled in the future after updating Ubuntu depending on the type of update, so do not delete the driver files.
  3. Open the Terminal app to install build-essential and install the driver:
sudo apt install build-essential
cd src/Magewell/ProCaptureForLinux*
sudo ./install.sh

  1. A message should appear indicating the driver was successfully installed.  Connect the cable box or other source device to the Magewell card, and power the source device on.
  2. The light on the back of the Magewell card should now be solid blue and not blinking.  From this point onwards, regularly check that the blue light is solid blue and not blinking.  Reinstall the driver if needed.
  3. Open the Terminal app to install FFmpeg and set two variables:
sudo apt install ffmpeg
export VIDEO=/dev/video0
export AUDIO=sysdefault:CARD=HDMI

  1. The variables set using the export command do not survive a reboot, so these need to be set again if the system is rebooted.  These variables are just for testing.  These variables do not need to be set after testing.  Open the Terminal app, and use FFmpeg to make a test recording:
ffmpeg -ac 2 -f alsa -i $AUDIO -c:a copy -f wav - | ffmpeg -f wav -i pipe:0 -f v4l2 -i $VIDEO -c:v libx264 -map 0:a -map 1:v cap.ts

  1. The above should all be on one line.   The command above should create a cap.ts file in the home folder assuming the home folder is the current working directory.  Open the Terminal app to install VLC:
sudo apt install vlc

  1. Open the cap.ts file with VLC.  The video file should play in VLC with audio assuming the source device is not using HDCP and provided video with audio.
  1. Rebooting is recommended.

Install Magewell2TS

  1. Download the Magewell SDK from https://www.magewell.com/sdk.
  2. Extract the tar.gz file.
  3. Copy the extracted Magewell_Capture_SDK_Linux folder into the Magewell folder created earlier.
  4. Open the Terminal app to install Git and download Magewell2TS into the Magewell_Capture_SDK_Linux folder (reference: https://github.com/jpoet/Magewell2TS by jpoet):
sudo apt install git
cd src/Magewell/Magewell_Capture_SDK_Linux*
git clone https://github.com/jpoet/Magewell2TS.git

  1. Open the Terminal app to install some additional packages and to compile and install Magewell2TS:
sudo apt install libv4l-dev cmake libudev-dev libvpl-dev
sudo apt install intel-media-va-driver-non-free
sudo apt install libavfilter-dev libavdevice-dev
sudo apt install libasound2-dev
sudo apt install pkg-config
cd src/Magewell/Magewell_Capture_SDK_Linux*/Magewell2TS
mkdir build
cd build
cmake ..
make
sudo make install
sudo apt install libmfx1
sudo apt install intel-opencl-icd

  1. Open the Terminal app and modify permissions as indicated at https://www.intel.com/content/www/us/en/developer/articles/guide/onevpl-installation-guide.html and install libmfx-gen1.2:
sudo gpasswd -a ${USER} render
newgrp render
sudo apt install libmfx-gen1.2

  1. Rebooting is recommended.
  2. Check for a solid blue light.
  3. Open the Terminal app to test Magewell2TS:
magewell2ts -i 1 -m -c hevc_qsv | ffmpeg -i pipe:0 cap.ts

  1. The above command should generate a video file with audio that is playable using a default installation of VLC.  The CPU usage will be higher than the implementation with MythTV as described below.

Install MythTV

  1. Install Mythbuntu Control Panel (MCP) by following the instructions at https://www.mythtv.org/wiki/Mythbuntu_Control_Panel.
  2. Start MCP, click Repositories, select the option to activate the MythTV updates repository, select MythTV version 35, and click Apply.
  3. Close MCP, start Software Updater, and install any updates found.
  4. Start MCP, click the System Roles tab, select Primary Backend and Desktop Frontend, and click Apply. Select the XMLTV option if Schedules Direct will be used for the guide data.
  5. Select the Setup tab, select and apply the option to add the current user to the mythtv group.
  6. Rebooting is required here.

Configure MythTV and the System

  1. Open the Terminal app, and add the mythtv user to the render group:
sudo usermod -a mythtv -G render

  1. Open the Text Editor app to add and save the following as magewell.conf in your home folder:
[VARIABLES]
INPUT=1
DEVICE=box1
CODEC=hevc_qsv
 
[RECORDER]
command="/usr/local/bin/magewell2ts -i %INPUT% -m -c %CODEC%"
desc="%DEVICE%-%INPUT%"

[TUNER]
channels=/home/mythtv/ext-channels.conf
timeout=30000 

  1. This step is required, but channels are irrelevant at this point because there is not yet a channel changing script.  Without this script, the channel/content currently being shown by the source device is what will be recorded.  This step is required because it will not be possible to set a manual recording in MythTV with no channel.  Save a text file named ext-channels.conf in your home folder with at least two channels:
[12]
NAME=CBS
CALLSIGN=CBS
XMLTVID=tmp12

[25]
NAME=ABC
CALLSIGN=ABC
XMLTVID=tmp25

  1. Open the Terminal app to copy the conf files to the /home/mythtv folder:
cp ./magewell.conf /tmp/magewell.conf
cp ./ext-channels.conf /tmp/ext-channels.conf
sudo su mythtv
cp /tmp/magewell.conf /home/mythtv/magewell.conf
cp /tmp/ext-channels.conf /home/mythtv/ext-channels.conf
exit

  1. Start MCP, click the Setup tab, and apply the option to link config.xml. 
  2. Click the backend setup button to open the web app in a browser. 
  3. In the following steps, click save after editing each section.  
  4. General Tab:
    • Verify the security pin is set to 0000.
    • Set the IPv4 primary IP address to the static address used by the backend computer being configured.
  5. Capture Cards Tab:
    • Click the button for a new capture card, and then select External Recorder.
    • Click External, and enter the command for the command path as:
/usr/bin/mythexternrecorder --conf /home/mythtv/magewell.conf

  1.  Video Sources Tab:
    • Click the button for a new video source.
    • Click New, enter NG for the name, set the listing grabber to no grabber, verify the CF table is set to default, and verify the the network ID is set to -1.  This step will be different for Schedules Direct users.
  2. Input Connections Tab:
    • Set the input name to MPEG2TS, display name to Magewell, and the video source to NG.  This step will be different for Schedules Direct users.
    • Click the option to scan for channels.
    • Select the option to import from External Recorder and click Start Scan.  A message should appear indicating the two channels were found.
    • Select a starting channel.
  3. Storage Groups Tab:
    • Set the default to /var/lib/mythtv/recordings.
    • Set live TV to /var/lib/mythtv/livetv. 
  4. Click Restart Backend Full Operation.
  5. If networking is needed with other MythTV frontends accessing the backend, use MCP to enable networking.
  6. Rebooting is recommended.
  7. Configure the 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. 

It should now be possible to watch live TV, make recordings, and watch recordings using MythTV.  If you see a way to improve the steps above, please post a comment.

Intel Core i3-12100 Quad-Core Processor on Amazon

Saturday, March 8, 2025

Building a New Computer For Use With an Older Monitor With a DVI-D Connection

If you are purchasing a new motherboard to build a computer and would like to connect it to an older monitor with a DVI-D connection, there are options available.  Finding a new motherboard with integrated graphics having a DVI-D port can be difficult, but the motherboard manufacturer Gigabyte does still have DDR4 compatible boards and DDR5 compatible boards available with a DVI-D port.  Another option is to purchase a motherboard with a DisplayPort connection and use a DisplayPort to DVI adapter.

GIGABYTE H610M S2H V2 DDR4 Motherboard

Brand:  GIGABYTE

CPU Socket:  LGA 1700

Compatible Devices:  Personal Computer

RAM Memory Technology:  DDR4

Compatible Processors:  12th Gen Intel Core

Chipset Type:  Intel H610

Memory Clock Speed:  2133 MHz

Model Name:  H610M S2H V2 DDR4

Memory Storage Capacity:  64 GB

See this motherboard on Amazon


BENFEI DisplayPort to DVI, Gold-Plated DP to DVI Adapter (Male to Female)

COMPACT DESIGN - The compact-designed portable Benfei DisplayPort to DVI adapter connects a computer, desktop, laptop, or other devices with DisplayPort port to a monitor, projector, HDTV, or other devices with DVI port.

SUPERIOR STABILITY - The built-in advanced IC chip converts DisplayPort signal to DVI signal.  It is NOT a bi-directional converter and cannot transmit signals from DVI to DisplayPort.

INCREDIBLE PERFORMANCE - The DisplayPort male to DVI female converter supports resolutions up to 1920x1080@60Hz (1080p Full HD), including 720p, 1600x1200, 1280x1024 for high definition monitors or projectors.  The gold plated DisplayPort connector resists corrosion and abrasion and improves the signal transmission performance. 

LATCHES DESIGN: Latches provide a secure connection.  When unplug the device, please press the release button and pull it out.

18 MONTH WARRANTY - The exclusive Benfei Unconditional 18-month Warranty ensures long-time protection of your purchase. 

See this adapter on Amazon

Thursday, March 30, 2023

Top Five Ubuntu Music and Game Apps

The music and game applications listed below can be found in and directly installed using the App Center (Ubuntu Software) application with a standard Ubuntu installation.   The listed music apps can stream your favorite music over the internet.  Home media center apps are not included.  Some of the apps can also download music for offline use.  Stand-alone game apps are included, but games needing an emulator or a gaming service application such as Steam are not included.  The top five highest rated apps were determined using the ratings as reported in the Ubuntu Software application.  The average user rating was given a weight of three, and the number of ratings was given a weight of one when sorting the top apps.  The number of stars listed is out of five stars.  The rating information is current as of March 2023.

If you use some of the apps listed, please take a moment to rate the apps in the Ubuntu Software.  If you find an issue with an app, please report the specific issue to the developer and include a description of the issue in the Ubuntu Software rating comment, and include a workaroud description if possible.  If you see an app I missed that should be included using the criteria listed above, please mention it in the comments below.

SanDisk 8GB Clip Jam FM Radio and MP3 Player on Amazon


Top Five Music Apps

Shortwave comes in first place with 4.5 stars and 148 reviews.  Shortwave is an internet radio player that provides access to a station database with over 30,000 stations.  It allows you to search for streaming stations and create your own library containing your favorites.  Additionally, Shortwave can automatically recognize songs.  It is compatible with with large and small screens.  You can also play audio on supported network devices, such as a Google Chromecast.


More information and image source:  gitlab.gnome.org/World/Shortwave

Olivia Cloud Music Player comes in second place with 4.3 stars and 152 reviews.  Olivia is an online cloud based music player like iTunes, Spotify, etc, and it also allows the playback of music while offline.  Olivia allows you to search any music online, stream it, and you can set the player to cache the stream while playing it. Olivia lets you create and manage your music library.

More information and image source: github.com/keshavbhatt/olivia

Poddr comes in third place with 4.1 stars and 50 reviews.  Poddr is a free podcast player for Linux, Windows and Mac.  Poddr uses the iTunes API to gather information. Since iTunes has the largest podcast library in the world, this means you will most likely find something of interest no matter if you want music, politics or comedy. If your favorite podcast feed is missing you can manually add it with ease to your favorites.

More information and image source:  github.com/Sn8z/Poddr

Pithos comes in fourth place with 4.1 stars and 39 reviews.  Pithos is a native Pandora Radio client that is more lightweight than the pandora.com web client and integrates with the desktop.  It supports most of the functionality of pandora.com such as rating songs, creating/managing stations, quickmix, etc. On top of that, it has features such as last.fm scrobbling, media keys, notifications, proxies, and MPRIS support.

More information and image source:  pithos.github.io

Spotify comes in fifth place with 3.6 stars and 2103 reviews.  Of all the apps compared, Spotify has the highest number of reviews.  Play your favorite songs and albums free on Ubuntu with Spotify.  Browse the charts or fire up ready-made playlists in every genre and mood.  Discover new music, and optionally build custom playlists.  Stream Spotify for free with occasional ads, or choose the premium option for an ad-free experience.

More information:  snapcraft.io/install/spotify/ubuntu

Top Five Game Apps

Oh My Giraffe comes in first place with 4.7 stars and 183 reviews.  Eat fruit while being chased by lions. You play as an adorable and stretchy giraffe running through the savanna. Chew through vines to make the fruit bounce off your butt and hit those scary lions in the face. Don't be concerned about the fruit being too high as your flexible neck will let you reach everything. Don't forget that the lions sleep at night. That's your chance to gobble down as much fruit as possible, but be careful to not wake the lions.

More information:  www.ohmygiraffe.com

0 A.D. (pronounced “zero-ey-dee”) comes in second place with 4.5 stars and 1158 reviews.  0 A.D. is a free, open-source, historical real-time-strategy game currently being developed by Wildfire Games, a global group of volunteer game developers.  As the leader of an ancient civilization, you must gather the resources you need to raise a military force and dominate your enemies.

More information and image source:  play0ad.com

SDLPoP comes in third place with 4.7 stars and 58 reviews.  SDLPop is an open-source port of the 1989 Prince of Persia video game.  It was made possible by the disassembly of the original DOS version.

More information:  snapcraft.io/sdlpop

Mr. Rescue comes in forth place with 4.5 stars and 50 reviews.  Mr. Rescue is an arcade styled 2D action game centered around evacuating civilians from burning buildings.  The game features fast paced fire extinguishing action, intense boss battles, a catchy soundtrack and lots of throwing people around in pseudo-randomly generated buildings.

More information and image source: github.com/snapcrafters/mrrescue

SuperTuxKart comes in fifth place with 4.4 stars and 964 reviews.  SuperTuxKart is a 3D open-source arcade racer with a variety of characters, tracks, and modes to play. This game provides an enjoyable experience for all ages.  Discover the mystery of an underwater world, or drive through the jungles of Val Verde and visit the famous Cocoa Temple. Race underground or in a spaceship, through a rural farmland or a strange alien planet. Or rest under the palm trees on the beach, watching the other karts overtake you. But don't eat the bananas! Watch for bowling balls, plungers, bubble gum, and cakes thrown by your opponents.

More information:  supertuxkart.net