Let's say there are some mov files. I want to know what codec each mov is using. Can anyone help me? I need to get "h264" as in the image, not Input(AVC1).
import cv2
import glob
mov_files = glob.glob('*.mp4')
for eachFile in mov_files:
cap = cv2.VideoCapture(eachFile)
file_length = cap.get(cv2.CAP_PROP_FRAME_COUNT)
print(file_length)
codec ??
print(codec)