Repository navigation
Conversation
…aint Since frames come from CEF timestamps and an internal queue, create() only returns a video buffer when OnPaint() queued one, and CEF calls OnPaint() only when the page changes. A static page (an empty video call, every camera turned off, a slide) therefore stops the video stream entirely while the element still reports itself as a live source, and downstream sees the source as stalled: a fallbackswitch switches to its fallback, encoders and segmenters starve. In live mode, wait at most one frame at max-video-framerate for the next paint and push a copy of the last frame, stamped with the current running time like a painted one, if none came. The wait is measured from the last video buffer pushed rather than from entering create(), because audio wakes create() far more often than once per frame. The last frame is dropped on stop and on a caps change so it is never repeated at a stale size.
Collaborator
|
@hevc this new behavior was introduced recently, the element explicitly advertises a variable framerate now so it is not breaking its own contract when not pushing frames for an extended period of time :) See related discussion here: https://github.com/centricular/gstcefsrc/pull/107/changes#r2865174607 , you should be able to obtain the desired behavior by using a |
Author
|
I see. I used the livesync plugin. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since frames come from CEF timestamps and an internal queue, create() only returns a video buffer when OnPaint() queued one, and CEF calls OnPaint() only when the page changes. A static page (an empty video call, every camera turned off, a slide) therefore stops the video stream entirely while the element still reports itself as a live source, and downstream sees the source as stalled: a fallbackswitch switches to its fallback, encoders and segmenters starve.
In live mode, wait at most one frame at max-video-framerate for the next paint and push a copy of the last frame, stamped with the current running time like a painted one, if none came. The wait is measured from the last video buffer pushed rather than from entering create(), because audio wakes create() far more often than once per frame. The last frame is dropped on stop and on a caps change so it is never repeated at a stale size.