Comments (3)
Yep, It was initially done this way since VC didn't have the option to specify port range. It should be fixed.
This works fine as long as the port isn't taken in the meantime (between checking in the plugin and registering on the VC side), but should be done on VC side
from membrane_video_compositor_plugin.
Yep, It was initially done this way since VC didn't have the option to specify port range. It should be fixed.
I'm talking about output stream not inputs. There is no (and it can't ever be) option to specifiy that range in compositor
This works fine as long as the port isn't taken in the meantime (between checking in the plugin and registering on the VC side), but should be done on VC side
I don't think this is true. Unless I missed sth there is no checking at all whether port is free. Request to register output will always succeed regardless whether port if free or not
from membrane_video_compositor_plugin.
Oh, sorry, I got it wrong.
To handle it correctly, we should:
- Try to spawn the UPD source for output and recover by trying the other port in the case of an error (port taken / not available). This could be "optimized" by firstly checking if the port is free (but it can be taken after check - TOCTOU problem).
- After successful spawn of UDP source register output with the request.
Also, for inputs:
- Instead of trying to use individual ports specify a range in the register input request.
from membrane_video_compositor_plugin.
Related Issues (18)
- Fix CI for Rust
- `merge_frames` benchmark is not very accurate HOT 1
- Arguments order in add_video function in lib/membrane/implementations/opengl/rust.ex changes order needlessly. HOT 3
- Change `merge frames` in `lib/membrane/video_compositor/frame_compositor.ex` to `render_frame` HOT 1
- Handling pad removing
- [VideoCompositor SDK] Add custom messages / events handling
- [VideoCompositor SDK] Add custom VC requests
- [VideoCompositor SDK] Add livebook examples
- [VideoCompositor SDK] Run VideoCompositor as app/binary
- [VideoCompositor SDK] POC
- Automatic VC binary download
- Fix ports for input and output streams
- Wait time for compositor to start is to short
- Recovery in case of error
- Add typespec definitions for compositor requests and better validation of input pads HOT 1
- Investigate `Connection reset by peer (os error 104)` error
- There is no error if websocket connection was not established
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from membrane_video_compositor_plugin.