Código simples para obter os metadados: qualidade e duração de um arquivo .mp4 usando a biblioteca opencv-python (cv2) em python3. É possivel obter outros metadados usando esta biblioteca em python, confira o link para mais detalhes.
Simple code for get the metadata: quality and duration of an .mp4 file using lib opencv-python (cv2) in python3. You can get other metadata using this library in python, check the link for more details.
https://docs.opencv.org/3.3.1/d4/d15/group__videoio__flags__base.html
intall lib: pip intall opencv-python