ffmpeg record screen or webcam

ffmpeg -f gdigrab -i desktop -r 10 out.webm

ffmpeg -r 5 -f vfwcap -i 0 -s 176x144 -f rawvideo -pix_fmt yuv420p ss.yuv

.webm: html5 video type

-r: frame rate

-an: disable audio

http://blog.sina.com.cn/s/blog_53b3dc830100mrd0.html

相关推荐