I Google searched the FOURCC thing, couldn’t find an official statement besides a general disclaimer in docs of OpenCV 3.0 saying that “FourCC is a 4-byte code used to specify the video codec. The list of available codes can be found in fourcc.org. It is platform dependent.” OpenCV: Getting Started with Videos
FI also went to OURCC.org, it has a list of ton of codecs to choose, I tried “X264”, “H264”, “MP4V”, “mp4v” . . .none of those worked on TX2. Best Online Casinos - Four Countries Casinos
Some people hinted to give up on cv2.VideoWriter_fourcc(). Alternatively, plug in the ASCII number directly to cv2.VideoWriter(). So, here is what I tried:
This accepted “solution” is circular. You claim in comment #3 that that your write fails, with OpenCV telling you “OpenCV: FFMPEG: fallback to use tag 0x00000021/‘!???’”. Then in your comment #4 you simply hard coded in the tag 0x00000021/‘!???’ (which is what OpenCV was doing for you prior) and you claim the solution now works.
@GWAVE, I plugged in the code “0x00000021” directly to my Python code (instead of generating the fourcc using cv2.VideoWriter_fourcc function, see the code in comment #4). It seems working. I haven’t experimented it on the latest version of Jetson.