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

Streamed access to chunks. #1

Open
MichalCz opened this issue Dec 26, 2019 · 1 comment
Open

Streamed access to chunks. #1

MichalCz opened this issue Dec 26, 2019 · 1 comment

Comments

@MichalCz
Copy link
Member

The intention of Ahead Server is not to understand the file structure or be connected to any specific format. FFMpeg, GStreamer, MP4Box and others have more than sufficient capabilities in terms of creating segments and it's not our intention to compete. It's also not our intention to get strongly linked with any specific segmenter as well.

The simplest way to solve that is to use the filesystem - create a mount in the place where the segmenters write their chunks. There are two possibilities:

  • Expose WebDAV from ahead
  • Use fuse to implement a FS

Next mount the outcome in the writing point, then hijack the streams and push them straight to the outputs (via rereadable for caching).

FUSE may be a bit more efficient as it's using native bindings, but WebDAV seems simpler.

@MichalCz
Copy link
Member Author

This approach would also allow using long segments with multiple closed or half-closed GOPs in the segment.

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

No branches or pull requests

1 participant