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