Linked Questions

10 votes
1 answer
43k views

FFmpeg - scale and pad [duplicate]

I have a video that I want to upscale but I don't want to lose the aspect ratio of the original video. My source file resolution is 864 x 692 and I want to upscale it to 1280 x 720 I found this on ...
Levan's user avatar
  • 1,199
2 votes
1 answer
6k views

FFMPEG scale video to 720px, add black fields at the top and bottom and output 720x1280 (portrait) [duplicate]

How to do that? I need a fast method to make Instagram moments of ready videos without using video editor.
mevsme's user avatar
  • 221
3 votes
1 answer
4k views

How to convert portrait to landscape video? [duplicate]

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 ...
Jefferson Villasan Josol's user avatar
0 votes
1 answer
2k views

FFMPEG and input video-any way to retrieve height & width dynamically? [duplicate]

What I am trying to do is set up one script that will check the ratio of height over width and then determine WHICH dimension to scale to fit HD(1920x1080). Is this possible using standard FFMPEG ...
Bachalo's user avatar
  • 2,697
0 votes
1 answer
1k views

How to scale a video and change position [duplicate]

Hi I have a 400*800 resolution video , I need a 800*400 video , So all i need to do is scale the video's with to 400 and change the y position so that I can see the scaled central part of the video. I ...
Jeffin's user avatar
  • 103
48 votes
2 answers
52k views

Create video with 5 images with fadeIn/out effect in ffmpeg

With 5 images I have to create a video of 60 seconds in ffmpeg, each image has to display for 15 seconds. after 15 seconds, first image has to fade out and 2nd image has to fade in, after that 2nd ...
user384847's user avatar
23 votes
3 answers
20k views

How can I fit a video to a certain size, but don't upscale it with FFmpeg?

I need to fit videos to 640x360 (the maximum my phone's player can handle), while also preserving aspect ratio, but I also want the video to be unchanged if it is smaller than 640x360 (no point in up-...
sashoalm's user avatar
  • 4,060
10 votes
2 answers
42k views

Video padding using ffmpeg

I am trying the padding option using ffmpeg, but I am getting an error. I am following this tutorial. Here's the error: ffmpeg version git-2013-11-13-129af66 Copyright (c) 2000-2013 the FFmpeg ...
Gururaj's user avatar
  • 225
13 votes
1 answer
14k views

Ffmpeg upscale and letterbox a video

I have a video with that is 480x360 in resolution, what I want to do is upscale this video to 1280:720 and not loos the original videos aspect ration ( letterbox the left and right side) So I know ...
Levan's user avatar
  • 1,199
14 votes
1 answer
24k views

How to concatenate two or more videos with different dimensions in FFMpeg?

I have two videos I would like to concatenate. First Video Dimensions = 480x640 Second Video Dimensions = 640x480 I tried concatenating them and received an error. I've included the full error below....
Daryl's user avatar
  • 529
7 votes
3 answers
13k views

Can ffmpeg encode video from frames of different sizes?

I have a toolchain that produces frames that are usually 1920x1080, but occasionally 1919x1080 or 1920x1079. (Yes, this is a bug. Please read on.) When ffmpeg encodes a video from it, with a ...
Camille Goudeseune's user avatar
7 votes
1 answer
13k views

Using ffmpeg, how can I convert an MP4, crop and resize to GIF?

I would like ffmpeg to grab a 1280x720 MP4 video file, crop to square size ratio, resize it to 640x640 The following two commands work for me with great GIF quality bu it's just missing the correct ...
Joel Z.'s user avatar
  • 173
6 votes
1 answer
11k views

What's the proper command syntax to change frame size/aspect ratio using ffmpeg?

I have a video that is 720x480 (3:2) that I would like to change to 720x406 (16:9) to match the other videos I have for a site. I have tried various command combinations, including: ffmpeg -i myfile....
eljefejb's user avatar
  • 161
6 votes
1 answer
15k views

ffmpeg to resize and concatenate multiple videos

I need to perform 3 operations on a source video (in sequence) 1 resize the source video from 320X 240 to 640X480 (200%) 2 add another video file before 3 add a 3rd video after In addition I ...
Bachalo's user avatar
  • 2,697
0 votes
1 answer
6k views

Error while merging two mp4 video files with ffmpeg

I have few mp4 video files that i wants to merge them. I am using this commands to convert .mp4 to .ts and then merge them together. referance ffmpeg -i part1.mp4 -bsf:v h264_mp4toannexb -f mpegts -...
JAGGADAKU's user avatar

15 30 50 per page