Organometallic Odyssey
  • Home
  • Categories
  • Tags
  • Archives

Making Videos From Face Indexing Images

This is pretty straightforward. The .vzs file you capture when taking the video for face indexing is just a zipfile. So, rename the file, unzip it, and use ffmpeg/mencoder to make a video.

$ mkdir video ; cd video
$ unzip ../crystal.vzs
$ mencoder "mf://*.jpg" -mf fps=30 -o crystal.avi -ovc copy

This will open up fine in VLC, but if you need it to work in, say, MS Office, then you should use settings along these lines:

$ mencoder "mf://*.jpg" -mf fps=30 -o crystal.avi \
  -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=8192

ffmpeg is also a good option, but MS Office doesn't support the output.

$ ffmpeg -r 30 -b 8192k -i %03d.jpg crystal.avi

Also, the page linked above says you have to convert to JPEGs for mencoder. This is no longer true. Also, if you do need to do the conversion, the listed command is far more complex than it needs to be. Use this instead:

$ mogrify -format jpg *.png
Comments
comments powered by Disqus

Published

Mar 24, 2013

Category

crystallography

Tags

  • crystallography 4
  • video 1
  • Powered by Pelican. Theme: Elegant by Talha Mansoor