Monday, August 1, 2022

Google Pixel 6 Audio Cable Connection to RCA Stereo Input Jacks


USB to RCA cable shown in video:  www.amazon.com/dp/B09K721...

This video describes an easy solution to connect a phone with a USB Type-C port to an older audio receiver with stereo RCA input jacks.  A Google Pixel 6 and a Sony audio receiver are shown in the video.


Saturday, May 28, 2022

MythTV v32 Example Installation Steps with Ubuntu 22.04

I used the steps shown below to install MythTV v32 on Ubuntu 22.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.  

MSI MPG B560I Gaming Edge WiFi Gaming Motherboard
The guide data source is from SiliconDust and TVMaze, and this differs from the more commonly used Schedules Direct source.  This video shows example backend setup steps using Schedules Direct, which differ from the steps shown below.
  1. Install Ubuntu using the minimal install option.  The installation iso file and instructions for installing Ubuntu Desktop LTS can be found at https://ubuntu.com.
  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, 75.75.75.75,75.75.76.76 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 32, 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 if hdhrepg2myth or mythrecmaze is being used as guide data source.  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 can be used if hdhrepg2myth or mythrecmaze is being used as guide data source, but it is optional.  Schedules Direct users need to enable this option to use MythTV Backend Setup to configure the guide data grabber.
    • 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 in a new install, 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 (see the video linked to above).
    • 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.  This step will be different for Schedules Direct users.
  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  http://my.hdhomerun.com/discover 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 hdhrchan2myth.py 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.  This step will be different for Schedules Direct users (see the video linked to above).
  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 or hide the channels that are not needed by pressing the D key or setting the visible option to not visible.
    • In Input Connections, set the starting channel to the desired channel number.
    • Exit the backend setup.  Do not start the backend, and do not update the database when prompted upon exiting.  This step will be different for Schedules Direct users (see the video linked to above).
  19. Reboot the PC.
  20. Optionally start MCP, and install Mythweb.  Mythweb is very convenient for setting and managing recordings.
  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. Optionally install hdhrepg2myth using the directions shown here.  This provides guide data from SiliconDust.
  24. Optionally install mythrecmaze using the directions shown here.  This provides guide data from TVMaze.
  25. Start MCP, click Startup Behavior, and apply the option to automatically start MythTV Frontend.

Monday, May 23, 2022

MythTV v32 Example Backend Setup on Ubuntu 22.04 with Schedules Direct and HDHomeRun Prime


HDHomeRun Prime on Amazon: https://amzn.to/3yW7sEE
HDHomeRun NextGen TV ATSC 3.0 on Amazon: https://amzn.to/3LGID2f

This video shows example backend setup steps using an HDHomeRun Prime tuner and guide data from Schedules Direct.

The operating system used is Ubuntu, which can be downloaded from https://ubuntu.com.

Instructions for installing Mythbuntu Control Panel can be found at https://www.mythtv.org/wiki/Mythbuntu_Control_Panel.

The setup steps are different depending on the tuner being used.  Helpful information can be found on the MythTV wiki at https://www.mythtv.org/wiki/.  Help can also be obtained by posting questions on the MythTV forum at https://forum.mythtv.org.

Fetching the channels from the listing source can take a long time.  Even with a fast processor and abundant memory, running mythfilldatabase can take a long time.  Give these time to finish.

Some intermediate clear steps are skipped in the video.  When configuring the listings grabber, I accepted many of the defaults by just pressing enter.

The configuration of the tv_grab_zz_sdjson grabber is shown.  This grabber will likely be changed in the near future to be compatible with server software changes that Schedules Direct will be implementing.  Updating the grabber may be necessary if the Ubuntu package containing the grabber is not updated automatically.  More information about this can be found at  https://forums.schedulesdirect.org/viewtopic.php?f=18&t=3201 on the Schedules Direct forums.