|
|
@ -641,7 +641,7 @@ The following example shows how to use @command{ffmpeg} for creating a |
|
|
|
sequence of files @file{img-001.jpeg}, @file{img-002.jpeg}, ..., |
|
|
|
sequence of files @file{img-001.jpeg}, @file{img-002.jpeg}, ..., |
|
|
|
taking one image every second from the input video: |
|
|
|
taking one image every second from the input video: |
|
|
|
@example |
|
|
|
@example |
|
|
|
ffmpeg -i in.avi -vsync 1 -r 1 -f image2 'img-%03d.jpeg' |
|
|
|
ffmpeg -i in.avi -vsync cfr -r 1 -f image2 'img-%03d.jpeg' |
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
|
Note that with @command{ffmpeg}, if the format is not specified with the |
|
|
|
Note that with @command{ffmpeg}, if the format is not specified with the |
|
|
@ -649,12 +649,12 @@ Note that with @command{ffmpeg}, if the format is not specified with the |
|
|
|
format, the image2 muxer is automatically selected, so the previous |
|
|
|
format, the image2 muxer is automatically selected, so the previous |
|
|
|
command can be written as: |
|
|
|
command can be written as: |
|
|
|
@example |
|
|
|
@example |
|
|
|
ffmpeg -i in.avi -vsync 1 -r 1 'img-%03d.jpeg' |
|
|
|
ffmpeg -i in.avi -vsync cfr -r 1 'img-%03d.jpeg' |
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
|
Note also that the pattern must not necessarily contain "%d" or |
|
|
|
Note also that the pattern must not necessarily contain "%d" or |
|
|
|
"%0@var{N}d", for example to create a single image file |
|
|
|
"%0@var{N}d", for example to create a single image file |
|
|
|
@file{img.jpeg} from the input video you can employ the command: |
|
|
|
@file{img.jpeg} from the start of the input video you can employ the command: |
|
|
|
@example |
|
|
|
@example |
|
|
|
ffmpeg -i in.avi -f image2 -frames:v 1 img.jpeg |
|
|
|
ffmpeg -i in.avi -f image2 -frames:v 1 img.jpeg |
|
|
|
@end example |
|
|
|
@end example |
|
|
|