AnswerBun.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!

Related Questions

How to use FFmpeg Command for Reverse Video?

1  Asked on November 11, 2021 by ravi-vaghela

   

Adobe Premiere Pro Green Lines Problem

1  Asked on October 28, 2021 by afel

 

HLS.js player dropping frames at discontinuities in HLS stream

1  Asked on October 28, 2021 by james-mc

   

How to track and zoom in AE

1  Asked on October 28, 2021 by egorst

 

Does HEVC Support 16-Bit RGB Color Format?

2  Asked on October 28, 2021 by user30535

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP