Accessing the hardware decoder and encoder on AI-64

I am trying to use hardware decoder and encoder via V4L2 with ffmpeg but it seems there are some issues. Example command:
ffmpeg -c:v h264_v4l2m2m -i test.mp4 -c:v h264_v4l2m2m out.h264
When I try to access HW decoder there is crash in kernel. With accessing only encoder it seems that it works partially because there is not possible to set some parameters on encoder:

[h264_v4l2m2m @ 0xaaaaf2be35f0] Failed to set timeperframeFailed to set bit rate: Invalid argument
[h264_v4l2m2m @ 0xaaaaf2be35f0] Failed to set gop size: Invalid argument

Does anyone tried to use the TI examples ?