2008/3/20, zechao wang <wzc0066@yahoo.com.cn>:
My destination is mp4, and it's ovc and oac should be xvid and aac, or it could not be played in my cellphone.
The ovc doesn't matter, as long as it outputs MPEG-4 Part 2. Xvid, Divx and lavc MPEG-4 are all compatible. You just need the right fourcc if you're using avi, but since you are using mp4, it doesn't matter. Also, as you are using a cellphone, avoid at most the cpu-heavy codec options and downscale your movie with -vf scale if needed. Check the cellphone manual for information on the supported mpeg features. See also if it uses the Divx profiles or the official MPEG profiles, they are different. I have searched about mp4box, and i found it has nothing to do with Linux.
All documentation and software are based on Windows(but i have no Windows).
I think the ffmpeg command line you are using is fine too (can't test now). You can even leave the '-f mp4' out.
If i want to use "-ovc xvid -xvidopts $str", what the $str should be here to instead of "-ovc lavc -lavcopts vmax_b_frames=2:vb_strategy=0:brd_scale=2:mbd=2:trell:v4mv:last_pred=3:predia=3:dia=3:cbp:preme=2:vqcomp=0.6:vbitrate=600:vpass=2:turbo" ?
If you really want to use xvid, see the man page. Also, you could put 'vcodec=libxvid' among the lavcopts and it would use xvid internally and you could leave the rest of the parameters as-is, but the default mpeg4 may be better.