<p><code>zoompan</code>, by default, scales output to 1280x720 (and at 25 fps). </p>

<p>Use</p>

<pre><code>ffmpeg -loop 1 -f image2 -i 'IMG_8444_edit.jpg' -vf "zoompan=z='zoom+0.001:s=WxH,scale=hd1080" -c:v libx264 -preset fast -t 5 -crf 22 -y 'zoomout.mp4'
</code></pre>

<p>where WxH is your required output resolution from the filter.</p>

CC BY-SA 3.0
2016-12-15T20:44:14.890Z
Yes awesome! That was the trick! Question: it looks like the pan zoom filter has some other parameters such as input resolution... If I set that to the size of the still image, would that increase the output quality even further?
M Leonard
CC BY-SA 3.0
2016-12-16T05:16:59.773Z
No, you can use the input width and height in expressions, but zoompan will work with the original resolution before it resizes.
Gyan
CC BY-SA 3.0
2016-12-15T06:14:53.780Z
2016-12-15T06:14:53.780Z
Gyan
<p>I'm trying to take an image, and apply a slow 'zoom' to the image (think Ken Burns). The animation looks correct, but the image looks extremely low resolution (when the original image is a 5k still). Why is this? Command below:</p>

<pre><code>ffmpeg -loop 1 -f image2 -i 'IMG_8444_edit.jpg' -vf "zoompan=z='zoom+0.001" -c:v libx264 -preset fast -t 5 -crf 22 -s 1920x1080 -y 'zoomout.mp4'
</code></pre>

CC BY-SA 3.0
2016-12-15T01:14:33.520Z
Do you have a sample of the problem that you can post?
Michael Liebman
<ffmpeg>
ffmpeg - image with zoom - looks low resolution
M Leonard
# ffmpeg - image with zoom - looks low resolution

(Asked by: username_0 on 2016-12-14)

I'm trying to take an image, and apply a slow 'zoom' to the image (think Ken Burns). The animation looks correct, but the image looks extremely low resolution (when the original image is a 5k still). Why is this? Command below:
ffmpeg -loop 1 -f image2 -i 'IMG_8444_edit.jpg' -vf "zoompan=z='zoom+0.001" -c:v libx264 -preset fast -t 5 -crf 22 -s 1920x1080 -y 'zoomout.mp4'

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Do you have a sample of the problem that you can post?  

---

## 1 answers

### Answer by username_2 on 2016-12-15. Score: 0 | Accepted answer

zoompan, by default, scales output to 1280x720 (and at 25 fps). 
Use
ffmpeg -loop 1 -f image2 -i 'IMG_8444_edit.jpg' -vf "zoompan=z='zoom+0.001:s=WxH,scale=hd1080" -c:v libx264 -preset fast -t 5 -crf 22 -y 'zoomout.mp4'

where WxH is your required output resolution from the filter.

> **Comments:**
> **username_0**: Yes awesome! That was the trick! Question: it looks like the pan zoom filter has some other parameters such as input resolution... If I set that to the size of the still image, would that increase the output quality even further?  
> **username_2**: No, you can use the input width and height in expressions, but zoompan will work with the original resolution before it resizes.  

---

