MP4
An MP4 video encoded with H.264. macOS encodes with VideoToolbox. Linux encodes with the OpenH264 Video Codec provided by Cisco Systems, Inc., which the first MP4 request downloads and caches; --openh264-download-url sets where it comes from or turns it off.
Example
zshot -f clip.mp4 \
--video-duration 5 \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "mp4",
"video_duration": 5
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/hello_zshot/","output_type":"mp4","video_duration":5}' \
-o clip.mp4