将一下代码分别保存为flv_43.bat, flv_169.bat,
screentshot.bat即可,当然,你得有最新版的mencoder/ffmpeg及相关视频码包。
一、压缩4:3的视频
mencoder.exe %1 -srate 22050 -oac mp3lame -lameopts br=32 -ovc lavc
-lavcopts vcodec=flv:vbitrate=240 -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames -ffourcc FLV1 -of lavf -vop
scale=320:240 -o %2
二、压缩16:9的视频,自动加上下黑框
mencoder.exe %1 -srate 22050 -oac mp3lame -lameopts br=32 -ovc lavc
-lavcopts vcodec=flv:vbitrate=240 -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames -ffourcc FLV1 -of lavf -vf
scale=320:180,expand=320:240 -o %2 |