[FFmpeg-user] Still Image tifs to uncompressed video

Michael Bradshaw mbradshaw at sorensonmedia.com
Sun Aug 12 17:35:23 CEST 2012

On Sun, Aug 12, 2012 at 9:29 AM, Michael Bradshaw
<mbradshaw at sorensonmedia.com> wrote:
> ffmpeg -r 30 -i %d.png -vf
> "scale=min(3360/iw\,1080/ih)*iw:min(3360/iw\,1080/ih)*ih,pad=3360:1080:(3360-(min(3360/iw\,1080/ih)*iw))/2:(1080-(min(3360/iw\,1080/ih)*ih))/2"
> out.mp4
> My largest image was 3360x1080, which is why you see 3360 and 1080 so
> much. You can replace those numbers with the width and height of your
> own largest image (or bigger, if you want). This scale and pad command
> will add black letterboxing and pillaring as necessary to the video
> without resizing any image

Actually, I lied. This does rescale images (forgot I did that on this
one) so they fill the frame as much as they can. A nonscaling version
would be something more like:

ffmpeg -r 30 -i %d.png -vf
"pad=3360:1080:floor((3360-iw)/2):floor((1080-ih)/2)" out.mp4

More information about the ffmpeg-user mailing list