i.MX 8MPlus: Use v4l2h264enc, how to set encoding high profile for H.264

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

i.MX 8MPlus: Use v4l2h264enc, how to set encoding high profile for H.264

929 Views
jerryc
Contributor I

Use v4l2h264enc, I try encode  high profile for H.264

do gstream command:gst-launch-1.0 videotestsrc do-timestamp=true is-live=true num-buffers=200 ! 
video/x-raw, format=YUY2, width=1920, height=1080,framerate=30/1 ! v4l2h264enc extra-controls="encode,frame_level_rate_control_enable=1,h264_mb_level_rate_control=1,video_gop_size=30,video_bitrate=2048000,video_bitrate_mode=1,h264_level=11,h264_profile=4;" ! 
h264parse ! mp4mux ! filesink location=/mnt/nfs/NX/media//test.mp4

But test.mp4 show profile is "Constrained Baseline"

jerryc_0-1690447266481.png

Run "v4l2-ctl /dev/video0 -L"

jerryc_1-1690447542698.png

 

 

 

 

0 Kudos
2 Replies

902 Views
jerryc
Contributor I

jerryc_0-1690854932826.png

iMX 8MPlus encode H264 support HP/MP/BP, If I need to encode HP H264, How to use gstreamer set "v4l2h264enc extra-controls"  

0 Kudos

883 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos