https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.
-
I am trying to run below code but getting error.
error = > "https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled."it works fine with http sites.
#include <QCoreApplication>
#include<QMediaPlayer>
#include<QUrl>int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QMediaPlayer *player = new QMediaPlayer();
player->setSource(QUrl("https://aveclagare.org/mp3/One Shot Lili - Master Half Wizard.mp3"));
player->play();
return a.exec();
}my system :-
$ ffmpeg -protocols
ffmpeg version N-111376-g13ef5025e3 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13.1.1 (GCC) 20230429
configuration: --enable-gnutls
libavutil 58. 14.100 / 58. 14.100
libavcodec 60. 22.100 / 60. 22.100
libavformat 60. 10.100 / 60. 10.100
libavdevice 60. 2.101 / 60. 2.101
libavfilter 9. 8.102 / 9. 8.102
libswscale 7. 3.100 / 7. 3.100
libswresample 4. 11.100 / 4. 11.100
Supported file protocols:
Input:
async
cache
concat
concatf
crypto
data
fd
ffrtmphttp
file
ftp
gopher
gophers
hls
http
httpproxy
https
mmsh
mmst
pipe
rtmp
rtmps
rtmpt
rtmpts
rtp
srtp
subfile
tcp
tls
udp
udplite
unix
ipfs
ipns
Output:
crypto
fd
ffrtmphttp
file
ftp
gopher
gophers
http
httpproxy
https
icecast
md5
pipe
prompeg
rtmp
rtmps
rtmpt
rtmpts
rtp
srtp
tee
tcp
tls
udp
udplite
unixPlease help and Thanks in advance.
-
Hi,
Which version of Qt are you using ?
How did you install it ?
I suspect you are using one from the online installer and depending on that, there was an issue with the ffmpeg backend that was built without the network protocols. -
This the Qt Creator properties, it has nothing to do with the version of Qt you are using to build your application.
The best solution is to ensure that you are using the latest version of Qt where it should be fixed.
-
Strange as it should have been fixed for 6.5.1.
Can you test with the 6.6 beta ?
-
This post is deleted!
-
Unless you have a commercial license, the offline installer won't be available for recent versions of Qt.