Hi,
I'm trying to use QMediaplayer, which is based on Qt 5.0.1, to program a simple video player. The source video file is a mp4 file, which is consist of MEPG-4 format video and AAC format audio.
The code is like this:
Qt Code:
player= new QMediaPlayer(this); videoWidget = new QVideoWidget(this); player->setVideoOutput(videoWidget); this->setCentralWidget(videoWidget); player->setVolume(100); player->play();To copy to clipboard, switch view to plain text mode
If I run this code, the video is running ok, but no sound. I think that it could be due to the AAC audio format.
How can I change the code in order to let QMediaPlayer play mp4 file with AAC audio format?
Thanks!
Added after 18 minutes:
This testvideo MP4 file plays without problems on my VLC player
Bookmarks