mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
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/916
Author: @lennonwoo
Created: 1/24/2018
Status: ✅ Merged
Merged: 1/25/2018
Merged by: @cfsmp3
Base:
master← Head:master📝 Commits (9)
941077cremove swig Auto-generated filesb003ed7remove trivial signal_python_api & global array func84ce45bbe quiet when in PYTHON_API mode9134322clear up which function as apida72afemove asprintf to utilityddc7c19refactor pass_cc_buffer_to_python180da3eupdate build scriptsa3bb052update api_testing7ad5c22update python extension doc📊 Changes
29 files changed (+313 additions, -6228 deletions)
View changed files
📝
api/api_testing.py(+30 -21)📝
api/build_api(+57 -8)➖
api/build_api_exe(+0 -44)📝
api/build_library(+1 -2)📝
api/ccextractor.i(+8 -68)➖
api/ccextractor.py(+0 -341)➖
api/ccextractor_wrap.c(+0 -5366)📝
docs/Python extension module.txt(+18 -24)📝
linux/Makefile.am(+0 -2)📝
linux/build(+1 -2)📝
linux/build_hardsubx(+1 -2)📝
linux/builddebug(+1 -2)📝
linux/module_generator(+1 -2)📝
mac/Makefile.am(+0 -2)📝
mac/build.command(+1 -2)📝
src/ccextractor.c(+13 -85)📝
src/ccextractor.h(+7 -32)➖
src/extractors/extractor.c(+0 -98)➖
src/extractors/extractor.h(+0 -9)📝
src/lib_ccx/ccx_common_option.c(+1 -1)...and 9 more files
📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
ABSTRACT
The pull request fix the python extension brokens, now we can use python bindings to deal with the subtitle extracted from video again.
CHANGES
MY THOUGHTS
I want to talk about why I remove signal_python_api and python_subs_array.
First, signal_python_api, I notice that this flag variable is used to determine whether we should continue to execute the original ccextractor processing logic or not. But the problem is, do we really need to process original logic when we are using python to deal more detail subtitle things? We could do this thing just use the compiled binary file.
Second, the original code introduce python_subs_array as global variable to deal with the time judgement, this become boresome when we have to free the arrays in the end of api_start fucntion.
KNOWN ISSUES
USAGE
Use
./build_libraryin api directory to build the pythoon binding, then usepython2 api_testing.py options...to testI have test build script under Linux, the output example in python is as follow
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.