ffmpeg命令行

x265:

ffmpeg -f dshow -video_size 352x288 -framerate 30 -pixel_format yuyv422 -i video="USB2.0 Camera" -vf "format=pix_fmts=yuv420p,scale=352:288" -vcodec libx265 -b 100000 -preset fast -x265-params keyint=8:bframes=0 out.hevc -y
ffmpeg -i out.hevc -pixel_format yuv420p out265.yuv -y

ffmpeg -pixel_format yuv420p -framerate 30 -s 704x576 -i D:\seq\girl_D1_3500.yuv -vframes 500 -vcodec libx265 -b:v 250000 -x265-params keyint=8:bframes=0:fps=30:preset=ultrafast out.hevc -y -report

 

dshow采集:

ffmpeg -f dshow -video_size 800x600 -framerate 20 -pixel_format yuyv422 -i video="HD 720P Webcam"  -vf "format=pix_fmts=yuv420p,scale=704:576,fps=fps=30"  out.yuv -y

后缀名:

ffmpeg.exe -decoders>decoders.txt

VFS..D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
VFS..D hevc HEVC (High Efficiency Video Coding)

264码流使用.h264 ,265 码流使用.hevc

 

抓一帧:

ffmpeg -f dshow -video_size 352x288  -i video="HD 720P Webcam" -vframes 1 -f image2 1.bmp

 

 nv21转yuv422p

ffmpeg -s 3264x2448 -pix_fmt nv21 -i input.yuv -s 1632x1224 -pix_fmt yuv422p output.yuv

 

 

 

posted @ 2014-06-11 11:36  mlj318  阅读(2516)  评论(0编辑  收藏  举报