Changes between Version 12 and Version 13 of Scaling


Ignore:
Timestamp:
Nov 8, 2020, 10:21:43 AM (6 years ago)
Author:
huupoke12
Comment:

Use the correct Multiplication Sign

Legend:

Unmodified
Added
Removed
Modified
  • Scaling

    v12 v13  
    66}}}
    77
    8 In all the examples, the starting image (input.jpg) will be this one (535⨉346 pixels):
     8In all the examples, the starting image (input.jpg) will be this one (535×346 pixels):
    99
    1010[[Image(input.jpg)]]
    … …  
    1212== Simple Rescaling ==
    1313
    14 If you need to simply resize your video to a specific size (e.g 320⨉240), you can use the scale filter in its most basic form:
     14If you need to simply resize your video to a specific size (e.g 320×240), you can use the scale filter in its most basic form:
    1515{{{
    1616ffmpeg -i input.avi -vf scale=320:240 output.avi
    … …  
    3434}}}
    3535
    36 will set the width of the output image to 320 pixels and will calculate the height of the output image according to the aspect ratio of the input image. The resulting image will have a dimension of 320⨉207 pixels.
     36will set the width of the output image to 320 pixels and will calculate the height of the output image according to the aspect ratio of the input image. The resulting image will have a dimension of 320×207 pixels.
    3737
    3838[[Image(output_320.png)]]
    … …  
    4444}}}
    4545
    46 The output will now be 320⨉206 pixels.
     46The output will now be 320×206 pixels.
    4747
    4848== Using Variables ==
    … …  
    8686* `increase`: The output video dimensions will automatically be increased if needed.
    8787
    88 This allows you to force the image to fit into a 320x240 box, downscaling it with the correct aspect ratio:
     88This allows you to force the image to fit into a 320×240 box, downscaling it with the correct aspect ratio:
    8989
    9090{{{
    … …  
    9292}}}
    9393
    94 This produces our 320x207 image that we had seen before.
     94This produces our 320×207 image that we had seen before.
    9595
    9696[[Image(output_320.png)]]