Detect if video has no sound in C ++, it is preferable to use Qt Phonon

I am creating a video player if Phonon and Qt. everything works fine, but when I have a video in my playlist that has no sound, I want to play another sound. How should I do it? I mean, how can I detect that the video has no sound?

EDIT: Without sound, I meant "no audio channel"

+3
source share
1 answer

Qt 5 can help you. Check out Phonon :: Gstreamer :: MediaObject . The API is similar to a regular MediaObject, but with some additional features. You want to audioAvailable().

+2
source

All Articles