Ffmpeg through https fails

If I pass url using http , for example:

 ffmpeg -i http://vjs.zencdn.net/v/oceans.mp4 videojs.mp4 

It works great. However, when I write url using https , for example:

 ffmpeg -i https://s3-us-west-2.amazonaws.com/bucket/check.mp4 video.mp4 

This gives me an error:

Https protocol not found, recompile FFmpeg using openssl, gnutls or securetransport enabled. https://s3-us-west-2.amazonaws.com/bucket/check.mp4 : Protocol not found

What to do to enable https?

+5
source share
3 answers

The answer can be found in the error message.

Recompile FFmpeg with openssl, ...

So recompile ffmpeg with the necessary dependencies. You can read more about the process here , but in the ./configure step just add --with-openssl .

Make sure you have these packages installed: build-essential , openssl , libssl-dev

In the comments, you said you were using Ubuntu, so you can easily install these packages with apt-get install .

After installation, you can run ffmpeg -protocols to make sure there is https .

By the way, your video (on AWS ) can be obtained via the http protocol.

+6
source

The correct answer to this question is as of September ./configure --enable-openssl , and if you have ubuntu make sure you sudo apt-get install libssl-dev .

+10
source

Add --enable-openssl to the ./configure line .

--with-openssl does not work.

This is my whole line:

 $ ./configure --prefix="$HOME/scr1/ffmpeg_build" --extra-cflags="- I$HOME/scr1/ffmpeg_build/include" --extra-ldflags="- L$HOME/scr1/ffmpeg_build/lib" --bindir="$HOME/scr1/bin" --pkg-config- flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac -- enable-libfreetype --enable-libmp3lame --enable-libopus --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl 
+5
source

All Articles