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