Unsolved How to play h.264 video in Qt
-
Ya but it has licencing issues i dont want to do that
-
So you want to play h.264 files but don't want to install any codecs for that ?
-
Means is there any other option like i can use vlc-qt lib but i dont know how to link vlc-qt lib with qt. If you know it please help me in that
-
The VLC-Qt website provides the documentation for that.
Note that VLC-Qt depends on libVLC which itself depends on x264 for h264 handling. x264 is free to use under the GPL license. If you want to create a closed source commercial product you can buy a license.
-
Where I can download and how I can x264 codec. I am new to videos and codec please help.
Thanks -
One more question I thought after reading about x264. It is used for encoding to h.264 and I am making a video player which displays h.264 video and therfore I need a decoder to decode the h.264 not encode. Correct me if I am wrong.
Thanks -
Hi,
Yes, you need a h.264 decoder. x264 does both encode and decode.As you are apparently working on a closed source project, you need to get a commercially licensed h.264 decoder. x264 is also available under a commercial license, see here https://licensing.x264.org/en/
Free decoders are generally under the GPL license, which will not work for your closed source program, as the licenses are incompatible.
-
An alternative would be to use a free format like
webm
. -
Thank you for the information.
I have one more question I have downloaded the x264 codec from the website below. Could you help me in installing or building it in my desktop so that i can use it for Qt application
http://www.videolan.org/developers/x264.html -
Do you mean using it through the VLC Qt project ?
-
No not using VLC Qt project but directly how to install it in windows 10
-
You can either build it from sources or download the pre-built binary. It's all on the project's web page.