TransWikia.com

Scale video without keeping aspect ratio in ffmpeg

Video Production Asked by Bakhanov A. on October 28, 2021

I want to make a video ‘wide’, so the width is increased and the height stays the same as of the input image. I use the following command: ffmpeg -i test.mp4 -vf scale="1000:200" output.mp4. It just does not work. The most interesting thing that it works with png images but not with videos.
Example: video before:enter image description here

After: enter image description here

One Answer

I resolved this issue by setting the attached SAR (Sample/Storage Aspect Ratio):

ffmpeg -i test.mp4 -vf scale=1000:200,setsar=1 output.mp4

Answered by Pierre de LESPINAY on October 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP