I started with mythtv-light and the Pi running headless with VNC. On starting mythtv-setup I got errors "QXcbConnection: Failed to initialize XRandr", "failed to open vchiq instance" and "Segmentation fault". Then I tried it with X forwarding, no luck.
Rather than chase down problems like this so early in the game I decided to build from source. First without Ansible and using the dependencies listed at https://www.mythtv.org/wiki/Build_from_Source I quickly encountered "Package libcrystalhd-dev is not available, but is referred to by another package" with no obvious way to install libcrystalhd-dev.
Then building dependencies with Ansible worked better. The instructions said to run configure like this:
Code: Select all
./configure --enable-openmax --disable-vdpau --disable-opengl-video --enable-opengl --disable-opengl-themepainter --disable-vaapi
Code: Select all
./configure --disable-vdpau --enable-opengl --disable-vaapi
I was a bit puzzled by the instruction to use "useradd --system mythtv" to create the backend user. Why a system user? And this command does not create a home directory for mythtv, is that intentional? I would be running the frontend as the existing "pi" user.
I started the backend like this:
Code: Select all
sudo /usr/local/bin/mythbackend -d --logpath /var/log/mythtv/ --user mythtv
My tuner is a Hauppauge WinTV DualHD which worked without issues on the PC running 0.29. On the Pi4 it did not work at all and I found "firmware file 'dvb-demod-si2168-02.fw' not found" in syslog. After a great deal of web searching and head scratching I finally figured out to download this file:
Code: Select all
https://github.com/OpenELEC/dvb-firmware/blob/master/firmware/dvb-demod-si2168-02.fw?raw=true
Another special thing I had to do was enable HDMI audio output in raspi-config.
It's working pretty well now. My most recent puzzle is why do I see errors like this in the logs, and does it matter?
Code: Select all
2020-07-29 05:29:57.144314 E [1368/10050] Metadata_13316 jobqueue.cpp:2251 (DoMetadataLookupThread) -
JobQueue: Metadata Lookup Errored: "Deutsche Welle English News"
recorded from channel 2030 at 2020-07-28T19:29:00Z (Failed with Exit Status 128)