1.检测mp4视频的帧类型
ffprobe -show_frames test.mp4 | grep pict_type
2.视频转码 :修改分辨率 去除B帧
ffmpeg -i input.mov -profile:v baseline -level 3.0 -s 640x360 output.h264
3.视频转码 :去除B帧 去除音频
ffmpeg -i input.mp4 -profile:v baseline -level 3.0 -an output.mp4
4.检测mp4中总共多少帧
ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 test.mp4
5.播放nv12
ffplay -f rawvideo -pix_fmt nv12 -video_size 960x540 b.nv12
6.ffmpeg录屏(linux/ubuntu)
ffmpeg -f x11grab -video_size 2560x1440 -framerate 25 -i $DISPLAY -c:v libx264 -preset:v veryfast -qp:v 0 -pix_fmt yuv420p out.mp4