user472155
user472155

Reputation:

ffmpeg (avcodeclib) & png support

I'm building ffmpeg libraries on Windows with a --enable-decoder=png switch. However, after successful build, there is no png support. Any ideas what went wrong?

Upvotes: 3

Views: 4639

Answers (2)

Zombo
Zombo

Reputation: 1

For me the issue was Zlib, FFmpeg will only include PNG support if Zlib is found

wget zlib.net/zlib-1.2.8.tar.xz
tar xf zlib-1.2.8.tar.xz
cd zlib-1.2.8
make -f win32/Makefile.gcc install \
  PREFIX=$HOST- \
  DESTDIR=$PREFIX \
  BINARY_PATH=/bin \
  INCLUDE_PATH=/include \
  LIBRARY_PATH=/lib

Example

Upvotes: 6

Ang Zhi Ping
Ang Zhi Ping

Reputation: 187

I am assuming you are using Cygwin. Most probably you do not have libpng installed in your Cygwin installation. To install, you need to launch the "setup.exe", which is what you have used to install your Cygwin environment, and find "png" under the installation package. Update and you are ready to use png with your ffmpeg program.

Upvotes: 0

Related Questions