1USB MPEG Capture DeviceSoftware Manual (Linux)Models 2250/2251 | Ver2.0.X | July 2011
Returns0 on success, negative value if error(see s2250mid.h) int SN_SetHue( int boardnum, int hue);Sets the hue (-50 to 50).Parametersboardnumboar
int SN_SetBrightness( int boardnum, int brightness);Sets the brightness(0-100)Parametersboardnumboard instance in system.brightnessVideo brightne
0 on success int SN_ClearCaption( int board );Not supported in V2.0.0 release.Clears all captions/overlays.Parametersboardboard number in the syste
unsigned char *pBuf, int*buflen);Gets audio samples. Call with buflen set to size of sample requested. Returns actual size of samples. See s
0 on success, negative value if error int SN_Polling( int board));Sets the SDK to return immediately on calls to SN_GetAudioData and SN_GetOneFrame
Parametersboardboard number in the system (use 0 for single board setups).seq_modeSequence mode. GOP size must be valid for the given sequence mode.
Advanced use only. Changes encoded height. Call this function(if desired) after setting SN_SetBasicChipSettings and before starting the stream. Onl
height=480;width=720 (NTSC only)height=576;width=720 (PAL only)height=576;width=704 (PAL only)height=576;width=720 (PAL only)Returns0 on success, nega
);Advanced use only. debug_level = 0(default), quiet SDK. debug_level=1(debug messages in SDK for debugging ONLY).Parametersdebug_level0 quiet. 1 de
TABLE OF CONTENTSSOFTWARE ...
SoftwareFeature SummaryThe 2250 uses the standard Video4Linux2 (V4L2) API through a Linux kernel module. A full-featured console demo application allo
6) To encode for example MPEG1 Program Stream (Audio and Video) to test.mpg issue the following commands. Type “h” for a list of commands.• “encode 0”
SDK ReferenceRelease NotesV.2.0.0 Driver moved to kernel space to provide V4L2 API. SDK 2250 API now uses V4L2 API to ease migration from V1.2.x. Th
• video system and geometry: SN_SetVideoSource()• audio source: SN_SetAudioSource();• basic settings and compression mode SN_SetBasicChipSettings()• v
int SN_CloseBoard( int boardnum);Must be called before application terminates for proper clean-up of the SDK and board module.Parametersboardnum.Retu
source0 – SVIDEO1 – Composite videoReturns0 on success, negative value if error int SN_SetAudioSource( int boardnum, int source);Selects between L
videosystem0- NTSC1- PAL2- Returns0 on success, negative value if error. int SN_SetBasicChipSettingss( int boardnum, EVideoFormat encodetype, in
Komentáře k této Příručce