If all you want is a DVD that you can play in your home consumer DVD
player and you don't care about chapters and titles, then here's what I
do.
Move 2 to 4 recordings (2 hours of broadcast time total) into a
directory. execute the following script from that directory. It
creates a DVD subdirectory from which I can easily add into k3b and burn
to a video DVD. It's based on a script available online for mythtv.
HTH,
-rsh
---
#!/bin/bash
DIR="DVD"
function convert_mp2()
{
#return 0
nice -n19 mpeg2desc -a0 < "$1" > aud0 &
nice -n19 mpeg2desc -v0 < "$1" > vid0 &
nice -n19 mplex -f 8 -V -o dvdmpg aud0 vid0 &
nice -n19 dvdauthor -o "$2" -f dvdmpg &&
nice -n19 dvdauthor -o "$2" -T
}
function convert_avi()
{
#return 0
#nice -n19 movie-to-dvd -m ntsc -M -o "$2" "$1"
nice -n19 movie-to-dvd -m ntsc -M "$1" &&
nice -n19 dvdauthor -o "$2" -f "${1%.*}".vob &&
nice -n19 dvdauthor -o "$2" -T
if [ -a "${1%.*}".vob ]; then rm "${1%.*}".vob; fi
}
function convert_wmv()
{
echo "cannot handle variable fps files in mkdvd ($1)"
return 0
mencoder "$1" -o "${1%.*}".avi -ovc lavc -oac lavc > /dev/null
}
#####################
if [ -d $DIR ]; then rm -fr $DIR; fi
if [ -p aud0 ]; then rm aud0; fi
if [ -p vid0 ]; then rm vid0; fi
if [ -p dvdmpg ]; then rm dvdmpg; fi
for val in *.wmv
do
echo ____________________________
echo converting $val to AVI
echo .............................
if [ -f "$val" ]; then convert_wmv "$val" "$DIR"; fi
echo .............................
done
for val in *.avi
do
echo ____________________________
echo adding $val to $DIR
echo .............................
if [ -f "$val" ]; then convert_avi "$val" "$DIR"; fi
echo .............................
done
mkfifo aud0
mkfifo vid0
mkfifo dvdmpg
for val in *.mpg *.nuv
do
echo .............................
echo adding $val to $DIR
if [ -f "$val" ]; then convert_mp2 "$val" "$DIR"; fi
echo .............................
done
rm aud0
rm vid0
rm dvdmpg
#####################
On Mon, 2006-04-10 at 17:17 +0100, Trev Jackson wrote:
> Hi Kyrre
>
> I hope this helps, this is way I do it:
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users