libv4l2: error attempting to open more then 16 video devices

Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error attempting to open more then 16 video devices
[LOG_LEVEL_ERROR] (NvV4l2Element.cpp:58) Could not open device ‘/dev/nvhost-msenc’: Device or resource busy
[LOG_LEVEL_ERROR] (NvV4l2ElementPlane.cpp:412) Output Plane:Error in VIDIOC_REQBUFS at output plane: Bad file descriptor
[LOG_LEVEL_ERROR] (NvV4l2ElementPlane.cpp:412) Capture Plane:Error in VIDIOC_REQBUFS at output plane: Bad file descriptor

It is explained in the post
https://devtalk.nvidia.com/default/topic/1020755/jetson-tx1/mmapi-can-t-decode-more-than-8-video-streams-at-the-same-time/post/5196704/#5196704

And you have a post https://devtalk.nvidia.com/default/topic/1020172/

Please not make duplicate posts.