-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
60 lines (39 loc) · 1.9 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
README:
------
Dependences:
-----------
Ubuntu:
apt-get install automake libreadline5-dev libstdc++6-dev libgsl0-dev libgl1-mesa-dev libglu1-mesa-dev libode-dev make g++
Debian:
apt-get install automake libreadline5-dev libstdc++6-4.4.-dev libgsl0-dev libgl1-mesa-dev libglu1-mesa-dev libode-dev make g++
Installation:
------------
./bootstrap.sh
./configure
make
Run Experiments:
----------------
./irsim -E
gives the list of experiments available
./irsim -E <number>,
where number belongs to the interval shown in the previous command
How to make movies:
------------------
1) You need to create .ppm files (Ctrl+W when the simulator is running)
2) Once the simulator has stopped, you need to convert the .ppm to .png
Here I include the commands:
a) If you want the .png files in the same dir as the .ppm files:
for f in *.ppm; do f2=`basename "$f" ppm`png; echo "$f -> $f2"; convert "$f" "$f2"; done
b) If you want the .png files in another directoy:
(tape command on origin where the ppm's are)
for f in *.ppm; do f2=`basename "$f" ppm`png; echo "$f -> $f2"; convert "$f" <ending_directory>/"$f2";done
3) Once we have the .pngfiles we need to create the movie.
There are different configurations depending on the movie we want to create, here I include some of them.
a) If you want the movie in the same directory as the .png files:
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
b) If you want the movie in another directory:
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <ending-directory>/output.avi
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o output.avi
4) More information can be found in:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html
http://www.tevs.eu/blog_8.html