mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-15 13:35:30 +00:00
[PR #1422] [MERGED] add option to extract closed captions and burnt in subs in the same pass #2174
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1422
Author: @shashwat1002
Created: 3/14/2022
Status: ✅ Merged
Merged: 3/27/2022
Merged by: @cfsmp3
Base:
master← Head:burnt_in_and_normal_subs📝 Commits (3)
68d9303[NEW] add functionality to allow extraction of cc and burnt-in subs in the same passfcc359cadd change logd7fe939run clang formatter📊 Changes
10 files changed (+542 additions, -216 deletions)
View changed files
📝
docs/CHANGES.TXT(+3 -0)📝
src/ccextractor.c(+11 -12)📝
src/lib_ccx/ccx_common_option.c(+1 -0)📝
src/lib_ccx/ccx_common_option.h(+1 -0)📝
src/lib_ccx/general_loop.c(+192 -163)📝
src/lib_ccx/hardsubx.c(+15 -10)📝
src/lib_ccx/hardsubx.h(+15 -13)📝
src/lib_ccx/hardsubx_decoder.c(+278 -9)📝
src/lib_ccx/lib_ccx.h(+9 -0)📝
src/lib_ccx/params.c(+17 -9)📄 Description
In raising this pull request, I confirm the following (please check boxes):
(Not applicable because still WIP)
My familiarity with the project is as follows (check one):
This PR is in context to issue #726
The current status is that the generated subtitle file has content from closed-caption extraction and burnt-in extraction, however they are not in the correct order.
The approach I have in mind right now is to use the timestamp of previously encoded subtitles of one of the modes (burnt-in or closed caption) and make a decision on which packet to process (the image or the closed caption)
Please advise on whether this approach looks okay.
Note: I have added appropriate command line options for this already
Any advice is appreciated
CC: @cfsmp3
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.