Automatically record video when analysing bag file