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.

[参考译文] AM62A7:元素"tiovxmultiscaler"无法设置 ROI-startx 或 ROI-startxy……的 GStreamer

Guru**** 2455360 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1488041/am62a7-the-gstreamer-that-the-element-tiovxmultiscaler-can-not-set-roi-startx-or-roi-startxy

器件型号:AM62A7

工具与软件:

当我更改 ROI-STARTX 的对象时。 它共享该设置在系统运行期间无法正常工作。  
设置顺序是否错误? 如何解决该问题

来源 如下:

          string scaler_caps ="video/x-raw、width="+
                     TO_string (output->m_width)+
                     "、height="+
                     to_string (output->m_height);

          FACTORY = GST_ELEMENT_FACTORY_FIND (gstElementMap["scaler"]["Element "]、<string>().c_str ());
          padtemplate = get_pad_template (FACTORY、GST_pad_SRC);
          if (NULL!= padtemplate &&
            padtemplate->presence == gst_pad_request )//多标量
          {
            m_gstElementProperty ={{"target""1"};
            Comm_PRT ("makeElement (scaler_Element 2)\n");
            makeElement (scaler_Element、
                  gstElementMap["scaler"]["Element "].ECG <string>().c_str()
                  m_gstElementProperty、
                  scaler_caps.c_str()
          }
  void makeElement (vecCongress、<GstElement *>     gstElement (&G)
           常量 gchar          *名字,
           vec4.7>&propMap <vector<const gchar*>
           常量 gchar          *cap)
  {  
    GstElement *元素;
    元素= GST_ELEMENT_FACTORY_Make (名称NULL);
    if (Element)
    {
      g_printerr ("创建%s 类型的元素失败\n"、(name));
      抛出 runtime_error ("Failed to create Gstreamer Pipeline.");
    }
    

    if (g_strcmp0 ("tiovxmultiscaler"name)== 0)
    {
      //g_object_set (元素、"ROI"、"200:100:640:480"、NULL);

      G_object_set (元素、"roi-startx"100、"roi-starty"100、 "ROI-width"(ROI 宽度)、640、"ROI-height"(ROI 高度)、480、NULL);
      Comm_PRT ("设置 tiovxmultiscaler 对象成功\n");
    }

下面的日志消息:

(app_edgeai:1605):glib-gObject-critical **:02:30:34.927:g_object_set_is_valid_property:对象类'GstTIOVXMultiScaler'没有名为'roi-startx'的属性



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

    您好、Meng、

     "tiovxmultiscaler"插件的属性"roi-startx"是接收板属性或源板属性。 您需要指定接收器或源、例如 sink_0:roi-startx 或 src::roi-startx。

    此致、

    建中