[PR #751] [MERGED] **[FEATURE]**: Extracted captions in python #1567

Open
opened 2026-01-29 17:17:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/751
Author: @Diptanshu8
Created: 7/13/2017
Status: Merged
Merged: 7/19/2017
Merged by: @cfsmp3

Base: masterHead: first_phase_evaluation


📝 Commits (10+)

  • 4d5f80a Found wrapper for write. Check file_handle and start processing.
  • 976f01c CCs to python_subs extracted properly
  • 2ced408 build and build_library working correctly
  • 5742485 Working on PR
  • 8895b27 CC being shown in python script.
  • d2bd2d1 added basefilename to python_subs
  • 86b7e73 Added extension to python_subs
  • 1435411 Commenting out the file name related functions.
  • e3e5f8b Apply write wrapper across entire database.
  • 02b4427 making changes to write wrapper

📊 Changes

18 files changed (+796 additions, -172 deletions)

View changed files

📝 api/api_testing.py (+4 -0)
📝 api/build_api (+2 -0)
📝 api/build_library (+2 -0)
📝 api/ccextractor.py (+55 -1)
📝 api/ccextractor_wrap.c (+509 -9)
📝 linux/build (+3 -1)
📝 src/ccextractor.c (+39 -1)
📝 src/ccextractor.h (+19 -0)
📝 src/lib_ccx/ccx_decoders_708_output.c (+15 -15)
📝 src/lib_ccx/ccx_encoders_common.c (+20 -20)
📝 src/lib_ccx/ccx_encoders_g608.c (+7 -7)
📝 src/lib_ccx/ccx_encoders_sami.c (+18 -18)
📝 src/lib_ccx/ccx_encoders_smptett.c (+13 -13)
📝 src/lib_ccx/ccx_encoders_srt.c (+18 -15)
📝 src/lib_ccx/ccx_encoders_ssa.c (+12 -12)
📝 src/lib_ccx/ccx_encoders_transcript.c (+5 -5)
📝 src/lib_ccx/ccx_encoders_webvtt.c (+26 -26)
📝 src/lib_ccx/matroska.c (+29 -29)

📄 Description

Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

{pull request content here}
This pull request mainly comprises a feature of accessing the extracted captions in python. This has been accomplished by using a wrapper for the standard write function.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/751 **Author:** [@Diptanshu8](https://github.com/Diptanshu8) **Created:** 7/13/2017 **Status:** ✅ Merged **Merged:** 7/19/2017 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `first_phase_evaluation` --- ### 📝 Commits (10+) - [`4d5f80a`](https://github.com/CCExtractor/ccextractor/commit/4d5f80a01db4f8d8c67e1d9a0b4b699db25230c1) Found wrapper for write. Check file_handle and start processing. - [`976f01c`](https://github.com/CCExtractor/ccextractor/commit/976f01cee1523320829f75748c82b3ce16d6913e) CCs to python_subs extracted properly - [`2ced408`](https://github.com/CCExtractor/ccextractor/commit/2ced408994bffeefdd432a7d5a0d1980acb8d8fa) build and build_library working correctly - [`5742485`](https://github.com/CCExtractor/ccextractor/commit/57424857b0bd447791e356ea553b70b3f9dc6c5f) Working on PR - [`8895b27`](https://github.com/CCExtractor/ccextractor/commit/8895b27552498e59a8168270d79d608a7148c6ef) CC being shown in python script. - [`d2bd2d1`](https://github.com/CCExtractor/ccextractor/commit/d2bd2d13971108079d1907a59d7c9d5db8d6156e) added basefilename to python_subs - [`86b7e73`](https://github.com/CCExtractor/ccextractor/commit/86b7e7348eff35f6e2904c089ac6569b23f895f0) Added extension to python_subs - [`1435411`](https://github.com/CCExtractor/ccextractor/commit/143541186105321a5e7446f8a992ebd53db56189) Commenting out the file name related functions. - [`e3e5f8b`](https://github.com/CCExtractor/ccextractor/commit/e3e5f8b36e810a14c5e1833c7851c4ae966f54cb) Apply write wrapper across entire database. - [`02b4427`](https://github.com/CCExtractor/ccextractor/commit/02b442726070222f72c82e9eb1addfc7c4cc515d) making changes to write wrapper ### 📊 Changes **18 files changed** (+796 additions, -172 deletions) <details> <summary>View changed files</summary> 📝 `api/api_testing.py` (+4 -0) 📝 `api/build_api` (+2 -0) 📝 `api/build_library` (+2 -0) 📝 `api/ccextractor.py` (+55 -1) 📝 `api/ccextractor_wrap.c` (+509 -9) 📝 `linux/build` (+3 -1) 📝 `src/ccextractor.c` (+39 -1) 📝 `src/ccextractor.h` (+19 -0) 📝 `src/lib_ccx/ccx_decoders_708_output.c` (+15 -15) 📝 `src/lib_ccx/ccx_encoders_common.c` (+20 -20) 📝 `src/lib_ccx/ccx_encoders_g608.c` (+7 -7) 📝 `src/lib_ccx/ccx_encoders_sami.c` (+18 -18) 📝 `src/lib_ccx/ccx_encoders_smptett.c` (+13 -13) 📝 `src/lib_ccx/ccx_encoders_srt.c` (+18 -15) 📝 `src/lib_ccx/ccx_encoders_ssa.c` (+12 -12) 📝 `src/lib_ccx/ccx_encoders_transcript.c` (+5 -5) 📝 `src/lib_ccx/ccx_encoders_webvtt.c` (+26 -26) 📝 `src/lib_ccx/matroska.c` (+29 -29) </details> ### 📄 Description Please prefix your pull request with one of the following: **[FEATURE]** **[FIX]** **[IMPROVEMENT]**. **In raising this pull request, I confirm the following (please check boxes):** - [x] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [x] I have checked that another pull request for this purpose does not exist. - [x] I have considered, and confirmed that this submission will be valuable to others. - [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. - [x] I give this submission freely, and claim no ownership to its content. **My familiarity with the project is as follows (check one):** - [ ] I have never used CCExtractor. - [ ] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [x] I am an active contributor to CCExtractor. --- {pull request content here} This pull request mainly comprises a feature of accessing the extracted captions in python. This has been accomplished by using a wrapper for the standard `write` function. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:17:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1567