[mythtv-users] Archiving TV shows to DVD
William
wmunson at rochester.rr.com
Mon Jan 24 17:42:04 EST 2005
> My problem is even easier...I dont want to cut
> commercials...just burn straight to dvd from the .nuv files.
> I have a pvr-250.
Here is the script I use to burn a single recorded show (movie) to dvd. I
also use a pvr-250 for capture. Because I display on a HDTV monitor I run
quite high bitrates (5500/10000 peak) and many movies get too big for a disk
without shrinking so I built an automatic shrink into the script. Here is
the process.
I run the mythlink.sh script to create a directory of nicely named links to
the .nuv files. Then I use avidemux2 to open the file and to split the audio
and video into two files named aud and vid. I also use avidemux2 to trim off
the junk at the start and end of the show. Once the files are created you
are done with avidemux2. Next I run this fully automated script to create
the dvd structure and burn it to disk.
---------snip----------
#!/bin/bash
echo Remove any old files laying around
rm -drf mydvd
rm -f mydvd.tmp
echo Checking video size...
# Calculate the requantization factor
vsize=`ls -l ./vid | awk '{print $5}'`
vsize=`echo $vsize / 1048576 | bc`
echo "vsize = $vsize"
asize=`ls -l ./aud | awk '{print $5}'`
asize=`echo $asize / 1048576 | bc`
echo "asize = $asize"
req=`echo "($vsize + $asize) / 4550" | bc -ql`
echo "requant factor = $req"
# test to see if the first char is a period. If it is, no shrinking needed.
if [ ${req:0:1} = "." ];
then
echo Shrinking not required!!
else
echo Shrinking the video to fit the disk....
req=`echo "$req + 0.1" | bc -ql`
echo Reduction Factor: $req
echo Note: vid has been saved as vid-full
mv -f vid vid-full
tcrequant -i vid-full -o vid -f $req
fi
# Note: the "-O 5995mpt" in mplex creates the proper audio sync for stuff
recorded
# with a pvr-250. Without it the sound track is about 1/2 second behind the
video.
mplex -f 8 -O 5995mpt -V -o mydvd.tmp aud vid
echo "creating dvd file system"
dvdauthor -o mydvd -f mydvd.tmp
dvdauthor -o mydvd -T
rm -f mydvd.tmp
echo Burning DVD
/usr/local/bin/growisofs -Z /dev/scd0 -dvd-video mydvd
--------------snip---------------
More information about the mythtv-users
mailing list