Autostart mythtv (using restartscript)

mythbox:~$ sudo vim /usr/local/bin/restartmyth.sh

#!/bin/bash
## mythrestart.sh
## Automatically restart mythfrontend if it fails.
## Loop the call of mythfrontend.

while [ /bin/true ]
do
        killall mythfrontend
        killall mythlogserver
        killall mythlcdserver
        mythfrontend -v playback >> /tmp/mythfrontend.log
sleep 2
done

mythbox:~$ sudo chmod 755 /usr/local/bin/restartmyth.sh

First enable Automatic login from the gnome Settings panel.
Schedule the script to start after login (using gnome)

mythbox:~$ vim .config/autostart/restartmythtv.desktop

[Desktop Entry]
Name=restartmythtv
GenericName=Restart mythfrontend
Comment=Restart mythtfrontend when it crashes
Exec=/usr/local/bin/restartmyth.sh
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true

Restart the computer

Kodi and Mythtv

Note: this blog was previously written for XBOX media centre (XBMC). It has been replaced by Kodi since a long time. Please read kodi instead of xbmc below.

In 2010 I wrote:
I recently tried XBMC on one of my mytfrontends. I must say, I was impressed by the user interface.

To run xbmc besides mythfrontend I had to do some tweaking to this mythbuntu frontend. To install, first add these lines to /etc/apt/sources.list

deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main

Kodi can nowadays be found in the stable repository of Debian.

Continue reading

Mythtv – Adjust progress bar

# vim /usr/share/mythtv/themes/MythCenter-wide/osd.xml

Find “osd_status”

<window name=”osd_status”>
<fontdef name=”medium” face=”Droid Sans”>
<pixelsize>28</pixelsize>
<color>#EEEEEE</color>
<weight>bold</weight>
</fontdef>
<area>50,520,1180,100</area>
….

And change:

<area>50,520,1180,100</area>

to:

<area>5,52,118,10</area>

Restart mythfrontend

The progress bar will show up on top of the screen. This will keep the subtitles visible when pausing and unpausing recordings.