Current master and fixes/31 require a modified ./configure line as mythfrontend is now run from console using QT_QPA_PLATFORM=eglfs mythfrontend, but see later in this post.
For mythfrontend/backend, ignoring mythplugins for now:
Code: Select all
./configure --prefix=/usr --disable-vdpau --enable-opengl --disable-vaapi --cpu=cortex-a7 --arch=armv7 --extra-cflags=-mfpu=neon --extra-cxxflags=-mfpu=neon
Note the use of --prefix=/usr, this causes install to go in /usr/ rather than /usr/local/
Now for running mythfrontend.
Depending on the TV connected to the Raspberry Pi, it is possible that mythfrontend invoked by
Code: Select all
QT_QPA_PLATFORM=eglfs mythfrontend
may use a resolution and refresh rate which is not the best for playback and LiveTV.
This is due to qt under eglfs deciding on the resolution based on edid from the TV.
On my Pi4 connected to a 4K TV tvservice -s reports at the console:
Code: Select all
pi@pi4-20200317:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
running mythfrontend via
QT_QPA_PLATFORM=eglfs mythfrontend tvservice -s reports (via ssh from another machine)
Code: Select all
pi@pi4-20200317:~ $ tvservice -s
state 0xa [HDMI CUSTOM RGB lim unknown AR], 4096x2160 @ 30.00Hz, progressive
which will give very poor playback and LiveTV.
I have a script which resolves this issue (you may still have to set hdmi_mode and hdmi_group in /boot/config.txt depending on your TV and broadcast standard).
This script (run_mythfrontend.sh) and a companion script (run_mythsetup.sh) for mythtv-setup where mythbackend is being run on Pi4 are available from my github at
https://github.com/MikeB2013/pi-utils. I suggest both scripts are put in /home/pi/ (make sure they are executable chmod +x <scriptname>). The github repository also contains an updated version of pi-mythbackend-helper.sh which automatically updates xmltv to the latest version on github.
To make mythfrontend run automatically on boot, put /home/pi/run_mythfrontend.sh as the last line in /home/pi/.bashrc
Mike