-
Notifications
You must be signed in to change notification settings - Fork 104
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
Feature request: Support streaming input data #89
Comments
is there any need to do this? |
No, the data in an MKV is text, in the format that It's not meant to be the caller's responsibility to parse ASS events for libass, and doing so complicates things for the caller substantially. For instance, I don't see a reason for any of this to be the caller's responsibility when libass already has the ability to do it. It's reasonable enough for SRT or other formats libass doesn't handle itself, but not for ASS. |
hm, that makes sense the style name mapping is kind of bothersome, as the styles and their ID's can currently be exported from libass using the getStyles function, but you can't check when the styles have been parsed, so you'd often call it before libass finishes parsing the header I admit there's no argument against this, as it's functionality would be a bit different than createEvent's |
This would allow for a number of additional use-cases. Basically:
subUrl
norsubContent
is set, create an empty track usingass_new_track
ass_process_data
on (for streaming raw text)ass_process_codec_private
on, and one to pass in a string + timestamp + duration to callass_process_chunk
onoptions
object called e.g.subHeader
thatass_process_codec_private
is called on at startup, though I don't see a reason not to allow deferring it.The text was updated successfully, but these errors were encountered: