CLI Encoding

From Thorgull
Jump to: navigation, search

Base command

mencoder SOURCE OPTIONS -o OUTPUT

Options

Resize video

-vf scale=HORIZONTAL_RESOLUTION:-2

Convert to Mpeg4/AC3 AVI

-ovc lavc -oac lavc -lavcopts acodec=ac3:vcodec=mpeg4:mbd=2:trell:v4mv

Quality

-lavcopts vbitrate=2600

Recipies

MKV to Avi

 mkvinfo "$MKV"
 mkvextract tracks "$MKV" 2:"$AUDIO"
 mencoder -audiofile "$AUDIO" -oac faac -ovc copy "$MKV" -o "$FILE"