dump movie command

For a while I have been writing out several dump image commands and then compiling into a movie using a compiler such as mencoder. Recently, I noticed a patch file that was added that allowed for a dump movie command to bypass this step.

I applied the patch file and can see the dump_movie.h and dump_movie.cpp in my src directory. I have ffmpeg installed on my computer and have compiled lammps with the ffmpeg flag.

When I try to use this command, I get this error:

Invalid attribute in dump custom command

I noticed that the patch file said this would work on many machines. Are there certain machines it is not known to work on?

Jackson

well, what’s the dump movie command you are using?

without seeing it, no one can diagnose the error.

Steve

I was using:

dump m0 all movie 1000 movie.mpg type type size 640 480

After I removed the attribute - size 640 480, it reads:

"Failed to set value 'ppm' for option 'c:v' 

I think this is more of a ffmpeg problem than a LAMMPS problem but if someone here has seen this problem, I would appreciate any advice that is offered.  I tried re-downloading ffmpeg and setting it up properly but thus far, I come across the same error.

Jackson

I was using:

dump m0 all movie 1000 movie.mpg type type size 640 480

After I removed the attribute - size 640 480, it reads:

"Failed to set value 'ppm' for option 'c:v'

I think this is more of a ffmpeg problem than a LAMMPS problem but if
someone here has seen this problem, I would appreciate any advice that is
offered. I tried re-downloading ffmpeg and setting it up properly but thus
far, I come across the same error.

yup. i have it working on CentOS 6.x and Fedora 19 using the RPMs from
rpmfusion.org
same on windows with static binaries from ffmpeg.zeranoe.com

you need the PPM codec to be present.

[[email protected] src] ffmpeg \-codecs 2>&1 | grep PPM DEV D ppm PPM \(Portable PixelMap\) image \[[email protected]\.\.\.4263\.\.\. src\] rpm -qi ffmpeg
Name : ffmpeg Relocations: (not relocatable)
Version : 0.10.7 Vendor: RPM Fusion
Release : 1.el6 Build Date: Sun 19 May
2013 06:51:29 PM CEST
Install Date: Fri 14 Jun 2013 03:41:27 PM CEST Build Host:
builder1.ovh.rpmfusion.lan
Group : Applications/Multimedia Source RPM:
ffmpeg-0.10.7-1.el6.src.rpm
Size : 652534 License: GPLv2+
Signature : RSA/8, Thu 30 May 2013 06:53:18 PM CEST, Key ID 563609df849c449f
Packager : <http://nonfree.rpmfusion.org/>
URL : http://ffmpeg.org/

i've been waiting for people running into problems like this in order
to figure out which additional tweaks to dump_movie need to be
implemented via dump_modify options. it would be quite easily possible
to modify the settings to support jpeg and png format image creation
and stream them to FFmpeg. the default setting was chosen to be PPM,
since this is the only image format that is always available. the
others require additional libraries.

axel.