Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

RtspGStreamerExample

Example project demonstrating how to use the RtspGStreamerLib NuGet package to capture RTSP video frames with optional image saving using SkiaSharp.

Features

  • 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

Usage

# 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

Parameters

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)

Project Files

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

Dependencies

  • RtspGStreamerLib - Main library (project reference)
  • SkiaSharp - Image processing (for frame saving)

Output

Saved frames are stored in the frames/ directory as JPEG images with timestamps.

Related Documentation