QMediaPlayer does not play many formats
-
wrote on 13 Sept 2019, 14:23 last edited by
right, and i think that's a problem. it should work out of the box. you can get it to work by manually installing the k-lite codec pack but the end user shouldn't HAVE to do that just to play an mp4
-
wrote on 13 Sept 2019, 15:14 last edited by
Codec packs are notorious for having malware/viruses in them.
Isn't MP4 a container? It can have different codecs for video and audio in them if I remember right. Or am I thinking of a different format?
-
wrote on 13 Sept 2019, 15:17 last edited by
Also, you might consider embedding vlc in your Qt project.
https://wiki.videolan.org/LibVLC_SampleCode_Qt
Not sure if the license is compatible with what your doing though.I have embedded it in a Python app before and it supports a ton of formats.
-
wrote on 13 Sept 2019, 15:19 last edited by
yes viruses exist, but that's not the point of this post. (off topic: k-lite is legit)
yes mp4 is a container but the important one is h.264
-
Also, you might consider embedding vlc in your Qt project.
https://wiki.videolan.org/LibVLC_SampleCode_Qt
Not sure if the license is compatible with what your doing though.I have embedded it in a Python app before and it supports a ton of formats.
wrote on 13 Sept 2019, 15:21 last edited by@fcarney i see nothing about licensing for libvlc, is it LGPL?
-
wrote on 13 Sept 2019, 16:05 last edited by
@davecotter
I just cringe when hear about downloading codecs. I am really biased against them. Thanks for a link to a legit one. Those are hard to find.https://wiki.videolan.org/Frequently_Asked_Questions/
Looks like LibVLC is LGPL. So it should be compatible for most Qt projects. -
@davecotter
I just cringe when hear about downloading codecs. I am really biased against them. Thanks for a link to a legit one. Those are hard to find.https://wiki.videolan.org/Frequently_Asked_Questions/
Looks like LibVLC is LGPL. So it should be compatible for most Qt projects.wrote on 13 Sept 2019, 16:08 last edited by@fcarney i hope what you mean is "i'm biased against things that are viruses, disguised as useful utilities" or "i'm biased against forcing the end user to download and install an app dependency", not that you're generally against extending the functionality of a media player
yeah i have LibVLC on my radar, as well as ffmpeg (which i think VLC depends on anyway?), haven't made a decision yet
-
wrote on 13 Sept 2019, 16:19 last edited by
@davecotter said in QMediaPlayer does not play many formats:
i'm biased against forcing the end user to download and install an app dependency
...which has a high likelyhood of giving the end user a virus because they downloaded the wrong thing. That is where I am at.
-
wrote on 14 Sept 2019, 07:20 last edited by
What should I do with VLC media player? How to embed in the project and how to use?
-
wrote on 16 Sept 2019, 02:50 last edited by
see the link above about LibVLC
-
@fcarney i hope what you mean is "i'm biased against things that are viruses, disguised as useful utilities" or "i'm biased against forcing the end user to download and install an app dependency", not that you're generally against extending the functionality of a media player
yeah i have LibVLC on my radar, as well as ffmpeg (which i think VLC depends on anyway?), haven't made a decision yet
@davecotter said in QMediaPlayer does not play many formats:
i'm biased against forcing the end user to download and install an app dependency
Then provide them with your app.
The problems with codecs are: licenses.
That's why Linux distributions often do not provide all available codecs by default and the user of the distribution has to install them explecetly (like on Ubuntu with bad/ugly versions of GStreamer plug-ins from universe repository). Same for Qt I guess: Qt projects does not want to get in troubles because of providing codecs for not really free media formats (not free, full of patents, ...).
16/17