-2

is there a way to check if an instance of cv2.VideoCapture has sound

import cv2

cap = cv2.VideoCapture("example.mp4")

how would i check if cap has sound?

I am trying to get a boolean value which tells me wether the video-file has sound or not.

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
reyop
  • 1
  • wrong library. opencv is for computer vision, not for analyzing the metadata of media files. use ffmpeg/ffprobe itself. opencv uses a subset of ffmpeg. – Christoph Rackwitz Aug 12 '23 at 18:56

0 Answers0