Showing a mp4 in my app
-
@MichRX7 said in Showing a mp4 in my app:
Go figure, if I take the MOV that won't play into my video editor and export it as a WMV it plays.
Same goes with the MP4, convert it to WMV and it plays.Maybe there is an issue with my video software and MP4/MOV? Just odd that I can play them from the command line, but not from within my QT app.
Sounds like the video codecs aren't being loaded/used correctly in your Qt app.
What version of Qt are you using? What version of OS?
qt5ct: using qt5ct plugin
How did you install Qt?
mediaStatus: QMediaPlayer::LoadingMedia error: QMediaPlayer::NoError
Hmm... nothing in the log jumps out to me, unfortunately.
QWidget::paintEngine: Should no longer be called
This looks somewhat ominous; I'm not sure if this is a clue or not. https://stackoverflow.com/questions/45537627/qwidgetpaintengine-should-no-longer-be-called-appears-when-using-qmediaplay
I am on a Rpi4 running Raspbian GNU/Linux 10 (buster).
I am running Qt Creator 4.8.2 Based on Qt 5.11.3 (GCC 8.3.0, 32 bit)I tried to install 5.14.1, but failed gloriously (lol). I will give it a try again some day, but wanted to try writing actual code. I believe the 5.11.3 came with Raspbian buster.
-
I am on a Rpi4 running Raspbian GNU/Linux 10 (buster).
I am running Qt Creator 4.8.2 Based on Qt 5.11.3 (GCC 8.3.0, 32 bit)I tried to install 5.14.1, but failed gloriously (lol). I will give it a try again some day, but wanted to try writing actual code. I believe the 5.11.3 came with Raspbian buster.
@MichRX7 said in Showing a mp4 in my app:
I tried to install 5.14.1, but failed gloriously (lol). I will give it a try again some day, but wanted to try writing actual code. I believe the 5.11.3 came with Raspbian buster.
When you're ready to try again, see https://www.tal.org/tutorials/building-qt-512-raspberry-pi as a good place to start.
For now, have a look at the list of multimedia dependencies in the link above. I wonder if the Raspbian's copy of the Qt5Multimedia library was built with all of those in place?
-
@MichRX7 said in Showing a mp4 in my app:
I tried to install 5.14.1, but failed gloriously (lol). I will give it a try again some day, but wanted to try writing actual code. I believe the 5.11.3 came with Raspbian buster.
When you're ready to try again, see https://www.tal.org/tutorials/building-qt-512-raspberry-pi as a good place to start.
For now, have a look at the list of multimedia dependencies in the link above. I wonder if the Raspbian's copy of the Qt5Multimedia library was built with all of those in place?
Yes, thank you for all your help and thank you for the insight from everyone on this thread. Right now just trying to do a proof of concept to show some people, and if I can get it to reliably show the wmv files that'll be fine for now.
I actually did try that page, and replaced 5.12.7 with 5.14.1. And it was my plan to try and figure out (using that page) what I did wrong when I'm ready to try again.
-
Yes, thank you for all your help and thank you for the insight from everyone on this thread. Right now just trying to do a proof of concept to show some people, and if I can get it to reliably show the wmv files that'll be fine for now.
I actually did try that page, and replaced 5.12.7 with 5.14.1. And it was my plan to try and figure out (using that page) what I did wrong when I'm ready to try again.
@MichRX7 said in Showing a mp4 in my app:
I actually did try that page, and replaced 5.12.7 with 5.14.1. And it was my plan to try and figure out (using that page) what I did wrong when I'm ready to try again.
I haven't developed for Raspbian before, but there a chance that the instructions for Qt 5.12.7 might not work with Qt 5.14.1 unmodified -- Some dependency might have changed between versions.
The instructions have been reported to work with Qt 5.12.7 on Raspbian Buster, so that combo will give you the best chance for success.
After you get it working with Qt 5.12.7, then try Qt 5.14.x (or even Qt 5.15: https://www.qt.io/blog/qt-5.15-alpha-released )
Yes, thank you for all your help and thank you for the insight from everyone on this thread. Right now just trying to do a proof of concept to show some people, and if I can get it to reliably show the wmv files that'll be fine for now.
You're welcome. All the best with your project!