Dear all,
I want to dump movie with liggghts in my fedora system. How to change the makefile and make it with ffmpeg support? I've added "-DLAMMPS_FFMPEG" but it failed.
Thanks a lot!
Jian
A project by DCS Computing and CFDEMresearch
This website uses cookies to ensure you get the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies. This website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. More info
MiRa | Wed, 08/24/2016 - 09:34
How to build liggghts with ffmpeg support?
Hi Jian,
I don't know if this is still required, but here is how I managed to get liggghts to write out a movie in .mpeg format.
1. Make sure the makefile you use has the correct options set. If you are using "make fedora" to build liggghts then you will have to open the file liggghts/src/MAKE/Makefile.fedora
2. In Makefile.fedora, go the the line where it says
LMP_INC = -DLAMMPS_GZIP
and change this to
LMP_INC = -DLAMMPS_GZIP -DLAMMPS_JPEG - DLAMMPS_FFMPEG
Furthermore, change the line
JPG_LIB =
to
JPG_LIB = -ljpeg
This will make sure there is support for jpeg images and movie file creation by means of ffmpeg. For -ljpeg, you have to have a certain jpeg library installed [1], it seems like this library was already installed on my Ubuntu 14.04 LTS.
3. Install ffmpeg; you can find installation instructions on the internet. If you want to check if ffmpeg is installed, type "ffmpeg" in a terminal and see what happens.
4. Build liggghts, using
make clean-all
make fedora
5. Run a liggghts script with a "dump movie" command.
- The most basic command to get a movie would be "dump movie1 all movie 1000 movie.mpeg type type".
- It can take time for the movie to be created. So, be patient.
On behalf of myself:
I get an error message when I try to set further options, like "size" or the viewpoint. Has anyone had a similar problem?
Best regards,
MiRa
[1] cf. page 15 in: lammps.sandia.gov/tutorials/italy14/Compiling_LAMMPS.pdf