Mailing List archive

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

[vdr] Re: Scipts to convert to divx ;-)



On Mon, Jul 01, 2002 at 04:26:40PM +0200, Andreas Lange wrote:

> ...

> So in addition to the arguments in your command line you could use
> something in the form of
> -vop scale=640:480,crop=704:574:0:0,pp -npp lb
> But of course inserting the right settings automatically is too
> complicated for me ;-)

Hello again ;-)

Thank to Andreas, I added some option to my script:

--- begin of MENCODER ---

#!/bin/tcsh
killall setiathome
sudo chown greg.greg -R `pwd`
if ($1) then
        # change greg.greg to your user.group ;-)
        rm lavc_stats.txt
        if ($2) then
        cat 00*.vdr | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate="$1":vhq:vpass=1 -oac copy -vop crop="$3",pp -npp lb -sws 2 -o /data/avi/output.avi -
        cat 00*.vdr | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate="$1":vhq:vpass=2 -oac copy -vop crop="$3",pp -npp lb -sws 2 -o /data/avi/output.avi -
        # change /data/avi to the path you want so save the output.avi
        else
        cat 00*.vdr | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate="$1":vhq:vpass=1 -oac copy -vop cropdetect,pp -npp lb -sws 2 -ss 57 -endpos 5mb -o /data/avi/output.avi -
        echo "Same command as before with a 1 and crop values."
        echo "For example MENCODER 777 1 460:416:10:84."
        echo "Could add a ,scale=640:480 or other after the crop values..."
        echo "For example MENCODER 777 1 460:416:10:84,scale=640:480."
        endif
else
        cat 00*.vdr | mencoder -ovc frameno -oac mp3lame -lameopts br=192:q=0 -o frameno.avi -
        echo "Same command as before with the choosed bitsrat."
        echo "For example MENCODER 777."
endif

--- end of MENCODER ---

Any other comment/suggestion are welcome ;-))

	Greg
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch




Home | Main Index | Thread Index