The conversion time is certainly significant, but given the file weight gains, it overrides the issue of conversion time which for me is not important, as I let the conversion work in the background while I do other things on the computer and at night the conversion does not bother me, as my computer does not make noise even at high loads. This following piece will resize a video to maximum 1280 pixels in height, but doesn't take the width into account, it just keeps the ratio. The options available by libsvtav1 in FFmpeg do not allow me to get the result I want, I have either small files, but of mediocre quality or good quality files, but of enormous weight.īy passing the video tracks to SvtAv1EncApp, I get the weight gains I mentioned earlier in this post and the quality of the video tracks is very good. The part of code that is actually relevant is the scale portion. lets say reduce the width/height to half you can do. If you want to scale based on input size e.g. ffmpeg -i input.avi -vf scale'720:-1' output.avi. and if you want to retain aspect ratio just give height as -1 and it will automatically resize based on the width. Example command: ffmpeg -i IN.png -vf 'scale1280:720:forceoriginalaspectratiodecrease,pad1280:720:(ow-iw)/2:(oh-ih)/2' OUT.jpg See this answer for more details. ffmpeg -i input.avi -vf scale'720:480' output.avi. There is only in smaller format (512x280) where I have a loss of 5,5 % in file size compared to H265. It is also possible to resize an image to fit inside some dimensions and letterbox the rest. In DVD format (720 × 576) I gain another 20% in file size compared to H265. In 720p I gain 30 to 45% in file size compared to H265. Even for resolutions lower than 1080p, there is one big advantage, and that is the file weight.
0 Comments
Leave a Reply. |