[mythtv-users] DVD Burning

William wmunson at rochester.rr.com
Fri Feb 10 01:24:18 UTC 2006


Here is my script that does the same thing. It takes into account the offset
in the audio present in pvr based recordings and will shrink a file to fit.

------------------------------
#!/bin/bash

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` 
asize=`ls -l ./aud | awk '{print $5}'` 
asize=`echo $asize / 1048576 | bc` 
req=`echo "($vsize + $asize) / 4350" | bc -ql` 
req2=`echo "$req * $req" | bc -ql`

if [ ${req:0:1} = "." ];   
then
   echo Shrinking not required!!
else  
   echo Shrinking the video to fit the disc. Please wait... 
   echo Reduction Factor: $req2 
   echo Note: vid has been saved as vid-full
   mv -f vid vid-full 
   tcrequant -i vid-full -o vid -f $req2  
fi

mplex -f 8 -V -O -3016mpt -o mydvd.tmp aud vid
#rm aud
#rm vid
echo "creating dvd file system"
dvdauthor -o mydvd -f mydvd.tmp
dvdauthor -o mydvd -T
rm -f mydvd.tmp
echo Burning DVD
#primary burning method, works well and no key or shell required.
growisofs -Z /dev/hdd -dvd-video mydvd
#alternative burning process below, not currently used.
#mkisofs -dvd-video -udf ./mydvd/VIDEO_TS > ./movie.iso
#cdrecord-wrapper.sh dev=0,0,0 -sao ./movie.iso
#echo "cleaning up"
#rm -rf movie.iso
#rm -rf mydvd

------------------------------
-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Joshua Fechner
Sent: Thursday, February 09, 2006 8:02 PM
To: mythtv-users at mythtv.org
Subject: [mythtv-users] DVD Burning


I've been trying to archive my shows to DVD using a script I found.

Here's the script:

!/bin/sh
mkfifo aud0
mkfifo vid0
mkfifo dvdmpg

mpeg2desc -a0 < $1 > aud0 &
mpeg2desc -v0 < $1 > vid0 & 
mplex -f 8 -V -o dvdmpg aud0 vid0 &
dvdauthor -o $2 -f dvdmpg
dvdauthor -o $2 -T

rm aud0
rm vid0

When I use it I do "dvdwrite /video/[name of video] DVD" and it spits out a
directory named DVD.  Then I do "growisofs -Z /dev/dvd -dvd-video DVD" and
it makes a DVD.  When I play the DVD in my stand alone DVD player the fideo
is about 2/3 the size of the screen ( i.e. it's all the way over to the left
of the screen and the rest is black).  I think I'm recording in 720x480 so
shouldn't this work?  I tried installing mythburn (the web program for
burning) and when I run it it deletes all of my videos so I have it set up
wrong.  Is there any howto explaining how to install it and make it work
well?  Also when I run ProjectX I get "Failed to load Main-Class manifest
attribute from /home/mfrisch/temp/ProjectX_Source_0.90.2/ProjectX.jar".  I
think I remember reading in another thread that I have the wrong JRE
installed, is that right?  And if so how do I fix it?  I'm running FC4 with
mythtv 0.18.1.  Thanks in advance for any and all help.

Phekno




More information about the mythtv-users mailing list