Changing codec in create_labeled_video

when I run deeplabcut.create_labeled_video, it runs with the default codec, but I can’t actually watch that video without converting it first. i’ve tried to change the codec by setting ‘codec = ‘mp42’’ and ‘codec = ‘x264’’ (i want to be able to watch it on a mac), but for both i get error messages like this:

OpenCV: FFMPEG: tag 0x3234706d/‘mp42’ is not supported with codec id 15 and format ‘mp4 / MP4 (MPEG-4 Part 14)’
[mp4 @ 0x55fd9194efc0] Could not find tag for codec msmpeg4v2 in stream #0, codec not currently supported in container

i’m running this on a cluster (and then watching it on my personal computer). ffmpeg should be available.

The codec is passed to cv2.VideoWriter_fourcc; if you haven’t already, perhaps having a look around here may be useful. It is hard to troubleshoot OpenCV errors though, as codecs are platform-dependent.