From f9352e0c155b3fafd79bf4729241bbb85c301a20 Mon Sep 17 00:00:00 2001 From: David <40766399+hamdav@users.noreply.github.com> Date: Wed, 31 Mar 2021 08:23:12 +0200 Subject: [PATCH] Add fourcc codec for writing to OS X Tested with Big Sur 11.2.3, only MJPG works with the Quicktime player --- .../py_tutorials/py_gui/py_video_display/py_video_display.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/py_tutorials/py_gui/py_video_display/py_video_display.rst b/source/py_tutorials/py_gui/py_video_display/py_video_display.rst index 8ef746f..d3a2144 100644 --- a/source/py_tutorials/py_gui/py_video_display/py_video_display.rst +++ b/source/py_tutorials/py_gui/py_video_display/py_video_display.rst @@ -89,7 +89,7 @@ This time we create a **VideoWriter** object. We should specify the output file * In Fedora: DIVX, XVID, MJPG, X264, WMV1, WMV2. (XVID is more preferable. MJPG results in high size video. X264 gives very small size video) * In Windows: DIVX (More to be tested and added) -* In OSX : *(I don't have access to OSX. Can some one fill this?)* +* In OSX : MJPG FourCC code is passed as ``cv2.VideoWriter_fourcc('M','J','P','G')`` or ``cv2.VideoWriter_fourcc(*'MJPG)`` for MJPG.