3#include <QtCore/QMetaType>
4#include <QtCore/QObject>
5#include <QtCore/QString>
6#include <QtQmlIntegration/QtQmlIntegration>
19 QML_VALUE_TYPE(videoStreamStats)
21 Q_PROPERTY(
double fps MEMBER
fps FINAL)
double lossPercent
Share of the RTP packets due in the last interval that were lost.
bool degraded(double cameraFps) const
qint64 framesDropped
Since the stream started: frames the display dropped to keep up with the stream.
QString codec
"H.264", "H.265", ..., or a USB camera's capture format, such as "MJPEG" or "YUYV".
bool valid
Measured at least once for the current stream; the other fields mean nothing while false.
qint64 decoderRestarts
Since the stream started: times the decoder was replaced after an error or a stall.
QString decoder
The decoder's element factory, e.g. "avdec_h264".
double keyframeIntervalMs
Between keyframes, from their timestamps, averaged over the last few.
qint64 uptimeMs
Since the stream last connected.
double latencyMs
The pipeline's minimum latency, the playout delay it adds on top of the network's.
double jitterMs
RTP interarrival jitter (RFC 3550), averaged over the last packets.
qint64 packetsLate
Since the stream started: RTP packets that arrived after their playout time, and duplicate RTP packet...
int reconnects
Since the stream was started or restarted: reconnects after the stream failed.
bool operator==(const VideoStreamStats &) const =default
qint64 packetsLost
RTP packets lost since the stream started.
qint64 recordingMs
While recording: for how long, and the bytes written to its files so far.
double droppedFps
Frames dropped per second in the last interval.
qint64 rtxRequested
Since the stream started: RTP retransmissions requested (RTSP), and how many arrived in time.
qint64 gpuFallbacks
Since the stream started: frames a zero-copy GPU path was tried for but the CPU delivered.