-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow requesting keyframes and add keyframe information in metadata #4
Conversation
562f206
to
f30d06a
Compare
f89959f
to
ff02b12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't you somehow disable the keyframe generation on scene change (x264 has a sc_threshold: 0
option for that purpose :D ), set some fixed keyframe interval and then count all the keyframes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add the tests once i add the option to specify frame lag in a separate PR (I won't add it in this one, since #6 changes the way config is passed to native functions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is also a possibility that the encoder will finish encoding all frames and only then receive the requesting event
Element that encodes a VP8 stream | ||
Element that encodes a VP8 stream. | ||
|
||
This element can receive a `Membrane.VPx.ForceKeyframeEvent` on it's `:output` pad to force the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you have forgotten to change the docs here in in vp9_encoder.ex
:
This element can receive a `Membrane.VPx.ForceKeyframeEvent` on it's `:output` pad to force the | |
This element can receive a `Membrane.KeyframeRequestEvent` on it's `:output` pad to force the |
closes membraneframework/membrane_core#840
tests could be better, but i have issues with the fact that the event doesnt always come to the encoder before it produces and buffers a new frame