Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-15T20:44:14.890Z
Answers.Text: 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?
Answers.UserDisplayName: M Leonard
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-16T05:16:59.773Z
Answers.Text: No, you can use the input width and height in expressions, but zoompan will work with the original resolution before it resizes.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-15T06:14:53.780Z
Answers.LastActivityDate: 2016-12-15T06:14:53.780Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-15T01:14:33.520Z
Comments.Text: Do you have a sample of the problem that you can post?
Comments.UserDisplayName: Michael Liebman
Tags: <ffmpeg>
Title: ffmpeg - image with zoom - looks low resolution
UserDisplayName: M Leonard
ThreadText: # 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.  
  
  ---
  
  