0

This answer shows how i can glue the pictures into one.

Is it possible to take a certain amount of frames (for example 10) and put them together in one picture? With a single command.

Nik
  • 1
  • 3

1 Answers1

1

Your mentioning frames so i assume you mean frames from the same movie and you would like to use ffmpeg and lets also assume output would be jpeg:

ffmpeg -i <some-movie> -frames 1 -vf "select=not(mod(n\,200)),tile=10x1" image.jpg

explanation:

  • frames 1 from the manual: Stop writing to the stream after 1 frames.
  • select=not(mod(n\,200)) select every 200th frame.
  • tile=10x1 Make a filmstrip 10 images wide and 1 image height.

Change the selection and tile values to your needs.

Rens
  • 71
  • 5
  • `-frames x` means to output upto `x` frames and exit. Nothing to do with filter inputs. – Gyan Oct 25 '17 at 18:01
  • Your right, changed the answer. – Rens Oct 25 '17 at 19:08
  • Yes, it works. Thanks! It is possible to somehow speed up the process? For example, using -ss before -i ? – Nik Oct 26 '17 at 07:10
  • Yes that would save some time. It might also skip images you need. Depending on the source codec and resolution i get roughly a 1 to 10 ratio. 10 minute movie takes 1 minute to create the filmstrip. – Rens Oct 26 '17 at 11:59