How to build lammps with ffmpeg support?

Dear all
I need to dump movie with Lammps. I saw Lammps should be built with ffmpeg flag. Besides the “LMP_INC = -DLAMMPS_GZIP -DLAMMPS_JPEG -DLAMMPS_PNG -DLAMMPS_FFMPEG”, is there anything else should be added with the Makefile?
Thanks a lot and best regards!

Jian