Save in Quicktime-compatible format (not H264 - MPEG-4 AVC (part 10) )

georgematheos
Thu, 03 Feb 2022 06:00:39 +0000
General Usage

When I run

VideoIO.save(
    "video.mp4", images, framerate=5;
    encoder_options=(crf=23, preset="medium")
)

it successfully saves an mp4 video, but it saves it with a codec that Quicktime player is unable to open on my Mac. (Quicktime gives the error “The file isn’t compatible with QuickTime Player.”)

Based on this webpage, and inspecting the codec of the video using the VLC media player, it looks like the issue is that Quicktime does not support the the H264 - MPEG-4 AVC (part 10) format that the video is saved in.

Does anyone know how to tell VideoIO to save a video in a more standard codec? (I am not familiar with codecs, but if I’m understanding, the issue is the “AVC” part.)
In case it helps, I think that this page may explain how to use FFMPEG to save a video in a suitable format.

5 posts - 3 participants