-
Notifications
You must be signed in to change notification settings - Fork 0
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
Put known pts in metadata #10
Conversation
mix.exs
Outdated
{:membrane_file_plugin, "~> 0.16.0", only: :test, runtime: false}, | ||
{:membrane_portaudio_plugin, "~> 0.18.0", only: :test, runtime: false}, | ||
{:membrane_opus_plugin, "~> 0.19.0", only: :test, runtime: false}, | ||
# {:membrane_opus_plugin, "~> 0.20.2", only: :test, runtime: false}, | ||
{:membrane_opus_plugin, | ||
github: "membraneframework/membrane_opus_plugin", | ||
branch: "use-ogg-time-metadata", | ||
override: true, | ||
only: :test, | ||
runtime: false}, |
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.
this runtime: false
shouldn't be there in test deps
lib/demuxer.ex
Outdated
|
||
buffer_action = | ||
{:buffer, | ||
{pad, %Buffer{payload: packet.payload, metadata: %{ogg_page_pts: packet.ogg_page_pts}}}} |
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.
{pad, %Buffer{payload: packet.payload, metadata: %{ogg_page_pts: packet.ogg_page_pts}}}} | |
{pad, %Buffer{payload: packet.payload, metadata: %{ogg: %{page_pts: packet.ogg_page_pts}}}}} |
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.
let's describe the metadata added to buffers in the moduledoc
This PR allows this element to get the pts of first completed packet in each ogg page. They are then put in the buffer's metadata under field
ogg_page_pts
to be used by the Opus parser