Dynamic text on video frame

eyalhir74 eyalhir74 at gmail.com
Sun Jul 19 08:19:49 UTC 2020


Hi,
  I've also used the identity and textoverlay components to do this, still
there are video frames with the same id..


    void identityHandoff(const Glib::RefPtr<Gst::Buffer> &/*arg0*/)
    {
        std::lock_guard<std::mutex> lock(m_frame_id_mutex);
        static int frame_id = 0;
        m_Debug_overlay->set_property("text", frame_id);
        frame_id++;
    }

    Glib::RefPtr<Gst::Identity> debug_identity =
Glib::RefPtr<Gst::Identity>::cast_dynamic(m_Debug_identity);
    debug_identity->signal_handoff().connect(sigc::mem_fun(this,
&identityHandoff));


thanks
Eyal



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list