Rock5b HDMI capture / hardware accelerated video processing examples

  1. Set EDID

rk3588 HDMIin edid.zip (988 Bytes)
Usage:

 v4l2-ctl --set-edid pad=0,file=./edid_600_boost.bin,format=raw

edid_340: support many resolutions
edid_600: support 4k60 rgb888
edid_600_boost: change device name, unlock max fps

(Max input fps tested: 4k70fps, 1080p240fps)

  1. 4K HDMI in audio+video mp4 h265 recording with monitoring
gst-launch-1.0 -e v4l2src device=/dev/video0 ! 'video/x-raw,format=NV12,width=3840,height=2160' ! tee name=t t. ! mpph265enc bps=20000000 bps-max=40000000 rc-mode=vbr ! h265parse ! mp4mux name=mux ! filesink location=4k60hdmiin.mp4 alsasrc device=default ! opusenc ! mux. t. ! queue leaky=1 ! autovideosink sync=false
3 Likes

Thank you,

is it possible to capture 4096x2160 nv16 (4:2:2)? It does not work on edids you uploaded.

Whenever Iā€™m trying to capture this 4096x2160 v4l2-ctl -d /dev/video0 --all shows 1920x1080 on input and gst pipeline fails. 3840x2160 works fine.

1 Like