I have already implemented a live streaming and transcoding platform using nginx-rtmp. I want to collect some metrics during the transcoding process, such as video quality, bitrate, start time, and duration of the live stream.
I have written these functionalities in a Python file and I want nginx-rtmp to execute this code when specific events(exec_publish and so on...) are triggered. How can I achieve this?