B2C2, Inc. - Software Development Kit

Code Sample Applications > TestAVFilter

TestAVFilter (Windows Only)

TestAVFilter is a Windows/Linux command-line application that tests the Audio/Video PID interface to the B2C2 MPEG-2 filter, including the callback video window described in IB2C2MPEG2AVCtrl2::SetCallbackForVideoMode. The desired tuner parameters and Audio/Video PIDs are set via command-line arguments.

Running the Application

Run TestAVFilter directly from the command prompt by typing TestAVFilter followed by the required command-line arguments. Note: Settings provided are for example only. Actual Tuner and PID settings vary with the local network.

Satellite Example:

TestAVFilter -i s -f 12384 -s 20000 -l 11250 -e auto -o h -k 0 -d a/a -pa 0x1623 -pv 0x1622

To run TestAVFilter from script, edit a *.bat file script such as run_tavf_sat.bat using required command-line arguments. Run the *.bat file by typing its name (run_tavf_sat.bat) at the command prompt.

Command-line Arguments

Required Arguments

  Description  

Example

      Note: Some arguments are only required if a certain tuner type is used. For these cases, tuner type will be noted as follows: c (cable), s (satellite), t (terrestrial DVB), a (terrestrial ATSC).    
 

-a

  Adapter name.   -a eth1
 

-i

  Tuner type. Valid values are: c (cable), s (satellite), t (terrestrial DVB), a (terrestrial ATSC).   -i s
 

-f

  Transponder Frequency in MHz (c, s, t, a).   -f 12426
  -s   Symbol Rate in KS/s (c, s).   -s 27500
  -m   Modulation in QAM (c). Valid values are: 4, 16, 32, 64, 128, 256.  

-m 16

  -l   LNB Frequency in MHz (s). Note: must be less than Transponder Frequency specified with -f.  

-l 11250

  -e   FEC (s). Valid values are: 1/2, 2/3, 3/4, 5/6, 7/8, auto.  

-e auto

  -o   Polarity (s). Valid values are: h (horizontal), v (vertical).  

-o h

  -k   LNB Selection in KHz(s). Valid values are: 0, 22, 33, 44.  

-k 22

  -d   DiSEqC (s). Valid values are: n (none), a, b, a/a, a/b, b/a, b/b.  

-d b/a

  -g   Guard interval (t). Valid values are: 1/4, 1/8, 1/16, 1/32.  

-g 1/16

  -pa   Audio PID as integer or hex. (c, s); e.g. 164, 0xa4 or 0XA4.  

-pa 0x501

  -pv   Video PID as integer or hex. (c, s); e.g. 164, 0xa4 or 0XA4.  

-pv 0x3e9

Optional Arguments

     

  -h   Help.    

TestAVFilter Output

Example:

Successfully set callback function
TestAVFilter.exe: Horizontal size: 544
TestAVFilter.exe: Vertical size : 480
TestAVFilter.exe: Aspect Ratio : 2
TestAVFilter.exe: Frame Rate : 4

Return to Top


Copyright © 1998-2002 B2C2, Inc. Proprietary and Confidential