<div dir="ltr">Hi.<div><br></div><div>Some time ago I've put ffmpeg inside erlang and made transcoding inside erlang.</div><div><br></div><div>To make it working I had to start thread per each instance of encoder/decoder and make my own thread pool, because R17 could get locked after some time.</div><div><br></div><div>Now I want to update to R17.4 and use nif flags:</div><div><br></div><div><div>  {"decode0_nif", 4, avcodec_async_decode, ERL_NIF_DIRTY_JOB_CPU_BOUND},</div></div><div><br></div><div><br></div><div>what is the proper way to understand that erlang got stuck due to bad calculation of nif timing?</div><div>Maybe I should write to logs some metric periodically?</div><div><br></div></div>