Answers.Body: <p>Remove <code>-vf scale=800:-1</code> to avoid rescaling. Remove <code>-r 20</code> to avoid changing frame rate. You're transcoding from a stream in a MP4 to the GIF codec, so the bitrate will not remain the same, nor is there any sense in trying to keep it the same.</p>
  <p>A stream is scaled by using the scale filter in a simple filterchain <code>-vf</code> or a complex filterchain <code>-filter_complex</code> or using the <code>-s WIDTHxHEIGHT</code> output option.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-07T03:50:27.390Z
Answers.LastActivityDate: 2021-05-07T03:50:27.390Z
Answers.UserDisplayName: Gyan
Body: <p>I am new to FFmpeg. I just want to know how I could keep the original scale of the video. The original size of the video is that its frame width is 1820 while its frame height is 720. The original data rate is 1429 kbps, while the original total bitrate is 1589 kbps. The original frame rate is 30.00 frames/second.</p>
  <p>How can I keep the original ones. Like I mean is that what should be my version of this below:</p>
  <pre><code>ffmpeg -i Happy.mp4 -vf scale=800:-1 -r 20 Lucky.gif
  </code></pre>
  <p>You see I am trying to make a gif while keeping the original properties of the video, so please help me.</p>
  <p>Also, how does scaling in general work in FFmpeg?</p>
  
Tags: <video><ffmpeg><video-editor><editing><video-quality>
Title: How does scaling work in ffmpeg?
UserDisplayName: Sargon Torchrise
ThreadText: # How does scaling work in ffmpeg?
  
  (Asked by: username_0 on 2021-05-06)
  
  I am new to FFmpeg. I just want to know how I could keep the original scale of the video. The original size of the video is that its frame width is 1820 while its frame height is 720. The original data rate is 1429 kbps, while the original total bitrate is 1589 kbps. The original frame rate is 30.00 frames/second.
  
  How can I keep the original ones. Like I mean is that what should be my version of this below:
  
  ```
  ffmpeg -i Happy.mp4 -vf scale=800:-1 -r 20 Lucky.gif
  
  ```
  
  You see I am trying to make a gif while keeping the original properties of the video, so please help me.
  
  Also, how does scaling in general work in FFmpeg?
  
  **Tags:** video, ffmpeg, video-editor, editing, video-quality
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-07. Score: 1
  
  Remove `-vf scale=800:-1` to avoid rescaling. Remove `-r 20` to avoid changing frame rate. You're transcoding from a stream in a MP4 to the GIF codec, so the bitrate will not remain the same, nor is there any sense in trying to keep it the same.
  
  A stream is scaled by using the scale filter in a simple filterchain `-vf` or a complex filterchain `-filter_complex` or using the `-s WIDTHxHEIGHT` output option.
  
  
  ---
  
  