Hi @Konrad_Danielewski . Sorry for the late reply.
I retrained the network using deeplabcut 188.8.131.52, which should have solved issue #982. However I get the same behaviour on hyffyuv (output of ffprobe → encoder: Lavf57.83.100, Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgr0, 362x352, 294098 kb/s, 299 fps, 299 tbr, 299 tbn, 299 tbc).
Instead, if I use mpeg4 (output ffprobe → encoder:Lavf57.83.100, Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 380x300 [SAR 1:1 DAR 19:15], 725 kb/s, 299 fps, 299 tbr, 299 tbn, 299 tbc) it works until the end of the videos I tested. So as you said there is something wrong with the video.
Do you have any recommendation about how to transcode the original (very big) .avi file? I’m using ffmpeg -i testvideo.avi -crf 0 -c:v huffyuv -c:a copy filter:v “crop=out_w:out_h:x:y” -r 299 testvideo_rc.avi. Maybe I’m doing something obviously wrong?