GStreamer读取SC132的图像时,当相机运动时会报错
-
我用Gstreamer的C/C++库,自己写程序读取SC132的图像,并保存为图片。
当相机静止时,可以正常存储;当相机放车上开始运动时,会在运行一段时间后就会报错(段错误),每次测试运行的时间不同。已经检测过硬件连接。不知道可能是什么原因造成的。Gstreamer中的Lanuch代码为:
pipeline_ = gst_parse_launch("v4l2src num-buffers=100 do-timestamp=true is-live=true device=/dev/video0 ! video/x-raw,format=(string)UYVY, width=(int)1280, height=(int)1080 ! videoconvert ! video/x-raw, format=(string)GRAY8 ! jpegenc ! multipartmux ! multipartdemux ! jpegparse", &error);
不知道大家有没有遇到类似情况。
-
@cvuser
建议出问题的时候,先通过dmesg检查一下错误日志。
感觉你这个问题呢,有可能是mipi出现了错误帧,然后你的程序对于错误处理没有搞好。
这个只是我的猜测。也有可能你的程序的段错误跟摄像机没关系。
总之肯定要先从软件着手,找到问题点,再查硬件。
-
@veye_xumm 好的~我尝试debug一下~
-
@cvuser
这个问题提出已经很久了,一直没有更新状态。 我会将状态标记为解决,如果需要,可以再次跟帖,或者直接打开问题。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login