Coder Social home page Coder Social logo

GSOC - Multiprogram about ccextractor HOT 6 CLOSED

ccextractor avatar ccextractor commented on August 20, 2024
GSOC - Multiprogram

from ccextractor.

Comments (6)

cfsmp3 avatar cfsmp3 commented on August 20, 2024

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.

anshul1912 avatar anshul1912 commented on August 20, 2024

Multiprogram support is completed as part of GSOC 15, using ccextractor with -multiprogram option allow user to output caption of multiple programs

from ccextractor.

anshul1912 avatar anshul1912 commented on August 20, 2024

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.

cfsmp3 avatar cfsmp3 commented on August 20, 2024

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.

cfsmp3 avatar cfsmp3 commented on August 20, 2024

Sample TS: https://drive.google.com/drive/folders/0B_61ywKPmI0TQTZEMm5Tajd5RVU

from ccextractor.

cfsmp3 avatar cfsmp3 commented on August 20, 2024

Closing - confirmed working.

from ccextractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.