<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I archive my recordings using nuvexport to
transcode to xvid and then burn the files to dvd.</FONT></DIV>
<DIV><FONT face=Arial size=2>So I want to watch these data-dvds from my frontend
and tinkered the following:</FONT></DIV>
<DIV><FONT face=Arial size=2>It mounts the cd/dvd to the dvd-rom and checks
if there's an VIDEO_TS folder available.</FONT></DIV>
<DIV><FONT face=Arial size=2>If yes, then it starts xine to play the inserted
disc as video-dvd.</FONT></DIV>
<DIV><FONT face=Arial size=2>If no, it writes a playlist to the userhome and
plays it with mplayer.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) Wrapper script dvd.sh.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You probably have to change some of the
variables/paths to fit your box.</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>I'm on Gentoo, so you probably have to change
"/dev/dvd" to something else like "/dev/cdrom" or
"/dev/cdroms/cdrom0".</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#!/bin/bash</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> TONUL=">/dev/null
2>&1"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> MNTPT="/mnt/cdrom"<BR>
DEVIC="/dev/dvd"<BR> PLIST="${HOME}/playlist.mply"<BR>
XINEB="/usr/bin/xine"<BR> MPLAY="/usr/bin/mplayer -ac hwac3, -ao
alsa:device=spdif -vo xv -fs -zoom -really-quiet -playlist"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> sudo mount ${DEVIC} ${MNTPT}<BR> if [
$? -ne 0 ]<BR> then<BR> sudo umount
${MNTPT}<BR> exit 1<BR> fi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> ISDVD=`ls ${MNTPT} | grep
VIDEO_TS`</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if [ -n "${ISDVD}" ]<BR>
then<BR> sudo umount ${MNTPT}<BR> ${XINEB}
-pfh --no-splash dvd://<BR> else<BR> rm -f ${PLIST}
${TONUL}<BR> find /mnt/cdrom -type f >>
${PLIST}<BR> ${MPLAY} ${PLIST}<BR> sudo
umount ${MNTPT}<BR> fi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If executed as root, you should remove the leading
"sudo" in some lines and skip to step 3).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2) If executed as normal user, you have to add your
user/group to sudoers.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is done by:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># visudo</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>add this lines:</FONT></DIV>
<DIV><FONT face=Arial size=2><your_mythtv_user>
<your_hostname>=NOPASSWD:/usr/bin/sudo</FONT></DIV>
<DIV><FONT face=Arial size=2>%users ALL=/bin/mount /dev/dvd /mnt/cdrom,
/bin/umount /mnt/cdrom</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3) To profit from mplayers ability to browse
through the playlist you have to add this to your ~/.lircrc:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>begin<BR> prog = mplayer<BR> button =
Replay<BR> config = pt_step -1<BR> repeat = 1<BR>end</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>begin<BR> prog = mplayer<BR> button =
Skip<BR> config = pt_step +0<BR> repeat = 1<BR>end</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This adds functionality to the skip+/- buttons to
the Hauppauge grey remote.</FONT></DIV>
<DIV><FONT face=Arial size=2>Like everything else you will probably have to fit
it to your needs :)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope this helps somebody!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>md</FONT></DIV></DIV></BODY></HTML>