stop recording for libav