I'm using FFmpeg and I'm aware that it is the fastest offline video and audio converter. Suddenly I've tried to convert portrait videos into landscape but upon checking its Outcome, it changes its aspect ratio and the video become chubby and that is what I don't like at all. I want to convert portrait videos into landscape video that maintains the aspect ratio and its orientation as portrait.
Asked
Active
Viewed 3,032 times
2
-
1Please post the command that you've used – user10191234 Jan 09 '21 at 13:26
-
ffmpeg -y -i "/storage/0040-18A0/FFMPEG/input.mp4" -s 720x480 -target ntsc-dvd -ps 1000000000 -aspect 4:3 "/storage/0040-18A0/FFMPEG/output.mpeg" – Jefferson Villasan Josol Jan 09 '21 at 15:28
1 Answers
3
If I understand your question correctly I think that you need to pillarbox your video. It will upscale it and add vertical black bars (pillars).
ffmpeg -i input.mp4 -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1:color=black" output.mp4
user10191234
- 413
- 1
- 4
- 15
-
Okay, let me try this one and see the outcome. Can i change your given resolution to whatever i want? – Jefferson Villasan Josol Jan 10 '21 at 01:28
-
[swscaler @ 04cdb4e0] deprecated pixel format used, make sure you did set range correctly [Parsed_pad_1 @ 046be4e0] Negative values are not acceptable. [Parsed_scale_0 @ 046be560] Failed to configure input pad on Parsed_pad_1 Error opening filters! – Svetoslav Marinov Aug 05 '22 at 11:26