It is invalid to set nvv4l2h264enc‘s constant bitrate

this is my gstreamer pipeline:

appsrc name=appsrc ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! nvvideoconvert ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080,framerate=(fraction)30/1 ! nvv4l2h264enc control-rate=constant_bitrate bitrate=24000000 iframeinterval=0 profile=0 maxperf-enable=true ! video/x-h264, stream-format=(string)byte-stream ! h264parse ! qtmux  ! filesink location=./camera_dev_6_2021_8_24_15_49_25.h264

and this my h264 file infomations,that is not constant bitrate:

General
Complete name                            : camera_dev_6_2021_8_24_15_49_25.h264
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   2005.03 (qt  )
File size                                : 983 MiB
Duration                                 : 5 min 43 s
Overall bit rate                         : 24.0 Mb/s
Encoded date                             : UTC 2021-08-24 07:49:25
Tagged date                              : UTC 2021-08-24 07:55:12
FileExtension_Invalid                    : mov mp4 m4v m4a m4b m4p 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L4.1
Format settings                          : 1 Ref Frames
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 5 min 43 s
Bit rate                                 : 24.0 Mb/s
Maximum bit rate                         : 38.6 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.386
Stream size                              : 983 MiB (100%)
Encoded date                             : UTC 2021-08-24 07:49:25
Tagged date                              : UTC 2021-08-24 07:55:12
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

how can I fix the problem?

Hi,
The bitrate looks meeting your setting. It is set to 24Mbps:

bitrate=24000000

And encoded stream is 24Mbps:

Overall bit rate                         : 24.0 Mb/s

Hi,
The bitrate=24000000 is my setting,but does the Maximum bit rate=38.6 Mb/s matter?

Hi,
If you cannot have burst bitrate in your use-case, please set virtual buffer size along with CBR. May refer to
V4l-encoder options for stringent bitrate - #3 by DaneLLL