Add support for writing to a generic section stream #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for all your review of my pull requests!
I need a way to write SCTE-35 splice data into a TS stream. At this time, reading is not necessary.
SCTE-35 splice_info_section is a short format section stream that normally only spans a single TS packet, but could span multiple packets. The first packet needs the PUSI set and inserts a pointer_field byte. Subsequent packets do not set PUSI and do not have the pointer_field.
TsPayload::Raw
will work for subsequent packets, but right now, there is not an appropriateTsPayload
to use for the first payload. It really is a PSI table, but I have a pile of bytes that I don't want to have to parse into aPsiTable
. Even then, there isn't aTsPayload
to write a genericPsi
.Here is my proposal, but I don't know if it is the right thing to do. It is kind of a very low-level interface for generic section streams. I welcome your feedback.
Again, this is just writing. Reading would take a pretty large change to the reader as it assumes all elementary streams in the PMT are PES and doesn't handle section streams. Maybe we can think about that for another day.