gstreamer+mpp 使用mpph265enc时,如何设定比特率?

固件类型:官方提供的固件
固件文件名称:RK3588_unbuntu_2.0
固件下载地址:xx
Log日志:log.txt

如题,请教各位,这是我目前的python脚本中的命令行:
self.pipeline = Gst.parse_launch(‘v4l2src device=/dev/video0 ! image/jpeg,width=1280,height=960,framerate=25/1 ! jpegdec ! videoconvert ! tee name=t
t. ! queue ! mpph264enc ! h264parse ! mpegtsmux ! hlssink target-duration=1 playlist-location=’ + self.directory + ‘/playlist.m3u8 max-files=5
t. ! queue ! mpph265enc ! h265parse config-interval=1 ! splitmuxsink name=muxer muxer=mpegtsmux location=’ + self.directory + ‘/’+ ‘101_’ +date_time +‘segment%02d.ts max-size-time=30000000000 max-files=1000’)
发现保存下来的文件特别大,比特率3900K左右,半分钟就将近50M了,能否手动指定最大和最小比特率呢。。尝试了bitrate参数,提示不支持这个参数。感谢各位!
tchip_askquestions
log.txt (463 Bytes)

你好,请问你解决了如何调整比特率的问题了吗?我遇到了和你一样的问题,能否解答一下

使用gstreamer编码器常用属性bitrate修改比特率,脚本内容改为:
self.pipeline = Gst.parse_launch(‘v4l2src device=/dev/video0 ! image/jpeg,width=1280,height=960,framerate=25/1 ! jpegdec ! videoconvert ! tee name=t
t. ! queue ! mpph264enc bitrate = 1000 ! h264parse ! mpegtsmux ! hlssink target-duration=1 playlist-location=’ + self.directory + ‘/playlist.m3u8 max-files=5
t. ! queue ! mpph265enc bitrate = 1000 ! h265parse config-interval=1 ! splitmuxsink name=muxer muxer=mpegtsmux location=’ + self.directory + ‘/’+ ‘101_’ +date_time +‘segment%02d.ts max-size-time=30000000000 max-files=1000’)1000为修改后的比特率,单位为kbps每秒。