Skip to content

Commit 058b745

Browse files
committed
test codecs
1 parent 2d49b46 commit 058b745

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

cv2/save-file/main-test-extensions.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
import cv2
22

33
codecs = ( # MP4, AVI,
4-
'I420', # - , + ,
4+
# 'I420', # - , + ,
55
'MP4V', # - , - ,
66
'mp4v', # + , - ,
77
'MP42', # - , + ,
8-
'AVC1', # - , - ,
9-
'H264', # - , ? ,
10-
'WRAW', # - , - ,
11-
'MPEG', # - , + ,
12-
'MJPG', # - , + ,
13-
'XVID', # - , + ,
14-
'H265', # ? , ? ,
15-
'X264', # - , ? ,
8+
# 'AVC1', # - , - ,
9+
# 'H264', # - , ? ,
10+
# 'WRAW', # - , - ,
11+
# 'MPEG', # - , + ,
12+
# 'MJPG', # - , + ,
13+
# 'XVID', # - , + ,
14+
# 'H265', # ? , ? ,
15+
# 'X264', # - , ? ,
1616
# 0x7634706d, # https://stackoverflow.com/a/52839553/1832058
1717
)
1818

1919
extensions = [ # container
20-
'mkv',
21-
'mpeg',
20+
# 'mkv',
21+
# 'mpeg',
2222
'mp4',
23-
'avi',
23+
# 'avi',
2424
'mp4v',
2525
]
2626

27-
2827
# http://www.fourcc.org/codecs.php
2928
cam = cv2.VideoCapture(0)
3029

cv2/save-file/output-MP4V.mp4

24.6 KB
Binary file not shown.

cv2/save-file/output-mp4v.mp4

25.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)