| 1 | # Elastic Scale |
| 2 | |
| 3 | Elastic scale allows one to apply non linear scale to video footage. |
| 4 | |
| 5 | Written by Matthias Schnöll, Aug 2018 and released under GNU GPL |
| 6 | |
| 7 | |
| 8 | ## RELEASE NOTES |
| 9 | |
| 10 | ** Aug 2018 |
| 11 | initial release of plugin |
| 12 | |
| 13 | |
| 14 | |
| 15 | ## Description of the parameters: |
| 16 | |
| 17 | "Scale Center":<br/> |
| 18 | Sets the horizontal center where the scaling origins from. range: [0,1] |
| 19 | |
| 20 | |
| 21 | "Linear Scale Area":<br/> |
| 22 | Width of the section that should only be scaled linearly. range: [0,1] |
| 23 | |
| 24 | |
| 25 | "Linear Scale Factor":<br/> |
| 26 | Scale factor by how much the linear scale are is scaled. range: [0,1] |
| 27 | |
| 28 | |
| 29 | "Non Linear Scale Factor":<br/> |
| 30 | Amount how much the outer left and outer right area besides the linear scale area are scaled non linearly. range: [0,1] |
| 31 | |
| 32 | |
| 33 | |
| 34 | ## Sample Images: |
| 35 | |
| 36 | |
| 37 | The included images show how the effect modifies the respective footage. |
| 38 | img1.jpg: original image, which shows a grid of equally sized squares |
| 39 | |
| 40 | |
| 41 | img2.jpg: elastic_scale (parameters: 0.5|0|0|0.7125) applied to img1.jpg |
| 42 | |
| 43 | |
| 44 | img3.jpg: elastic_scale and 16:9 linear scale applied to img1.jpg |
| 45 | |
| 46 | |
| 47 | ### How to use with ffmpeg: |
| 48 | |
| 49 | Transform img1.jpg to img2.jpg:<br/> |
| 50 | ```ffmpeg -i img1.jpg -vf "frei0r=elastic_scale:0.5|0|0|0.7125" img2.jpg``` |
| 51 | |
| 52 | Transform img1.jpg to img3.jpg:<br/> |
| 53 | ```ffmpeg -i img1.jpg -vf "frei0r=elastic_scale:0.5|0|0|0.7125,scale=1920:1080,setsar=1:1" img3.jpg``` |