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

Helper queue for multi-input elements #734

Open
mat-hek opened this issue Jan 30, 2024 · 1 comment
Open

Helper queue for multi-input elements #734

mat-hek opened this issue Jan 30, 2024 · 1 comment
Assignees

Comments

@mat-hek
Copy link
Member

mat-hek commented Jan 30, 2024

The idea is to have a queue that multi-input pads could use to consume buffers at proper speed. The goal is to make mixers and muxers code simpler, more declarative and thus less error-prone.

The queue should:

  • Consume buffers at equal speed from all pads, based on timestamps
  • Return pause_auto_demand and resume_auto_demand actions to avoid keeping too many buffers
  • Handle dynamically starting and ending streams

To verify the queue's functionality, we should use it in at least one muxer, for example in https://github.com/membraneframework/membrane_flv_plugin and mixer, for example in https://github.com/membraneframework/membrane_audio_mix_plugin

@FelonEkonom
Copy link
Member

FelonEkonom commented Mar 25, 2024

Done:

  • basic functionalities (push/pop)
  • waiting on pad
  • specify average chunk size, expresesed in time duration
  • specify pause demand boundary in time duration
  • flushing queue
  • specify timestamps offsets explicitly / allow different synchronization strategies

Issues:

  • lack of callback context

TODO:

  • write benchmarks and optimize the queue
  • live queue

Live queue concepts:

  • need of having master stream or some other way of telling the live queue what is the current live time
  • live queue should return buffers according to the clock
  • outdated buffers should be distincted from actual buffers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants