E.4. Section Filtering APIs

This section presents a simple example of how the section information can be extracted from the MPEG-2 Transport Stream. Here a SectionFilterListener is registered with a SimpleSectionFilter, which filters out sections of a given program identifier (PID) defined in MPEG-2 Systems.

 import org.iso.mpeg.mpegj.*; import java.lang.Boolean; public class SI_SF_Example implements MPEGlet { MpegjTerminal mpegjTerminal; SimpleSectionFilter ssFilter; SectionFilterListener sfListener; int milliSecs; // Class public methods public SI_SF_Example() { // initialize the mpegjterminal mpegjTerminal = new MpegjTerminal(this); // other initializations go here ssFilter = new SimpleSectionFilter(); sfListener = new SectionFilterListener(); ...

Get MPEG-4 Book, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.