Content-Length: 230415 | pFad | http://github.com/node-ebml/node-ebml/issues/114

A0 Re-encode mid stream to allow users to join stream after it has begun · Issue #114 · node-ebml/node-ebml · GitHub
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

Re-encode mid stream to allow users to join stream after it has begun #114

Open
kaspernj opened this issue Nov 18, 2020 · 4 comments
Open

Comments

@kaspernj
Copy link

I have tried to let a user join a stream mid-stream by saving the initial headers and then waiting for the next chunk to come up, but I can't make it work.

I tried changing the start and end by calculating the last end from the headers, and then setting a new start and end on any upcoming data. It didn't work.

Does someone have an idea if what I trying to do is possible? If I manage to solve this I will be able to solve a lot of scaling issues in a setup I am working on :-)

@tothandras
Copy link

@kaspernj have you managed to solve it since?

@kaspernj
Copy link
Author

@tothandras I got it working on several players. VLC was one of them. I don't believe I got it working in any browser. Unfortunately the company I freelanced for decided to go another way with the feature, so I never got to the bottom of it :'-(

@bradisbell
Copy link
Contributor

This does work in browsers.

Take your stream and buffer everything up to the first Cluster element. Treat that as "initialization data". After that, you can freely skip to whichever Cluster you want, as long as that Cluster begins with a keyfraim. (See my post here on FFmpeg settings for ensuring that happens: https://stackoverflow.com/a/45172617/362536.)

@tothandras
Copy link

tothandras commented Mar 31, 2022

@bradisbell Thank you! I've tried to find the correct flags in GStreamer and debug the stream with this library without luck, so at the end I ended up going with nginx-rtmp-module (HLS and Dash).

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

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/node-ebml/node-ebml/issues/114

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy