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

WIP: one ./MistServer binary that contains everything #195

Open
wants to merge 24 commits into
base: development
Choose a base branch
from

Conversation

iameli
Copy link
Contributor

@iameli iameli commented May 10, 2024

Terrible code. Proof-of-concept only. Doesn't work yet. But it does make one binary that boots a few things! Build the new ninja MistServer target to try it out.

ninja MistServer && ./MistServer -g 8 -c ../config.json
image

Notes:

  • This is one binary embedding MistController MistOutHLS MistOutHTTP MistOutRTMP MistInBuffer MistSession. So far only RTMP input and output work, HTTP is busted. Capabilities discovery is presently limited to some hardcoded JSON strings; you'd probably want to do codegen on that so capabilities can just be hardcoded at compile time.
  • I've had to go through a few different code paths that all call execvp themselves to prepend Util::getMyPath() + "MistServer". I assume the right path here would be to refactor all of those calls to use the same helper in procs.h so that can just be hardcoded/IFDEF'd in one place.
  • Everything other than the ninja MistServer target is broken on that branch, so there's obviously quite a bit of work to do on setting things up so that they can all be individual modules or one shared thing.

@iameli iameli force-pushed the eli/one-binary branch 2 times, most recently from b3d5aa8 to 8fca97c Compare May 19, 2024 18:26
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.

1 participant