Comments (6)
Some basic notes:
- Multi program requires lots of work in the "library-ation" part. We'll need to get rid of most globals, start using contexts for example.
- The function ts_readstream(void) (in ts_functions.cpp) is possibly the best way to start to understand the issues. That function reads from the transport stream until it can return a complete PES from the program with the correct PID (correct as in where the CC data is expected to be). It also parses PAT and PMT and discards unwanted packets. We will need to change that function so that it returns the next PES from any program.
- The function that calls ts_readstream() -ts_getmoredata()- then takes the PES data and sends it to the appropiate place (depending if it's H264, MPEG, Hauppage's proprietary format, etc). Since it already expects the packet to be prefiltered it doesn't do any kind of per-program magic.
- A very basic part of the job is already done: All PMTs are saved so we can keep track of programs in the transport stream. Now we will need to initialize 'per program' structures so we can keep track of status for each program.
- Since each program has its own closed caption data it follows that this 'per program' structure is where the CC decoder structures will live (as opposed of just having a couple of global as we do now).
from ccextractor.
Multiprogram support is completed as part of GSOC 15, using ccextractor with -multiprogram option allow user to output caption of multiple programs
from ccextractor.
This feature can be tested using /newRepository/TestFiles/General/Closedcaption_atsc_multiprog.ts in our gsoc repository.
using following cmd:
./ccextractor -multirogram /newRepository/TestFiles/General/Closedcaption_atsc_multiprog.ts
from ccextractor.
I'm assigning this to Willem to validate and make sure our test suite deals OK with multiprogram, if it does I'll close the ticket.
from ccextractor.
Sample TS: https://drive.google.com/drive/folders/0B_61ywKPmI0TQTZEMm5Tajd5RVU
from ccextractor.
Closing - confirmed working.
from ccextractor.
Related Issues (20)
- [BUG] Issue 1077 Still lives
- [QUESTION] Need help with dependencies for Windows 11 to extract hard subtitles
- BUG: ccextractor 0.94 cannot find dvb subtitles, vlc works fine... HOT 1
- [BUG] brew.sh formula no longer available HOT 8
- [BUG] Error: Broken AVC stream on Twitch.tv stream file HOT 4
- [PROPOSAL]: Snap package for `ccextractor` HOT 1
- [QUESTION] make_error: gpac/isomedia.h: No such file or directory HOT 3
- [BUG] ccextractor skips many captions (CEA-708)
- require a nix.flake file
- [DOCS] Dependencies not installed for fedora HOT 3
- [BUG] Subtitles not extracted from Twitch stream HOT 1
- Message#error HOT 1
- [QUESTION] Unexpected behavior of `get_write_interval` HOT 4
- [PROPOSAL] Update Rust dependencies in Cargo.toml
- [PROPOSAL] create Debian trixie package
- [BUG] Segmentation fault when extracting from MP4 which remuxed from HLS
- [PROPOSAL] [DOCS] Note CCExtractor is also available via Scoop package manager for Windows
- [QUESTION] How Do You Get Confirmed Airdates And Times From Dailymotion Uploads In CCExtractor?
- [BUG] Errors when compiling on mac with OCR (Leptonica) HOT 1
- [BUG] [EIA-608] Can't extract subtitles in TS file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccextractor.