Skip to content
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

Closed
wants to merge 9 commits into from
Closed

Conversation

Noarkhh
Copy link
Contributor

@Noarkhh Noarkhh commented May 13, 2024

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

@Noarkhh Noarkhh requested a review from mat-hek May 13, 2024 13:28
@Noarkhh Noarkhh marked this pull request as draft May 13, 2024 13:34
mix.exs Outdated
Comment on lines 43 to 51
{: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},
Copy link
Member

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}}}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{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}}}}}

Copy link
Member

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

@Noarkhh Noarkhh marked this pull request as ready for review May 14, 2024 14:14
@Noarkhh Noarkhh requested a review from mat-hek May 14, 2024 14:14
@Noarkhh Noarkhh closed this May 16, 2024
@Noarkhh Noarkhh deleted the put-known-pts-in-metadata branch May 16, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants