Hi, Having digged net for a second day I am still having trouble converting a bunch of DIVX, XViD and QuickTime *.mov files into H264 (with mencoder) with AAC audio. Anyone please could help? I am trying to use one-line script for one-pass encoding: mencoder -oac faac -ovc x264 $1 -o $1.mp4 However, it produces no sound and throws message: WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. I have no clue reason about. mencoder -oac copy -ovc x264 $1 -o $1.mp4 generates valid video file but sound track is being directly copied and remain mp3 What I would like to write a script which scans given directory for *.avi and *.mov files, and converts them to H264/AAC sound using 2-pass encoding (since my script cannot do what is need in 1-pass I even did not tried 2-pass encoding). Anyone could suggest a workable solution? Thanks in advance.