Skip to content

Installing and Setup MythTV on MiniArch

Piotr Oniszczuk edited this page Jan 16, 2025 · 5 revisions

Here is brief procedure how-to install and setup MythTV on MiniArch

1.Install MiniArch

https://github.com/warpme/miniarch?tab=readme-ov-file#quick-start

2.install Mythtv

Install MythtTV package containing MythtTV frontend and backend Start terminal and run:

sudo pacman -S wget

download current version of mythtv-base from https://github.com/warpme/miniarch

sudo pacman -U mythtv-base-master.xxx.yyy.aarch64.pkg.tar.xz

3.init database

Install MariaDB and setup initial MythTV database Start terminal, login as root and execute:

mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql

systemctl start mariadb

systemctl status mariadb

Setup initial MythTV database Start terminal, login as root and execute:

mariadb -u root < /usr/share/mythtv/mc.sql

mariadb-tzinfo-to-sql /usr/share/zoneinfo | mariadb mysql

Setup access rights: Start terminal, login as root and execute:

mariadb -uroot -proot

GRANT ALL ON mythconverg.* TO 'mythtv'@'%' IDENTIFIED BY 'mythtv';

FLUSH PRIVILEGES;

quit;

4.start mythbacked

Start MythTV backenad:

systemctl start mythbackend

systemctl status mythbackend

MythTV will initiate database and this may take few minutes… You can query by issuing systemctl status mythbackend and looking for state where logging becomes "silent"

5.configure backend

  1. In webbrowser type http://<backend_ip>:6544
  2. On left click „Backend Setup” then top menu „General” then set „Host Address Backend Setup” and set:
  3. Primary Address: <your_ip>
  4. Press „Save” button at bottom
  5. Press „Restart Backend” button at top
  6. Press „Enable Updates” button at top
  7. Select „Storage Groups” on top menu
  8. Select Create Videos Group
  9. Press „Add directory
  10. Select dir where you have yours video samples
  11. Press „Save
  12. Press „Restart Backend” button at top

6.start mythfrontend

  1. in new terminal run:

set pass for user mythv: passwd mythtv

su mythtv

mythfrontend.sh

  1. go to „Setup/Audio” and set right audio device. Press Esc and save
  2. go to „Setup/Video/Playback” and in „Current video Profile” select „V4l2 Codecs”. Esc then save
  3. go to „Media Library/Watch Videos
  4. Select „scan videos” You should see your samples
  5. Press Enter to play Press „M” for OSD to i.e. see Playback/Playback Data for decoding details