flutterffmpegflutter-ffmpeg

can't convert online gif to mp4 video using ffmpeg


I am trying to turn this gif into mp4 video using ffmpeg but it is not working https://media.giphy.com/media/H7T8UdGOvOQiDf9QXj/giphy.gif

I tried this code

-i https://media.giphy.com/media/H7T8UdGOvOQiDf9QXj/giphy.gif output.mp4

also I tried this code

-f gif -i https://media.giphy.com/media/H7T8UdGOvOQiDf9QXj/giphy.gif output.mp4

in both cases it did not work.


Solution

  • ffmpeg provides a helpful error:

    https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.
    

    Solution is to enable gnutls support in ffmpeg (--enable-gnutls). Read about potential problem regarding openssl: How to enable ffmpeg openssl in Flutter.

    Alternative solution is to download the GIF separately, then run ffmpeg on the local copy.