ffmpeg over https fails

后端 未结 3 2039
眼角桃花
眼角桃花 2021-02-19 07:15

If I feed url with http, such as this:

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

It works perfectly. H

相关标签:
3条回答
  • 2021-02-19 07:58

    The answer can be found in the error message.

    Recompile FFmpeg with openssl, ...

    So, recompile ffmpeg with the required dependencies. You can read more about the process here, and during the ./configure step, just add --with-openssl (or --enable-openssl if you're using a newer version).

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

    In the comments, you said that you're using Ubuntu, so you can easily install these packages using apt-get install.

    After installation, you can execute ffmpeg -protocols to make sure that you have https listed there.

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

    0 讨论(0)
  • 2021-02-19 08:08

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

    The --with-openssl does not work presently.

    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
    
    0 讨论(0)
  • 2021-02-19 08:19

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

    0 讨论(0)
提交回复
热议问题