A GStreamer element to measure framerate, bitrate and CPU usage
On Debian-based systems:
./autogen.sh
./configure --prefix /usr/ --libdir /usr/lib/$(uname -m)-linux-gnu/
make
sudo make install
Configure options may vary according to your specific system.
Just link in the perf
element wherever you want to take the
measurements from. For example, record an MP4 file and print
framerate, bitrate and CPU usage measurements at the output of the
encoder:
gst-launch-1.0 -e videotestsrc ! x264enc ! perf ! qtmux print-arm-load=true ! filesink location=test.mp4
- Install build dependencies (one-time step):
sudo apt install -y debhelper devscripts
- After cloning, run
dpkg-buildpackage -us -uc
in the source directory. The package will be left in the parent directory.
Copyright (c) 2019 RidgeRun, LLC.
Portions copyright (c) 2020 D3 Engineering, LLC.
Licensed LGPL2+ (LGPL-2.0-or-later); see file LICENSE for details.