[Index] [TitleIndex] [WordIndex

To add a "Commands" item to your Main Menu, in local_conf.py, add:

plugin.activate('command', level=45)
COMMANDS_DIR='/usr/share/freevo/fxd/commands'

Eject the Disc

Sometimes freevo's eject button doesn't work (e.g. if you've manually mounted the drive). This command can bail you out.

/usr/share/freevo/commands/Eject\ Disc

set -x
umount /mnt/dvd
eject

DVD-Ripping

Don't forget to "yum install vobcopy". This method of running a script in a window is very useful. Note that the geometry setting here is for 800x600 with gnome-terminal's default font. You may need to adjust the parameters to make the window fit your screen.

/usr/share/freevo/commands/Rip\ DVD

gnome-terminal --geometry=100x35 --full-screen --hide-menubar --disable-factory -t "DVD Ripping" -x /usr/local/bin/ripdvd.sh || exit 1

/usr/local/bin/ripdvd.sh

TITLE=
umask 0002
if [ ! -e /mnt/dvd/video_ts ] ; then
   MOUNTED=1
   echo Mounting the DVD
   mount /mnt/dvd
else
   echo DVD already mounted
   MOUNTED=0
fi

read -e -r -t 30 -p "Enter the DVD title: " TITLE
if [ "$TITLE" != "" ] ; then
        vobcopy -o /home/freevo/Movies -m -t "$TITLE" && eject
else
        vobcopy -o /home/freevo/Movies -m && eject
fi

if [ "$MOUNTED" = "1" ] ; then
   umount /mnt/dvd
fi
read -p "Press ENTER..."

See Also

CommandsFxd - for adding a command to the Main Menu using an fxd (xml) file instead.


2014-02-15 05:35