Results 1 to 4 of 4

Thread: create video from jpeg files...maintain aspect ratio of jpeg

  1. #1
    Join Date
    Oct 2007
    Beans
    20

    create video from jpeg files...maintain aspect ratio of jpeg

    I am using the following command to create a video of a bunch of jpeg files. The problem is that some of the jpegs are portrait and others are landscape. Ffmpeg is stretching the portrait images. Is it possible to maintain aspect ratio of the jpegs... perhaps put black bars on the portrait images using ffmpeg?

    ffmpeg -r .75 -f image2 -i Image%d.jpg output.mp4

  2. #2
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: create video from jpeg files...maintain aspect ratio of jpeg

    I think there's a -aspect parameter in ffmpeg.

    ie

    Code:
    -aspect 4:3
    probably try it.

  3. #3
    Join Date
    Oct 2007
    Beans
    20

    Re: create video from jpeg files...maintain aspect ratio of jpeg

    I decided to use imagemagick to fix my problem

  4. #4
    Join Date
    Sep 2009
    Beans
    2,333

    Re: create video from jpeg files...maintain aspect ratio of jpeg

    do not see that helping
    all the pics must be in the same mode portrait or landscape
    1 of the 2 but not both at the same time

    1 is say 640x480 the other is 480x640
    wide&fat thin&wide
    best way i can say what it is

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •