Accurately seeking to frames?

Kenneth Feingold via gstreamer-devel <[email protected]> Sat, 13 Jan 2024 14:50:23 -0500
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAMF_QKt=0iG9xXT5kmNJF2S9rFWyasbcDEb+oecN_vWFQRf0qg@mail.gmail.com>
I am also trying to find a very simple way to read the current video frame.
With this:

  gint64 current = 1;
  /* Query the current position in frames */
  if (gst_element_query_position (data->playbin, GST_FORMAT_DEFAULT,
&current)) {
    g_print ("Current Frame: %ld\n", current);
  }

I get a consistent readout but it does not read the actual frame number.
What is it showing me? (i.e., what value does this correspond to if not the
frame number?)
I am very new to GStreamer ...

thanks,
Ken