-
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
Develop #1
Develop #1
Conversation
01f71e0
to
d2b3dee
Compare
H264 encoder requires time_base to be set
end | ||
|
||
state = %{state | partial_frame: ""} | ||
{{:ok, buffer: {:output, bufs}, event: {:output, %EndOfStream{}}}, state} |
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.
Notify the pipeline about the EoS
def handle_event(:input, %EndOfStream{}, _ctx, state) do | ||
with {:ok, frames} <- Native.flush(state.encoder_ref), | ||
bufs <- wrap_frames(frames) do | ||
{{:ok, bufs ++ [event: {:output, %EndOfStream{}}]}, state} |
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.
Notify the pipeline about the EoS
Membrane element that decodes video in H264 format. It is backed by decoder from FFmpeg. | ||
|
||
The element expects the data for each frame (Access Unit) to be received in a separate buffer, | ||
so the parser (`Membrane.Element.RawVideo.Parser`) may be required in a pipeline before |
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.
rather H.264 parser
Membrane element that encodes raw video frames to H264 format. | ||
|
||
The element expects each frame to be received in a separate buffer, so the parser | ||
(`Membrane.Element.FFmpeg.H264.Parser`) may be required in a pipeline before |
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.
rather raw parser
@@ -83,20 +97,20 @@ defmodule Membrane.Element.FFmpeg.H264.Encoder do | |||
with {:ok, frames} <- Native.encode(payload, encoder_ref), | |||
bufs <- wrap_frames(frames), | |||
in_caps <- ctx.pads.input.caps do |
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.
The two last clauses should be moved out of with
No description provided.