I'm using RPi4 board with Raspbian on top of it
I wonder if there is a way to tell if any process currently using hardware accelerated video playback?
Ideally it would be nice to be able to say which process exactly is using it, but it's not critical.
I know there could be various interfaces and probably it's possible to detect V4L2 M2M usage with /dev/video10 device opened. But what's about MMAL interface? If it makes difference I'm interested in playback of H.264 videos.
I've considered following approaches but haven't found any traces:
- Using
lsofto track specific dev-files - Checking state of kernel using sys-files
- Using
vcdbgorvcgencmdto get stats