[software development] gstreamer获取摄像头流行
Tofloor
poster avatar
Rongcai
deepin
2023-11-15 01:11
Author

Hi

请教下,我使用如下命令来性从摄像头获取流,但是告诉我internal data stream error. 想请教下是什么问题,如何修改? 谢谢!

rongcai@probook:~/libavtp/avtp_tsn/avtp-cvf-fix-eth/build$ gst-launch-1.0 v4l2src ! video/x-raw,width=192,height=144,framerate=30/1 ! filesink location=/dev/stdout | tee camera.264
设置暂停管道 ...
管道正在使用且不需要 PREROLL ...
管道被 PREROLLED ...
设置播放管道 ...
New clock: GstSystemClock
错误:来自组件 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:Internal data stream error.
额外的调试信息:
../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000652013
设置 NULL 管道 ...
释放管道资源 ...

Reply Favorite View the author
All Replies
owen_337
deepin testing team
2023-11-16 01:41
#1

楼主,可以尝试使用此命令来修复哈,这是尝试更新你的GStreamer库和相关插件:

sudo apt-get update
sudo apt-get upgrade gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav

如不能解决的话,就需要检查驱动是否正常了:lsmod | grep v4l2

Reply View the author