This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM5728:GStreamer 和 OpenCV 视频捕获问题

Guru**** 2034120 points
Other Parts Discussed in Thread: AM5728
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/572288/linux-am5728-gstreamer-and-opencv-video-capture-issue

器件型号:AM5728

工具/软件:Linux

尊敬的 e2e 社区:

我使用的是最新的处理器 SDK 和 AM5728板

我创建了一个 gstreamer 管道、使用共享存储器作为接收器、创建了 RTP 数据包、并使用了 AM5728的 IP 地址、如下所示

打开第一个终端:

-->GS-launch-1.0  v4l2src device=/dev/video1!   视频/x-raw、宽=640、高=480、帧速率=10/1、格式=YUY2!   shmsink    socket-path=/tmp/foo2    sync-true    wait-for connection=false    shm-size=10000000

打开第二个端子:

--> gst-launch-1.0 shmsrc socket-path=/tmp/foo2! 视频/x-raw、宽=640、高=480、帧速率=25/1、格式=YUY2! jpegenc! 很棒的酒店!  udpsink 主机=192.168.2.207端口=5200

下面是我的 OpenCV 计划:

#include
使用命名空间 cv;
使用命名空间 std;
#include
#include
#include
int main()

   VideoCapture camera0 ("rtp://192.168.2.207:5200/?action=stream (RTP://192.168.2.207:5200/?操作=流);
   while (camera0.isOped()){
       MAT 帧0;
       camera0 >> frame0;
       imshow ("video0"、frame0);
       int c = waitKey (1);
       if (27 == char (c)) break;
   }
   返回0;

我得到以下错误:

OpenCV 错误:未指定错误(GStreamer:您的 gstreamer 安装缺少所需的插件
)、文件/home/gtbldadm/processor-sdk-linux-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1 +gitAUTOINC+b4f54ac48c-r0.tisdk7/git/modules/videio/src/cap_gstreamer.cpp、行1692
在抛出'CV::异常'实例后调用终止
 什么(): /home/gtbldadm/processor-sdk-linux-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1 +gitAUTOINC+b4f54ac48c-r0.tisdk7/git/modules/video/src/CAP_gstreamer.cpp:1692:错误:(-2) Gstreamer:您的 gstreamer 安装缺少所需的插件
 功能处理能力

已中止(转储内核)


您能帮助解决上述问题吗?

谢谢、

Siddartha

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    软件团队已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    不幸的是、我不知道 OpenCV。
    但从 gstreamer 的角度来看、似乎缺少插件。
    请检查您是否拥有所有 GST 插件。

    另请查看此处:
    stackoverflow.com/.../opencv-program-run-time-error-gstreamer-plugin-missing

    希望这对您有所帮助。
    BR
    玛格丽塔