A GStreamer element to measure framerate, bitrate and CPU usage
On Debian-based systems:
./autogen
./configure --prefix /usr/ --libdir /usr/lib/x86_64-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