IMX8MM: how to change vpuenc_h264 profile_idc and level_id

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MM: how to change vpuenc_h264 profile_idc and level_id

1,137 Views
santhosh2
Contributor IV

Hello,

I am using gstreamer for rtsp streaming,

gst-variable-rtsp-server -p 554 -m /video_1 -u "v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! videocrop left=320 top=140 bottom=140 right=320 ! videoconvert ! vpuenc_h264 gop-size=1 Level_id=5=(string)5 bitrate=20000 tune=zerolatency speed-preset=superfast ! rtph264pay pt=96 name=pay0"

The profile here is set to baseline and level_id is set to 3.2

level.png
what profile & level_id are supported by vpuenc_h264 and how to change the level_id to 5

Regards

santhosh

0 Kudos
2 Replies

1,112 Views
santhosh2
Contributor IV

Need immediate help

For vpuenc_h264 the Level is fixed for all the bitrate = 10000 to bitrate = 250000,

Our LED display monitor decoder is looking for level parameter but since the level fixed to 3.2 and profile  fixed to baseline our LED display decoder is unable to process the stream. Need immediate help to configure vpuenc_h264 profile and level.

Note: In our application we are unable to use x264enc we see the fps drop for 30 fps only 20% fps is available, so we need to use vpuenc_h264 since our camera resolution is 1080p60fps.

Did some experiments and observations are below

 when i tried with x264enc, the profile and level changes for bitrate = 10000 to bitrate = 250000

Command used:gst-variable-rtsp-server -p 554 -m /video_1 -u "v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! videocrop left=320 top=140 bottom=140 right=320 ! videoconvert ! x264enc gop-size=1 key-int-max=1 bitrate=40000 ! video/x-h264, profile=baseline ! rtph264pay pt=96 name=pay0" 

by default anything bitrate < 40000 the level is 3.2, The above command is used only bitrate is changed

level32.png

bitrate=40000 level changes to 4.1

level45.png

bitrate=60000 level changes to 5.0

level1.png

bitrate=140000 level changes to 5.1

level51.png

bitrate=250000 level changes to 6.1

level61.png

0 Kudos

1,064 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to the Reference Manual, the VPU H1 can support bitrate from 10k to 40 Mbps at 1080p 60 fps, how about use vpu unit test under /unit_test/VPU/hantro to test the vpu?

 

0 Kudos