20240712让飞凌OK3588-C开发板在接USB3.0接口的红外相机在录像的时候可以同时预览

20240712让飞凌OK3588-C开发板在接USB3.0接口的红外相机在录像的时候可以同时预览

2024/7/12 18:08

gst-launch-1.0 v4l2src device=/dev/video59 num-buffers=1000 ! videoconvert ! video/x-raw,format=NV12,width=640,height=480 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=13850_h264.mp4 t. ! queue ! waylandsink

我用这个就可以预览了 您试下

gst-launch-1.0 v4l2src device=/dev/video59 num-buffers=1000 ! videoconvert ! video/x-raw,format=NV12,width=640,height=480 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=13850_h264.mp4 t. ! queue ! waylandsink

gst-launch-1.0 v4l2src device=/dev/video59 num-buffers=1000 ! videoconvert ! video/x-raw,format=NV12,width=1280,height=1024 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=13850_h264.mp4 t. ! queue ! waylandsink
gst-launch-1.0 v4l2src device=/dev/video59 num-buffers=100000 ! videoconvert ! video/x-raw,format=NV12,width=1280,height=1024 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=RED1280IR1024.mp4 t. ! queue ! waylandsink
30*60*60=108,000

百度:gst-launch-1.0 读取USB摄像头显示 并保存视频

nanopc t6 wiki

gst-launch-1.0 v4l2src device=/dev/video59 ! videoconvert ! video/x-raw,format=NV12,width=1280,height=1024 ! waylandsink 录像

gst-launch-1.0 v4l2src device=/dev/video59 ! videoconvert ! video/x-raw,format=NV12,width=1280,height=1024 ! waylandsink 录像

https://blog.csdn.net/cau_weiyuhu/article/details/128224745

【GStreamer 】3-USB相机的各种显示,播放常用指令

https://blog.csdn.net/zong596568821xp/article/details/114585504

Linux之gstreamer视频编解码测试指令

1.3 读取USB摄像头并保存视频

gst-launch-1.0 v4l2src device="/dev/video0" ! "video/x-raw, width=1920, height=1080" \

! decodebin ! videoconvert ! omxh264enc ! video/x-h264, \

stream-format=byte-stream ! h264parse ! qtmux ! filesink \

location=test.mp4 -e

https://blog.csdn.net/weixin_42077627/article/details/132218812

gst-launch-1.0 测试树莓派摄像头

https://blog.csdn.net/quicmous/article/details/116916420

深入浅出,快速弄明白 gst-launch-1.0 PIPELINE-DESCRIPTION 管道描述语法

https://blog.csdn.net/qq_43797817/article/details/108386655?utm_medium=distribute.pc_relevant.none-task-blog-2\~default\~baidujs_baidulandingword\~default-1-108386655-blog-116916420.235\^v43\^pc_blog_bottom_relevance_base4\&spm=1001.2101.3001.4242.2\&utm_relevant_index=4

gstreamer: 官方参考内容 gst-launch-1.0命令行工具

【多videoconvert】

https://blog.csdn.net/wowocpp/article/details/126231641

gstreamer 记录 h264parse avdec_h264

gst-launch-1.0 videotestsrc do-timestamp="TRUE" ! tee name=t t. ! queue ! videoconvert ! autovideosink async="FALSE" t. ! queue ! identity drop-probability=1 ! videoconvert name=conv2 ! x264enc ! h264parse ! avimux ! multifilesink async="FALSE" post-messages=true next-file=4 max-file-size=2097152 location=/home/xlr/Videos/aaaa%d

可用指令7

gst-inspect-1.0 videoconvert

https://blog.csdn.net/m0_58944591/article/details/129932173

rk3588使用gstreamer推流

https://blog.csdn.net/pengyouhai/article/details/122596168

4.gstreamer UDP推流H264及拉流播放

https://blog.csdn.net/daochukoukoiu/article/details/128655811

V4L2-CTL和GStreamer 抓图 抓帧 显示图像

https://blog.csdn.net/weixin_42077627/article/details/132218812

gst-launch-1.0 测试树莓派摄像头

https://www.cnblogs.com/morganh/articles/15531288.html

gst-launch

【多videoconvert】

https://www.cnblogs.com/agui2022/p/16386549.html

GStreamer示例

【多videoconvert】

https://blog.csdn.net/qq_32196869/article/details/124495493

ubuntu中USB摄像头gstreamer方式图像采集、显示、录像及回放功能设计------(1)

【多videoconvert】

https://blog.csdn.net/qq_25439881/article/details/105563162

流媒体 - 02 常用命令(gst+ffmpeg+v4l2)

【多videoconvert】

https://blog.csdn.net/hyl999/article/details/121486320

Gstreamer 常用命令搜集

【这个方法不行的】

https://www.forlinx.com/article-new-c22/587.html

RK3399平台多媒体测试-RK3399 视频编解码及摄像头测试

四、摄像头测试

飞凌RK3399支持OV13850 MIPI摄像头,同时也支持UVC摄像头。首先来测试一下UVC摄像头,这里以罗技C270进程测试,将USB摄像头插入开发板,将自动安装uvc驱动。

1、UVC Camera测试

然后可以看到uvc设备节点:

$ v4l2-ctl --list-devices

uvc设备节点

查看摄像头支持的格式与分辨率:

$ v4l2-ctl --list-formats-ext -d /dev/video10

查看摄像头支持的格式与分辨率

1.1、摄像头预览

$ gst-launch-1.0 v4l2src device=/dev/video10 io-mode=4 ! videoconvert !

video/x-raw,format=NV12,width=640,height=480 ! xvimagesink

可以在屏幕看到摄像头预览画面。

1.2、摄像头拍照

$ gst-launch-1.0 v4l2src device=/dev/video10 num-buffers=1 ! videoconvert !

video/x-raw,format=NV12,width=640,height=480 ! mppjpegenc ! filesink location=/tmp/pic.jpg

然后将pic.jpg拷贝到Windows下,打开它可以看到拍到的照片。

1.3、摄像头预览时视频编码H264

$ gst-launch-1.0 v4l2src device=/dev/video10 num-buffers=100 ! videoconvert !

video/x-raw,format=NV12,width=640,height=480 ! tee name=t ! queue ! mpph264enc ! queue !

h264parse ! qtmux ! filesink location=/tmp/uvc_h264.mp4 t. ! queue ! xvimagesink

上面这条命令会开启摄像头的预览和录像,录像文件的编码格式为H264.

播放编码后的H264视频:

$ gst-launch-1.0 filesrc location=/tmp/uvc_h264.mp4 ! qtdemux ! queue ! h264parse !

mppvideodec ! xvimagesink

相关推荐
kalvin_y_liu10 分钟前
四款主流深度相机在Python/C#开发中的典型案例及技术实现方案
开发语言·python·数码相机
格林威2 小时前
工业相机如何通过光度立体成像技术实现高效精准的2.5D缺陷检测
人工智能·深度学习·数码相机·yolo·计算机视觉
点灯小铭3 小时前
基于MATLAB的车牌识别系统
开发语言·单片机·数码相机·matlab·毕业设计·课程设计
格林威9 小时前
工业检测机器视觉为啥非用工业相机?普通相机差在哪?
人工智能·数码相机·yolo·计算机视觉·视觉检测·相机
格林威17 小时前
机器视觉检测的光源基础知识及光源选型
人工智能·深度学习·数码相机·yolo·计算机视觉·视觉检测
Hi202402171 天前
使用 Apollo TransformWrapper 生成相机到各坐标系的变换矩阵
数码相机·线性代数·矩阵·自动驾驶·apollo
nenchoumi31191 天前
全网首发!Realsense 全新 D555 相机开箱记录与 D435i、L515、D456 横向测评!
数码相机·计算机视觉·机器人·ros·realsense
简单说鸭1 天前
ScanNet: Richly-annotated 3D Reconstructions of Indoor Scenes 数据集构建
数码相机
文弱_书生2 天前
关于对鱼眼相机图片进行畸变校正的两种思路
数码相机·鱼眼畸变校正·传统几何方法·深度学习方法
疾风铸境2 天前
qt+halcon开发相机拍照软件步骤
数码相机·qt·halcon·拍照