has_video()¶
- audiofile.has_video(file)[source]¶
If file contains video.
For WAV, FLAC, MP3, or OGG files
Falseis returned. All other files are probed by mediainfo.- Parameters:
file (
str) – file name of input file- Return type:
- Returns:
Trueif file contains video data- Raises:
FileNotFoundError – if mediainfo binary is needed, but cannot be found
RuntimeError – if
fileis missing and does not end with"wav","flac","mp3","ogg"
Examples
>>> audiofile.has_video("stereo.wav") False