ffmpeg采集摄像头
时间: 2023-08-21 22:12:40 浏览: 143
ffmpeg调取摄像头录像
4星 · 用户满意度95%
ffmpeg采集摄像头数据需要具备两个条件。首先,需要有一个摄像头,可以是USB摄像头,直接插在电脑主机之后。其次,需要安装了ffmpeg,可以通过自己编译的方式安装ffmpeg。使用ffmpeg命令可以采集yuv数据。例如,可以使用以下命令采集yuv数据并将其保存为文件:```ffmpeg -f v4l2 -inputformat yuyv422 -videosize 640x480 -i /dev/video0 -c:v rawvideo -pix_fmt yuv420p -f mpegts output.ts```\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *3* [ffmpeg 采集摄像头yuv数据](https://blog.csdn.net/snail_hunan/article/details/115050794)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [ffmpeg 捕捉摄像头yuv](https://blog.csdn.net/yinshipin007/article/details/130394208)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文