Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Problem with Qt Multimedia
What GStreamer package did you install ?
KhoaTran Programmer last edited by
Your log is not detail enough. You should enable Gstreamer debug, your current is just Qt.
But I guest that, your current Gstreamer plugin is not enough to playback.
One question, what kind of movie content you want to playback?(Mp4, WMV, H264, H265, MP3, ...)
@SGaist I didn't install GStreamer. How to install? Specific instructions please the official GStreamer site doesn't help much at all for Debian.
@KhoaTran-Programmer Firstly, the commands to check if GStreamer is installed doesn't work. How to install? Specifically. The official GStreamer site doesn't help at all for Debian. Also, I would want to play MP4, MP3, AVI, WMV, etc. All those common ones. Doesn't QMediaPlayer support most common ones?
Because it's not their role. Use your distribution tools to install GStreamer.
apt-cache searchto see what package are installed and
apt-get installto install what you want.
In your case,
libgstreamer1.0-devas well as all the 1.0 plugins packages.
@SGaist I did that and the same error happens.
Can you play that file with the gstreamer tools directly ?
@SGaist How would I do that?
@SGaist The command doesn't exist. Even though I installed
That's the development package to be able to use the library in your own projects. You need to install the GStreamer tools.
@SGaist What package do I need to install for the GStreamer tools?
Please learn to use the tools from your distribution
apt-cache search gstreamer | grep tools.
@SGaist I installed all the packages that came up with that command.
gst-play-1.0still doesn't work.
What doesn't work ?
You can't read the file using the command ?
@SGaist The command still doesn't exist according to the terminal even with
Seriously, did you even try to search where that file could be found ?
In this case it's the package
gstreamer1.0-plugins-base-appsand the tools package is a dependency of that one.
@SGaist I'm sorry. I may be at least an amateur programmer, but I'm definitely not a Linux expert, so I lack knowledge. I tried googling to get
gst-play-1.0to work but came up with nothing.
gstreamer1.0-plugins-base-appsallowed me to use the
gst-play-1.0command. But, when I try to play a video file (MP4) the same thing happens! I get logged out!
Then you have determined that it's not a Qt problem. There's something fishy going on with your machine.
@SGaist It works fine in Windows 10 though. What could possibly be wrong with Debian Linux?
You are comparing apple to oranges. Both are completely different OSs with completely different multimedia backends.
I don't know what is going on with your Debian but you sure have something either misconfigured or buggy. However, it's not something Qt related. You should check with the Debian folks.
@6EQUJ5 I would guess bad graphics driver.
You could check the output of dmesg command. In general you should ask this question in a Debian forum or mailing list and attach information about your system (especially graphics hardware).
@SGaist I will do that.
Also, I will ask for help on Debian mailing list/forum with the output.
Compare it with the output of dmesg after you got kicked of your session.
diff dmesgOutputBeforeLogout.txt dmesgOutputAfterLogout.txt: https://pastebin.com/5jGtEiUd (differences between two outputs)