emk / subtitles-rs

Use SRT subtitle files to study foreign languages (in progress)
Apache License 2.0
303 stars 34 forks source link

Vobsub: allow parsing demuxed data streams #42

Closed fengalin closed 4 months ago

fengalin commented 6 years ago

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: