【秒懂音视频开发】19_视频录制01_命令行 (2)

并且自动选择使用uyvy422来替代yuv420p

Selected pixel format (yuv420p) is not supported by the input device. Supported pixel formats: uyvy422 yuyv422 nv12 0rgb bgr0 Overriding selected pixel format to use uyvy422 instead.

与此同时,也成功开始采集摄像头的视频数据了。

像素格式:uyvy422

分辨率:1280x720

帧率:30

Input #0, avfoundation, from '0': Stream #0:0: Video: rawvideo, uyvy422, 1280x720 Output #0, rawvideo, to 'out.yuv': Stream #0:0: Video: rawvideo, uyvy422, 1280x720, 30 fps

播放录制好的YUV。

ffplay -video_size 1280x720 -pixel_format uyvy422 -framerate 30 out.yuv

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpxfpg.html