Example project demonstrating how to use the RtspGStreamerLib NuGet package to capture RTSP video frames with optional image saving using SkiaSharp.
- Demonstrates RtspGStreamerLib usage with library reference
- Frame capture statistics (FPS, frame count)
- Optional frame saving as JPEG images using SkiaSharp
- Hardware acceleration support for ARM64 devices
# Basic usage - display FPS statistics only
dotnet run "rtsp://user:password@192.168.0.124:554/stream"
# With hardware acceleration (ARM64)
dotnet run "rtsp://user:password@192.168.0.124:554/stream" 1
# With image saving (saves frames every N seconds)
dotnet run "rtsp://user:password@192.168.0.124:554/stream" 0 2| Parameter | Description |
|---|---|
rtsp-url |
RTSP stream URL (required) |
hw-accel |
1 for hardware acceleration (ARM64), 0 for software (default) |
save-interval |
Seconds between saved frames (optional) |
| File | Description |
|---|---|
Program.cs |
Basic example - FPS statistics only |
ProgramWithImage.cs |
Advanced example - includes frame saving with SkiaSharp |
ImageHelper.cs |
Helper class for image conversion and saving |
- RtspGStreamerLib - Main library (project reference)
- SkiaSharp - Image processing (for frame saving)
Saved frames are stored in the frames/ directory as JPEG images with timestamps.
- IMAGE_PROCESSING.md - Guide for SkiaSharp image processing
- Main README - Complete library documentation