ffmpeg is executed as subprocess: https://github.com/KCL-BMEIS/pynaneye/blob/ff31f020f2d3772c59a4247c10ab38f43b6b6e08/file_processing/reconstruction_utils.py#L35 and might benefit being executed through the Python wrapper.