Linked Questions
25 questions linked to/from Resizing videos with ffmpeg/avconv to fit into static sized player
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 ...
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.
4
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 ...
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 ...
0
votes
1
answer
2k
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 ...
49
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 ...
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-...
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 ...
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 ...
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....
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 ...
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 ...
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....
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 ...
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 -...
4
votes
1
answer
3k
views
How to split video files upon detected change in resolution? (ie. recorded streams containing multiple widths)
I have many video files (flv/mp4) that change resolution mid-stream (720p/1080p/640).
I would like to use something like ffmpeg to automatically detect the change in resolution and split the videos ...
2
votes
1
answer
5k
views
ffmpeg - joining 2 videos to play one after another
I'm trying to join two video files together - I'm piping the commands through PHP exec() as these videos are selected by the user. I can get it working, in that it does output a video of the correct ...
0
votes
2
answers
2k
views
How to use aspect parameter of pad in ffmpeg?
I am trying to convert a large number of files from many sources into a standard format of 426x240 using ffmpeg with the following arguments:
-y -i input.mov -ac 2 -ab 96k -ar 44100 -vcodec libx264 -...
1
vote
2
answers
2k
views
FFMpeg - JPG/PNG images render in incorrect orientation in MP4 output file and can't be combined in same MP4 video
I am a new user to FFMpeg.
I want a command-line that will create a basic slideshow MP4 video from a folder of JPG and/or PNG images. The images are sourced from either digital cameras/smartphones or ...
0
votes
1
answer
1k
views
using ffmpeg on both landscape and portait pics
I'm using the following command:
ffmpeg -i port001.jpg -vf "scale=100:-1" /tmp/1/port_converted_100-1.jpg
It is working fine on landscape pics but it automatically rotate the portrait pics.
Any idea ...
0
votes
1
answer
911
views
FFmpeg concatenation dropping part of first video
I am using ffmpeg.exe to concatenate two videos together. The first video is essentially a five-second intro rendered at 1080p at 25 frames per second, and it will always stay the same format. The ...
1
vote
1
answer
837
views
Converting Unix script to Windows batch for FFmpeg resizing
I want to reduce video dimension to 720:480 & keep original aspect ration when input video width > 720 else, keep original dimension and aspect ratio.
I am trying to reproduce this script in a ...
0
votes
1
answer
465
views
How to insert a video intro with ffmpeg
I want to insert a video intro, i use below filter to generate multiple resolution with watermark but couldn't figure out how to add intro.
{executable} -i {fileInput} -i {watermark} -filter_complex &...
0
votes
1
answer
420
views
FFMPEG need help to optimize the command
I'm doing multiple operations with FFMPEG.
I have 5 files.
intro_image.jpg: This is an image of any resolution but will be jpeg.
intro_audio.mp3: This audio is static input of duration 7 seconds.
...
0
votes
0
answers
162
views
Resize images and fit into frames in FFMPEG
I want to resize several images of different sizes.
I need to fit it all into the frame.
But it completely fill the height or width. Pixels are all saved.
Maintaining proportions. Increase or decrease ...