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

Render frames concurrently #194

Open
vertify-mldev1 opened this issue May 24, 2022 · 2 comments
Open

Render frames concurrently #194

vertify-mldev1 opened this issue May 24, 2022 · 2 comments

Comments

@vertify-mldev1
Copy link

Hello!
As far as i can see, it is not possible to render multiple frames concurrently when transcoding a video.
Is it on the roadmap to support concurrency? Or did anyone implement anything in this direction?
Thanks for your help.

@izzytwosheds
Copy link
Contributor

Hi.
Can you clarify what is meant by concurrent frame rendering? Do you mean transcoding different sets of I and B frames? For example, keyframe 1 and following B frames would be transcoded at the same time as keyframe 2 and its following B frames.
To be honest, this is not something on the road map. We didn't have a use case for that so far, and introducing concurrency would complicated transcoding logic quite a bit. I don't know if anyone out there is doing this. I can see this being more relevant to transcoding on a backend, since concurrency is more relevant and doable there. On mobile devices, hardware capacity is limited and transcoding might fail if we hit the limit.

@vertify-mldev1
Copy link
Author

vertify-mldev1 commented May 27, 2022

Oh, let me clarify my use case a bit:

I send the decoded frames into a mediapipe graph (which is able to process multiple frames concurrently).
The output of the graph is fed to the encoder.

To achieve this i implemented a custom LiTr Renderer and noticed that renderFrame gets called serially, thus there can only be one frame in the graph at a time.

To feed multiple frames into the graph i would need to have access to multiple decoded frames at once.

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

No branches or pull requests

2 participants