Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Fastest way to compress VDR movies ?
Hello,
I have received a question on how to use this script...
So with a little explanation in it :-)
#!/bin/bash
# Just run it with the argument the dir containing the vdr files.
# just to set quality, 2 for best... till 23 or something like this
Q=5
# Where to save the result
OUT=/data/anim
# Whith the name (change video0 to video if you use /video
BASENAME=`echo "$1"|sed -e "s/\//_/g" -e "s/_video0_//g" -e "s/.50.99.rec//g" -e 's/\\:/h/g' -e "s/:/h/" -e "s/_$//g"`
# Change to the destination dir
cd $OUT
# We make a fifo because we don't want extra HD space that will slow
# things down
mkfifo "${BASENAME}1.mpg"
# We need mencoder from mplayer http://www.mplayerhq.hu/ and as soon at
# it has finished, delete the fifo.
(mencoder "${BASENAME}1.mpg" -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vqscale=$Q:vhq:v4mv:trell:autoaspect -o "${BASENAME}.avi"; rm "${BASENAME}1.mpg") &
# You need the devel vdrsync.pl from
# http://vdrsync.vdr-portal.de/developer.html and maybe an up to date
# one you could take at
# http://magma.epfl.ch/greg/linux/vdrsync-snap20.tgz which need the
# previous one...
vdrsync.pl -cut -use-pipe -m -basename $BASENAME -ignore c1 $1
In case there were a summary, copy it :-)
if [ -e "$1"/summary.vdr ];then
cp "$1"/summary.vdr $OUT/"$BASENAME".txt
fi
--
Grégoire Favre
________________________________________________________________________
http://magma.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.ch
Home |
Main Index |
Thread Index