![]() ![]() For example, this command line:įfmpeg -i input.jpg -vf scale=320:-1 output_320.png If we'd like to keep the aspect ratio, we need to specify only one component, either width or height, and set the other component to -1. 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:įfmpeg -i input.avi -vf scale=320:240 output.aviįfmpeg -i input.jpg -vf scale=320:240 output_320x240.pngĪs you can see, the aspect ratio is not the same as in the original image, so the image appears stretched. In all the examples, the starting image (input.jpg) will be this one (535×346 pixels): The default for matrix in untagged input and output is always limited BT.601.One should always remember that YCbCr 4:4:4 8 bit is not enough to preserve RGB 8 bit, YCbCr 4:4:4 10 bit is required.Dither can be turned off using -vf scale=sws_dither=none.Limited range RGB is not supported at all. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |