Regression. V4l2 encoder is broken in 170dcd58.
On RaspiOS Bullseye v4l2h264enc producess huge output file after 170dcd58 update with size hundreds times larger, comparing to previous version (6ece5f3b). h264 data in the huge file seems to be correct. Players (gst-play or mpv) can play the stream with a lot of overhead in processing. 6ece5f3b version works as intended. Did not test this issue on other platforms.
Steps to reproduce: gst-launch-1.0 videotestsrc num-buffers=500 ! video/x-raw,colorimetry=bt709,format=NV12,width=640,height=480,framerate=30/1,interlace-mode=progressive ! v4l2h264enc extra-controls=c,video_bitrate=10000000 ! 'video/x-h264, profile=high, level=(string)5.1' ! filesink location=test.h264
6ece5f3b version: -rw-r--r-- 1 root root 7072377 Sep 3 10:10 test.h264
170dcd58 version: -rw-r--r-- 1 root root 1048576000 Sep 3 10:17 test.h264
Compile options for two updates are the same.
Thank you in advance