Download MPEGIO2 SDK User Manual
Transcript
MPEGIO2_API bool MPEGIO2_decoderMuxingTypeVal(unsigned long chanNum, int &st); Function: Get MPEG decoder stream type: Muxed(Video+Audio), Video Only, or Audio Only Decoding for the channel Input Parameter chanNum: MPEGIO2 Channel Number, must be between 0~totalChans-1 Output parameter st: can be: 0: Video and Audio Stream Decoding 1: Video Elementry Stream Decoding 2: Audio Stream 1 Elementry Stream Decoding 3: Audio Stream 2 Elementry Stream Decoding Return true for success. MPEGIO2_API bool MPEGIO2_decoderAutoDemux(unsigned long chanNum, int ad); Function: Set MPEG decoder auto demux mode for a channel Input Parameter chanNum: Channel Number, must be between 0~totalChans-1 Input parameter ad: 0 = Manual Mode, 1 = Auto Mode (Default) For Program Stream Demuxing: 0 -- Manual demux. User must specify which PES ID is video and which PES ID is audio. 1 -- Auto demux. The demux will automatically scan the input stream for PSM tables and automatically play the first program it finds. For Transport Sream Demuxing: 0 -- Manual demux. User must specify which PES ID is video and which PES ID is audio. Manual demux mode also requires the other parameters to be set: -decoder Video PID -decoder Audio PID -decoder PCR PID -decoder Private PID if wishing to extract user data 1 -- Auto demux. The demux will automatically scan the input stream for PSM tables and automatically play the first program it finds. Return True for success. Note: This function can only work when the channel is not currently decoding. MPEGIO2_API bool MPEGIO2_decoderAutoDemuxVal(unsigned long chanNum, int &ad); Function: Get MPEG decoder auto demux mode for a channel Input Parameter chanNum: Channel Number, must be between 0~totalChans-1 Output parameter ad: 0 = Manual Mode, 1 = Auto Mode (Default) Return True for success. MPEGIO2_API bool MPEGIO2_decoderMPEG4ShortHeader (unsigned long chanNum, int header); Function: Set decoding MPEG-4 short header and H.263 mode for a channel. Input Parameter chanNum: Channel Number, must be between 0~totalChans-1 Input parameter header: 0 -- MPEG-4 only(Default), 1 -- MPEG-4 short header, 2 -- H.263 Return True for success. Note: This function can only be called when the channel is not decoding. MPEGIO2_API bool MPEGIO2_decoderMPEG4ShortHeaderVal (unsigned long chanNum, int &header); Function: Get decoding MPEG-4 short header and H.263 mode for a channel. Input Parameter chanNum: Channel Number, must be between 0~totalChans-1 Output parameter header: 0 -- MPEG-4 only(Default), 1 -- MPEG-4 short header, 2 -- H.263 Return True for success. MPEGIO2_API bool MPEGIO2_newVideoPID(unsigned long chanNum, int newPID); Function: Set Video PID for MPEG decoding for PS or TS Stream Encoder Type of a Channel: For Program Stream Encoder Type: This sets the Video PES ID to be demultiplexed. In auto-demux mode, this command sets the initial Video PID. This initial Video PID will be valid until the arrival of the first PSM table. The demux will then replace the initial PID with new value taken from the PSM table. In manual demux mode, this command sets the Video PID to be demuxed, which will remain valid indefinitely. newPID range is 0 ~ 0xFF. MPEGIO2 SDK User Manual Page 80 Ver. 1.0.2