Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Fastest way to compress VDR movies ?



Gregoire Favre wrote:

> #!/bin/bash
> OUT=/data/anim
> Q=3
> BASEMAME=`echo $1|sed -e "s/\//_/g" -e "s/_video0_//g" -e "s/.50.99.rec//g"  -e "s/:/h/" -e "s/_$//g"`

> cd $OUT
> mkfifo "$BASEMAME"1.mpg
> mencoder "$BASEMAME"1.mpg -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vqscale=$Q:vhq:v4mv:trell:autoaspect -o "$BASEMAME".avi &
> vdrsync.pl -cut -use-pipe -m -basename $BASEMAME -ignore c1 $1
> if [ -e $1/summary.vdr ];then
> cp $1/summary.vdr $OUT/"$BASEMAME".txt
> fi

> Only problem is with name that have special characters like (...

These shouldn't be a problem if you quote the variables, i.e. "$1"
instead of $1 and "$BASEMAME" instead of $BASEMAME.

Regards...
		Michael





Home | Main Index | Thread Index