Changes between Version 10 and Version 11 of Slideshow


Ignore:
Timestamp:
Nov 24, 2013, 4:42:38 PM (6 years ago)
Author:
slhck
Comment:

alternative fps option for specifying rate, see ticket #3164

Legend:

Unmodified
Added
Removed
Modified
  • Slideshow

    v10 v11  
    11== Frame rates ==
    22
    3 This will create a video slideshow (using the encoder `libx264`) from series of numerically sequential PNG images named `img001.png`, `img002.png`, `img003.png`, etc.
     3This will create a video slideshow (using the encoder `libx264`) from series of numerically sequential PNG images named `img001.png`, `img002.png`, `img003.png`, etc. '''Important:''' All images in a series need to be of the same size and format.
    44
    5 In this example each image will have a duration of 5 seconds (the inverse of 1/5 frames per second). By using a separate `-r` (frames per second) for the input and output you can control the duration at which each input is displayed and tell ffmpeg the frame rate you want for the output file. If the input `-r` is lower than the output `-r` ffmpeg will duplicate frames to reach your desired output frame rate. If the input `-r` is higher than the output `-r` ffmpeg will drop frames to reach your desired output frame rate.
     5You can specify two frame rates:
    66
    7 If you want the input and output frame rates to be the same, then just declare an input `-r` and the output will inherit the same value.
     7* The rate according to which the images are read, by setting `-r` before `-i`. The default for reading input is `-r 25` which will be set if no `-r` is specified.
     8* The output frame rate for the video stream, by setting `-r` after `-i`, or using the `fps` filter. If you want the input and output frame rates to be the same, then just declare an input `-r` and the output will inherit the same value.
    89
    9 Default for input is `-r 25` which will be used if no `-r` is used.
     10By using a separate `-r` (frames per second) for the input and output you can control the duration at which each input is displayed and tell ffmpeg the frame rate you want for the output file. If the input `-r` is lower than the output, `-r` ffmpeg will duplicate frames to reach your desired output frame rate. If the input `-r` is higher than the output `-r` ffmpeg will drop frames to reach your desired output frame rate.
     11
     12In this example each image will have a duration of 5 seconds (the inverse of 1/5 frames per second). The video stream will have a frame rate of 30 fps, by duplicating the frames accordingly:
    1013
    1114{{{
     
    1316}}}
    1417
    15 This will create a slideshow in which each image has a duration of 15 seconds:
     18If your video does not show the frames correctly, setting the `fps` filter instead of the output framerate should work:
    1619
    1720{{{
    18 ffmpeg -r 1/15 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
     21ffmpeg -r 1/5 -i img%03d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p out.mp4
    1922}}}
    2023
    21 '''Important:''' All images in a series need to be of the same size and format.
    2224
    2325== Color space conversion and chroma sub-sampling ==