vaapivp8enc bitrate setting works only in certain range
Submitted by Marcin Lewandowski
I am using GStreamer 1.12.0 on ubuntu zesty, compiled from sources. CPU is Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz. Here are versions of other, potentially important components:
I have found out that setting vaapivp8enc's bitrate parameters makes effect only within range that is approximately 900-13000. Any value below 900 results in +/- 900 and anything above 20000 results in +/- 13000 kbit/s.
I have created sample pipeline and I have been monitoring traffic using iptraf-ng. It was done within Docker container, so there was no other traffic that might interfere with it. For values within that range the actual traffic was more less equal to bitrate being set. For lower/higher it was adjusted to 900 or 13000.
gst-launch-1.0 videotestsrc is-live=true ! "video/x-raw,width=1280,height=720,framerate=15/1" ! vaapivp8enc bitrate=... rate-control=2 ! rtpvp8pay ! udpsink host=localhost port=5001