From 0cb9d1e877cb941281f9ab5214fed1a4430fa2b7 Mon Sep 17 00:00:00 2001 From: Lucas MATHIEU Date: Wed, 3 Jul 2024 01:53:02 +0200 Subject: [PATCH] [v2.0-alpha11] Change JPEG sampling factor from 4:4:4 to 4:2:0 (common sub-sampling in MP4) --- video2geoframes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video2geoframes.py b/video2geoframes.py index 4e10aed..965eb20 100644 --- a/video2geoframes.py +++ b/video2geoframes.py @@ -513,7 +513,7 @@ try: image_name = "{}_f{}.jpg".format(video_file_name.split('.')[0], frame_name) image_path = "{}/{}".format(output_folder, image_name) - cv2.imwrite(image_path, frame, [cv2.IMWRITE_JPEG_QUALITY, 88, cv2.IMWRITE_JPEG_PROGRESSIVE, 1, cv2.IMWRITE_JPEG_SAMPLING_FACTOR, 0x111111]) + cv2.imwrite(image_path, frame, [cv2.IMWRITE_JPEG_QUALITY, 88, cv2.IMWRITE_JPEG_PROGRESSIVE, 1, cv2.IMWRITE_JPEG_SAMPLING_FACTOR, 0x221111]) # Time tags formatting time_shift = i * frame_sampling