One of the problems with the script is that it takes the location of the VideoStartupDir and VideoArtworkDir from the settings table, and if there is more than one VideoStartupDir / VideoArtworkdir entry in the settings table then it uses the first one it comes up with. Often there is more than one entry because there is one entry per client that has ever connected.
see this line in /usr/local/bin/screenshooter.sh, there is a similar one in relation to VideoStartupdir
Code:
VIDEO_CAPTURE_HOME=$(mysql -u $DBUSERNAME --password=$DBPASSWORD -h $BACKEND_HOSTNAME mythconverg -sNBe "select data from settings where value='VideoArtworkDir' limit 1")
Also the author says:
Quote:
# limitations:
# --
# In an MBE/SBE/FE setup this might get the settings for the wrong machine...
As all of the entries except the correct one were redundant in my setup, I deleted the three that related to old clients and the script started working. Its running through the 100's of videos I have and i will report back.
A better solution would be to change the above line to search for parameters by restricting it to the hostname, something like:
Code:
VIDEO_CAPTURE_HOME=$(mysql -u $DBUSERNAME --password=$DBPASSWORD -h $BACKEND_HOSTNAME mythconverg -sNBe "select data from settings where value='VideoArtworkDir' AND hostname=$HOSTNAME")
NB I haven't tried that, as its now redundant for me because I cleared out the extra entries.