Skip to content

Commit 49890a4

Browse files
authored
Update publish.py
1 parent 3af7f74 commit 49890a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

publish.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,8 @@ async def main():
25272527
if h265 == "mpph265enc":
25282528
# mpph265enc uses bps (bits per second) instead of bitrate
25292529
# bps takes value in bits per second, so multiply bitrate (kbps) by 1000
2530-
pipeline_video_input += f' ! videoconvert{timestampOverlay} ! video/x-raw,format=NV12 ! {h265} name="encoder" bps={args.bitrate * 1000} qos=true qp-init=35 qp-max=45 qp-min=20 qp-max-i=40 qp-min-i=20 rc-mode=1 ! video/x-h265,stream-format=(string)byte-stream'
2530+
pipeline_video_input += f' ! videoconvert{timestampOverlay} ! video/x-raw,format=NV12 ! {h265} name="encoder" bps={args.bitrate * 1000} qos=true gop=30 header-mode=1 qp-init=30 qp-max=40 qp-min=18 qp-max-i=35 qp-min-i=18 rc-mode=1 ! video/x-h265,stream-format=(string)byte-stream'
2531+
25312532
elif h265 == "x265enc":
25322533
# x265enc uses bitrate in kbps
25332534
pipeline_video_input += f' ! videoconvert{timestampOverlay} ! queue max-size-buffers=10 ! {h265} bitrate={args.bitrate} speed-preset=superfast tune=zerolatency key-int-max=30 name="encoder" ! video/x-h265,profile=main,stream-format=byte-stream'

0 commit comments

Comments
 (0)