GStreamer's v4l2h264enc has been updated to take the encode level from the caps rather than from extra-controls.The encoder validates the level against the resolution and framerate provided, and will refuse to start if it isn't sufficient. If you haven't specified it in the caps, GStreamer defaults to level 1 (128×96@30fps).
Code:
gst-launch-1.0 v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! v4l2h264enc extra-controls="controls,video_bitrate=256000;" ! 'video/x-h264,level=(string)4,profile=high' ! h264parse ! queue ! matroskamux ! filesink location=foo.mkv
Statistics: Posted by 6by9 — Tue Feb 20, 2024 11:51 am