Hello. I need to get a video stream from hdmi, for this I use a hardware decoder. However, I get a video stream with a small frame rate ~ 10 fps. I know that you can get more fps with the mjpeg codec, but I don’t know how to set it on this board. Could you please help and tell me, how can I get a stream with a large frame rate?
Can't get a MJPEG from HDMI
It depends on your input format.
If input format is supported by MPP (standard library that allows using of hardware encoders on Rockchip SoCs), then you could try something like this:
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 num-buffers=1000 ! video/x-raw,width=1920,height=1080,format=NV12,framerate=30/1 ! mppjpegenc bps=0 ! queue ! avimux ! filesink location=test.avi
Here input format is NV12.
But if input format, for example, NV24, then it is not supported by MPP (at least in gstreamer plugins).
You can check your input format with command:
v4l2-ctl --get-fmt-video -d /dev/video0
(look at “Pixel Format” line).