<!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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1) Wrapper script dvd.sh.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#!/bin/bash</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; TONUL="&gt;/dev/null 
2&gt;&amp;1"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; MNTPT="/mnt/cdrom"<BR>&nbsp; 
DEVIC="/dev/dvd"<BR>&nbsp; PLIST="${HOME}/playlist.mply"<BR>&nbsp; 
XINEB="/usr/bin/xine"<BR>&nbsp; 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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; sudo mount ${DEVIC} ${MNTPT}<BR>&nbsp; if [ 
$? -ne 0 ]<BR>&nbsp; then<BR>&nbsp;&nbsp;&nbsp; sudo umount 
${MNTPT}<BR>&nbsp;&nbsp;&nbsp; exit 1<BR>&nbsp; fi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; ISDVD=`ls ${MNTPT} | grep 
VIDEO_TS`</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; if [ -n "${ISDVD}" ]<BR>&nbsp; 
then<BR>&nbsp;&nbsp;&nbsp; sudo umount ${MNTPT}<BR>&nbsp;&nbsp;&nbsp; ${XINEB} 
-pfh --no-splash dvd://<BR>&nbsp; else<BR>&nbsp;&nbsp;&nbsp; rm -f ${PLIST} 
${TONUL}<BR>&nbsp;&nbsp;&nbsp; find /mnt/cdrom -type f &gt;&gt; 
${PLIST}<BR>&nbsp;&nbsp;&nbsp; ${MPLAY} ${PLIST}<BR>&nbsp;&nbsp;&nbsp; sudo 
umount ${MNTPT}<BR>&nbsp; fi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is done by:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># visudo</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>add this lines:</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;your_mythtv_user&gt;&nbsp; 
&lt;your_hostname&gt;=NOPASSWD:/usr/bin/sudo</FONT></DIV>
<DIV><FONT face=Arial size=2>%users&nbsp; ALL=/bin/mount /dev/dvd /mnt/cdrom, 
/bin/umount /mnt/cdrom</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial 
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>begin<BR>&nbsp; prog = mplayer<BR>&nbsp; button = 
Replay<BR>&nbsp; config = pt_step -1<BR>&nbsp; repeat = 1<BR>end</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>begin<BR>&nbsp; prog = mplayer<BR>&nbsp; button = 
Skip<BR>&nbsp; config = pt_step +0<BR>&nbsp; repeat = 1<BR>end</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>#========================================================================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Hope this helps somebody!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>md</FONT></DIV></DIV></BODY></HTML>