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

相关推荐
电鱼智能的电小鱼1 天前
基于 EFISH-SBC-RK3588 的无人机环境感知与数据采集方案
linux·网络·嵌入式硬件·数码相机·无人机·边缘计算
二狗哈2 天前
制作一款打飞机游戏19:碰撞检测
数码相机·游戏
电鱼智能的电小鱼2 天前
SAIL-RK3588协作机器人运动控制器技术方案
linux·嵌入式硬件·数码相机·机器人·无人机·边缘计算
中达瑞和-高光谱·多光谱2 天前
高光谱相机在工业检测中的应用:LED屏检、PCB板缺陷检测
数码相机
labview_自动化2 天前
焊接机排错
数码相机
中达瑞和-高光谱·多光谱2 天前
高光谱相机在生物医学中的应用:病理分析、智慧中医与成分分析
数码相机
THe CHallEnge of THe BrAve2 天前
面阵相机中M12镜头和远心镜头的区别及性能优势
图像处理·数码相机·计算机视觉·视觉检测
敢敢のwings2 天前
相机雷达外参标定算法调研
数码相机·算法
海鸥-w3 天前
Unity中使用Cinemachine插件创建自由视角相机(freelookCamera)来实现第三人称漫游
数码相机·unity·游戏引擎
徐凤年_3 天前
配置Intel Realsense D405驱动与ROS包
数码相机·ubuntu