Mercurial > repos > public > sbplib
comparison +anim/make_movie.sh @ 95:480ef676742f
Added bash script for compiling movie. Fixed so fig_mov respects figure size.
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 02 Dec 2015 15:51:28 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 94:a38c243991d0 | 95:480ef676742f |
|---|---|
| 1 #!/bin/bash | |
| 2 | |
| 3 # $1 is the folder where the PNGS are found | |
| 4 | |
| 5 #ffmpeg -qp 0 -framerate 30 -i test%04d.png -c:v mpeg4 -r 30 $1_pos.mp4 | |
| 6 # ffmpeg -framerate 30 -i $1/test_pos1%04d.png -q:v 0 -c:v mpeg4 -r 30 $1_pos1.mp4 | |
| 7 # ffmpeg -framerate 30 -i $1/test_pos2%04d.png -q:v 0 -c:v mpeg4 -r 30 $1_pos2.mp4 | |
| 8 ffmpeg -framerate 30 -i $1/fig%04d.png -q:v 0 -c:v mpeg4 -r 30 $1.mp4 | |
| 9 # rm -f test*.png | |
| 10 | |
| 11 | |
| 12 | |
| 13 # -b 5000k to set bitrate of file. | |
| 14 # -q:v 0 to set quality? This is the shit!!! | |
| 15 # -crf set quality 23 is default 18 is almost lossless 51 is worst |
