完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想知道是否有一些特定的配置可以从 4K 传感器流式传输视频,好吗?我正在使用以下命令:
GST_DEBUG=3 gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=3840,height=2160,framerate=5/1" ! queue ! imxvideoconvert_g2d ! waylandsink > gst-debug-4k.txt 2>&1并为以下错误而苦苦挣扎: Setting pipeline to PAUSED ... 0:00:00.494213500 [33m 974[00m 0xaaaaced3ad20 [33;01mWARN [00m [00m v4l2 v4l2_calls.c:530:gst_v4l2_subscribe_event: 0:00:00.494305000 [33m 974[00m 0xaaaaced3ad20 [33;01mWARN [00m [00m v4l2 v4l2_calls.c:538:gst_v4l2_subscribe_event: 0:00:00.494339625 [33m 974[00m 0xaaaaced3ad20 [33;01mWARN [00m [00m v4l2 v4l2_calls.c:545:gst_v4l2_subscribe_event: Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1 0:00:06.306039000 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1 0:00:06.318713500 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1 /GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1, format=(string)BGRx 0:00:06.318993750 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB 0:00:06.319405125 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB /GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1, format=(string)BGRx 0:00:06.320007375 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB 0:00:06.320084375 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB 0:00:06.320202000 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB 0:00:06.320372500 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB 0:00:06.320476125 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB 0:00:06.320547125 [33m 974[00m 0xaaaacee1b120 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 6 for RGB format, using RGB /GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:6:11:1 0:00:07.020096875 [33m 974[00m 0xaaaacee1ab00 [31;01mERROR [00m [00m v4l2allocator gstv4l2allocator.c:740:gst_v4l2_allocator_start: 0:00:07.020211125 [33m 974[00m 0xaaaacee1ab00 [31;01mERROR [00m [00m v4l2bufferpool gstv4l2bufferpool.c:926:gst_v4l2_buffer_pool_start: 0:00:07.020254500 [33m 974[00m 0xaaaacee1ab00 [31;01mERROR [00m [00m bufferpool gstbufferpool.c:559:gst_buffer_pool_set_active: 0:00:07.020296625 [33m 974[00m 0xaaaacee1ab00 [33;01mWARN [00m [00m v4l2src gstv4l2src.c:659:gst_v4l2src_decide_allocation: 0:00:07.020327500 [33m 974[00m 0xaaaacee1ab00 [33;01mWARN [00m [00m v4l2src gstv4l2src.c:659:gst_v4l2src_decide_allocation: ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory. Additional debug info: ../git/sys/v4l2/gstv4l2src.c(659): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Buffer pool activation failed 0:00:07.020575750 [33m 974[00m 0xaaaacee1ab00 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3347:gst_base_src_prepare_allocation: Execution ended after 0:00:06.524860500 Setting pipeline to NULL ... 0:00:07.020640125 [33m 974[00m 0xaaaacee1ab00 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3127:gst_base_src_loop: 0:00:07.020678375 [33m 974[00m 0xaaaacee1ab00 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3127:gst_base_src_loop: ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: ../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Freeing pipeline ... 同时,它适用于我的 1440x1080 传感器(只需切换 dtb): GST_DEBUG=3 gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=1440,height=1080" ! queue ! imxvideoconvert_g2d ! waylandsink > gst-debug-1440x1080.txt 2>&1 Setting pipeline to PAUSED ... 0:00:00.498230625 [32m 991[00m 0xaaaae2a90690 [33;01mWARN [00m [00m v4l2 v4l2_calls.c:530:gst_v4l2_subscribe_event: 0:00:00.498305750 [32m 991[00m 0xaaaae2a90690 [33;01mWARN [00m [00m v4l2 v4l2_calls.c:538:gst_v4l2_subscribe_event: 0:00:00.498336375 [32m 991[00m 0xaaaae2a90690 [33;01mWARN [00m [00m v4l2 v4l2_calls.c:545:gst_v4l2_subscribe_event: Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709 /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709 /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709 /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709 0:00:00.574127750 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB /GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:src: caps = video/x-raw, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, format=(string)BGRx 0:00:00.574332500 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.574563125 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.574951375 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB /GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, format=(string)BGRx 0:00:00.575204500 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.575268250 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.575555375 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.575705750 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.575749125 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB 0:00:00.575817250 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m video-info video-info.c:526:gst_video_info_from_caps:[00m invalid matrix 3 for RGB format, using RGB /GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709 0:00:00.920576250 [32m 991[00m 0xaaaae2beb520 [33;01mWARN [00m [00m waylandsink wlwindow.c:441:gst_wl_window_new_internal:[00m init surface_state fail, fallback to scale=1 fullscreen (1920x1048) handling interrupt. Interrupt: Stopping pipeline ... Execution ended after 0:00:13.554667000 Setting pipeline to NULL ... Total showed frames (395), playing for (0:00:13.554668125), fps (29.141). CMA分配: root@imx8mpevk:~# dmesg | grep -i cma [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c4000000, size 960 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Memory: 4759752K/6258688K available (18304K kernel code, 1914K rwdata, 7524K rodata, 3648K init, 550K bss, 515896K reserved, 983040K cma-reserved) 我正在使用 BSP LF-5.10.72-2.2.0。附件是两种情况下gst-launch命令和相关dmesg的输出。 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1912个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36366 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
4402 浏览 0 评论
6060 浏览 1 评论
6769 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4220 浏览 0 评论
624浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
620浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
611浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
697浏览 2评论
800浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 22:35 , Processed in 0.992140 second(s), Total 80, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号