comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How 2 show animations.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How 2 show animations. [message #79473 is a reply to message #79467] Fri, 02 March 2012 12:41 Go to previous messageGo to previous message
Brian Wolven is currently offline  Brian Wolven
Messages: 94
Registered: May 2011
Member
I use the approach described in the link below, combined with a shell script to manipulate the desired set of files.

How to make scientific movies with ffmpeg - http://web.mit.edu/robyn/www/ffmpeghowto.html

Script (bash):

#!/bin/bash

root=~/your/path/goes/here/
mission=$1
year=$2

# Set working directory to the specified root [data] directory.
cd $root
# Remove any existing temporary image symbolic links.
# Generate temporary image symbolic links to requested static image files,
# then generate animation from the sequentially numbered temporary images.

rm /tmp/img???.png

x=1; for i in ./$mission/$year/???/${mission}_data_${year}*.png; do counter=$(printf %03d $x); ln "$i" /tmp/img"$counter".png; x=$(($x+1)); done

ffmpeg -f image2 -r 6 -i /tmp/img%03d.png -b 3200k -y ./${mission}_${year}_data.mp4

# Set working directory back to original location.
cd -
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Getting Help in On-Line Communities
Next Topic: saving a RAW data

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:19:22 PDT 2025

Total time taken to generate the page: 1.03862 seconds