-
Notifications
You must be signed in to change notification settings - Fork 519
Add --split-dvb-subs to extract each DVB subtitle stream into a separate file (fixes #447) #1836
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
Conversation
Fixes CCExtractor#447: Extract each DVB stream to a separate file
- Add missing fields to ccx_decoders_dvb_context: private_data, cfg, initialized_ocr - Add dvb_decoder_ctx field to ccx_stream_metadata - Add language field to cap_info structure - Add split_dvb_subs field to lib_ccx_ctx - Initialize split_dvb_subs from options in init_libraries - Fix all references to use correct struct field names (lang vs language, stream_pid vs pid) - Update Rust bindings to include new language field in cap_info - Match dvb_init_decoder, dvb_free_decoder, and dvb_decode signatures between header and implementation Co-authored-by: Rahul-2k4 <[email protected]>
Co-authored-by: Rahul-2k4 <[email protected]>
Apply clang-format and rustfmt formatting fixes
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit f6cb862...:
Your PR breaks these cases:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit f6cb862...:
Your PR breaks these cases:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
Description
This PR adds support for extracting multiple DVB subtitle streams into separate output files via a new opt-in flag: --split-dvb-subs.
It resolves the long-standing request in #447, where users want CCExtractor to automatically handle transport streams containing multiple DVB subtitle tracks (e.g. multi-language broadcasts) without pre-selecting PIDs or running the tool multiple times.
Default behavior is unchanged unless the flag is explicitly enabled.
### Motivation
Summary of Changes
Testing
Built and tested with and without --split-dvb-subs
Verified extraction on DVB TS files containing multiple subtitle streams
Confirmed:
Scope / Notes
Closing
I’ve tried to keep this change conservative, backward-compatible, and well-isolated from existing logic.
Feedback is very welcome I’m happy to revise or split the PR if needed.