File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
import cv2
2
2
3
3
codecs = ( # MP4, AVI,
4
- 'I420' , # - , + ,
4
+ # 'I420', # - , + ,
5
5
'MP4V' , # - , - ,
6
6
'mp4v' , # + , - ,
7
7
'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', # - , ? ,
16
16
# 0x7634706d, # https://stackoverflow.com/a/52839553/1832058
17
17
)
18
18
19
19
extensions = [ # container
20
- 'mkv' ,
21
- 'mpeg' ,
20
+ # 'mkv',
21
+ # 'mpeg',
22
22
'mp4' ,
23
- 'avi' ,
23
+ # 'avi',
24
24
'mp4v' ,
25
25
]
26
26
27
-
28
27
# http://www.fourcc.org/codecs.php
29
28
cam = cv2 .VideoCapture (0 )
30
29
You can’t perform that action at this time.
0 commit comments