Console Demo Application
The STANAG Player SDK includes a console demo application that demonstrates basic functionality, such as playing STANAG files or streams.
Building the Demo Application
By default, the demo app is located at:
C:\Program Files\ImpleoTV\StanagPlayerSdkNet\Samples\KlvPlayerTestApp
To build it:
- Open the solution or project file
KlvPlayerTestAppPr
. - Build the project as a 64-bit application (Debug or Release).
To run the demo app, provide a STANAG source using the -i
argument.
For example:
-i c:\movies\mymovie.ts
Command-Line Arguments
Short | Command | Description |
---|---|---|
-i |
--input |
Input URL. Can be a file path or a UDP/RTSP stream (e.g., udp://227.1.1.1:30120 ). |
-o |
--output |
Directory to save captured frames. |
-r |
--recording |
DVR recording URL for playback of previously recorded streams. |
-v |
--video |
Show video during processing. Default: true . |
--frameCaptureFormat |
Frame capture format: 0 = None, 1 = JPEG, 2 = BMP. |
|
-d |
--maxDelay |
Maximum allowed delay (in milliseconds) between video and KLV metadata. |
-c |
--caching |
Network caching buffer size. Increase for unstable networks; decrease for lower latency. |
--minKlvPacketCount |
Minimum number of KLV tags required in a packet. Default: 3 . |
|
--klvPid |
KLV PID to use for metadata decoding. | |
--rtspSourceInterleaved |
Use TCP (interleaved) mode for RTSP sources. Default: false . |
|
--licenseFile |
Path to the license file. If not specified, the default license file is searched in the application directory. | |
--licenseKey |
License key string used for activation. | |
-? |
--help |
Show help and usage instructions. |
Features and Controls
You can pause, stop, restart, or seek playback.
The application displays real-time statistics about the stream.
To inspect KLV packets in JSON format, press K to open the KlvMonitor window.
See Klv Monitor for more details.