After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742562 - ksvideosrc, dx9screencapsrc: fix latency handling
ksvideosrc, dx9screencapsrc: fix latency handling
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.4.5
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-07 22:40 UTC by Christoph Rackwitz
Modified: 2018-11-03 13:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph Rackwitz 2015-01-07 22:40:22 UTC
when I render from dx9screencapsrc or ksvideosrc, display works but the reporting is switched. this also applies to "fps" and "drop rate".
Comment 1 Tim-Philipp Müller 2015-01-07 23:11:19 UTC
So what you're saying is that with these two sources, most video buffers get dropped, yes? (i.e. the reporting is correct, it's just that we don't want it to report that)

Probably just related to them not advertising any latency they might have?

Could you provide a GST_DEBUG=*:6 debug log from a few seconds?
Comment 2 Christoph Rackwitz 2015-01-07 23:15:02 UTC
I'm saying it's happening regardless of source (I'll confirm with a file source). guessing here, but the text rendering has the variables switched around. the values look correct, but they're mislabeled.
Comment 3 Christoph Rackwitz 2015-01-07 23:25:28 UTC
sorry, my bad.

it looks like it's actually just these two sources. I managed to get an mp4 video to playa and the overlay text looks as it should.

dx9screencapsrc reports ALL dropped (~18 fps on my system) and NO rendered frames.

ksvideosrc reports more rendered than dropped frames, but still a lot. both add to the nominal frame rate of my webcam. of course, the ksvideosrc throws lots of 'write map requested on non-writable buffer' but that's another issue.
Comment 4 Tim-Philipp Müller 2015-01-07 23:26:21 UTC
Tried with a videotestsrc?
Comment 5 Tim-Philipp Müller 2015-01-07 23:27:47 UTC
You can also try with sync=false on the sink, which makes it ignore timestamps and latencies.
Comment 6 Christoph Rackwitz 2015-01-07 23:29:55 UTC
if I set GST_DEBUG=*:6, lots of debug messages keep scrolling past but no output is happening (not even a window created) for as long as I care to wait.
Comment 7 Christoph Rackwitz 2015-01-07 23:31:29 UTC
"fpsdisplaysink sync=false" does correct reporting for dx9screencapsrc. 

"ksvideosrc ! fpsdisplaysink sync=false" report about twice the frame rate for rendered and dropped...
Comment 8 Sebastian Dröge (slomo) 2015-01-08 13:13:48 UTC
This looks like bugs with the latency reporting indeed, and more bugs than that in ksvideosrc.
Comment 9 Jan Schmidt 2016-08-15 16:38:33 UTC
I was testing something similar with camerabin today. What I see is that generally, I get ~20 dropped frames as things start up, and then usually none. At some point, however, I can trigger the ksvideosrc into a new mode where it drops nearly every 2nd frame. One way I found to trigger it is to cover the camera briefly, which triggers auto-exposure handling and a drop in produced framerate. It seems likely there's a problem there and ksvideosrc never recovers from it.
Comment 10 GStreamer system administrator 2018-11-03 13:29:42 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/202.