[Mplayer-felhasznalok] Surgos mencoder kerdes ami nincs a manpage be ...

Balázs Bárány balazs at tud.at
Tue Mar 4 07:52:09 CET 2003


Helló,

* Lesslie'O Piepp . <iceheart at irj.hu> [2003-03-04 05:15]:
> hasznalhatok ... mert a -vop crop=720:350,scale=480:233 ra nem az jon ki 
> amit en szeretnek es a tobbszori attomorites igencsak art a fajlnak ... 
pontosan mi bajod van ezzel? Nálam pont így működik.

~/bin/cropconvertvcd: (Meghívod "cropconvertvcd fájlnév X:Y"-vel, ahol X
és Y a méret, amibe át akarod méretezni. A cropot interaktívan
beállíthatod. Ha a hangot konvertálni akarod, lejjebb kommentáld ki a
második oacopts= sort.)

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

rm frameno.avi analyse.log divx2pass.log lavc_stats.txt 2> /dev/null

scaleto="$2"

ok=n
mplayer -nosound -noaspect -vop cropdetect,scale=$scaleto "$1" 2>&1 | uniq
while [ "$ok" != "y" ]; do

    echo -n "Crop boundaries? "
    read cropbound

    # control run
    mplayer -nosound -noaspect -vop rectangle=$cropbound,scale=$scaleto "$1"

    echo -n "OK? [y/n]"
    read ok
done

oacopts="-oac copy"

# fully convert the sound instead of copying
lameopts="-lameopts cbr:br=128"
#oacopts="-oac mp3lame $lameopts"

nice mencoder "$1" -ovc frameno -o frameno.avi $oacopts 

echo -n "Bitrate? "
read vbr

# bitrate as specified
divx4opts="-divx4opts br=$vbr:q=5:key=250:rc_period=10"
#ovcopts="-ovc divx4 $divx4opts"

lavcopts="-lavcopts vcodec=mpeg4:vbitrate=$vbr:keyint=250:vhq:vpass=0:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01"
#lavcopts="-lavcopts vcodec=mpeg4:vbitrate=$vbr:keyint=250:vhq:vpass=0"
#lavcopts="-lavcopts vcodec=msmpeg4v2:vbitrate=$vbr"
ovcopts="-ovc lavc $lavcopts"

for pass in 1 2; do
    # Insert the pass number into the codec opts
    ovcopts=`echo -n $ovcopts | perl -pwe "s/vpass=([0-9])/vpass=$pass/"`

    nice mencoder -oac copy $ovcopts $fourcc \
        -o "$1.menc-cr.avi" \
        -noaspect -vop crop=$cropbound,scale=$scaleto -sws 2 \
        -idx \
        "$1"
done

rm frameno.avi analyse.log divx2pass.log lavc_stats.txt 2> /dev/null
-------------------------------------------------------------------------

-- 
_________________________________________________________________________
Balázs Bárány       balazs at tud.at        http://tud.at       ICQ 10747763

A good engineer will make considerable effort to avoid additional effort.


More information about the MPlayer-felhasznalok mailing list