O'Reilly logo

MPEG-4 Book, The by Touradj Ebrahimi, Fernando Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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(); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required