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

Vobsub: allow parsing demuxed data streams #42

Closed
wants to merge 3 commits into from

Conversation

fengalin
Copy link

@fengalin fengalin commented Apr 18, 2018

In a framework such as GStreamer, the vobsub decoder will be inserted in
a pipeline after elements taking care of demuxing the Mpeg 2 stream. In
such a situation, the PES packets are already parsed. Only the subtitle data
is available.

This PR introduces the data mode in SubtitlesFromChunks which uses the same
interface as the packet mode. The file fixtures/example_data.sub is a demuxed
version of fixtures/example.sub.

Notes:

The `needed` length was not available in all cases which made it
useless in some situations in chunk mode.

This commit attempts to guestimate the `needed` length so that
the next chunk is always large enough for the next iteration to
at least give a new `needed` length which will allow progressing
in the stream.
In a framework such as GStreamer, the `vobsub` decoder will be inserted in
a pipeline after elements taking care of demuxing the Mpeg 2 stream. In
such a situation, the PES packets are already parsed. Only the subtitle data
is available.
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.

None yet

2 participants