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

相关推荐
高升说8 小时前
多相机同步怎么选:硬件同步与软件同步的原理、对比与选型流程
人工智能·数码相机
明志数科10 小时前
从300克Ego头环看第一人称数据采集趋势:设备轻量化之后,场景端壁垒在哪
数码相机·学习
FLJwu16 小时前
运动相机 ID 外观与壳体开模实战 01:ID 造型、拔模角度、壁厚设计 OEM 量产避坑|20 年源头工厂量产经验
经验分享·数码相机·相机
qq_5260991320 小时前
视觉检测工控机丢帧、掉线、卡顿,分别是什么原因?按这张表查
数码相机·计算机视觉
kyle~2 天前
ISP---RAW数据解析:从PixelFormat、Packed_Buffer到Bayer解码
数码相机·接口隔离原则
FLJwu2 天前
镜头模组与画质量产实战 03:运动相机 ISP 图像调校、杂光鬼影抑制与来料验收标准|20 年源头工厂量产经验
经验分享·数码相机·产品运营·接口隔离原则·相机
高升说2 天前
手眼 3D 相机选型:先定工作距离,再谈精度,最后定安装
人工智能·数码相机·3d
智简数文3 天前
锂电池检测用工业相机哪家好?极片/隔膜/电芯参数选型对照
数码相机
高升说3 天前
广角看得广,未必看得远:视场角与量程如何互相制约
深度学习·数码相机
FLJwu3 天前
镜头模组与画质量产实战 02:运动相机镜头组装工艺、胶水选型、温变跑焦与参数虚标|20 年源头工厂量产经验
经验分享·数码相机·产品运营·相机