0

I have a question,How can I create multiple thumbnail at different times of video? Mean operate like this schematic:

  input.mp4 =>  00:10:00 => 1.jpg
  input.mp4 =>  00:20:00 => 2.jpg
  input.mp4 =>  00:25:00 => 3.jpg

I mean, with one command I produce multiple thumbnails from different frames. Is there any recommendation? Can anyone help me?

Parsa Saei
  • 1,263
  • 5
  • 21
  • 38

2 Answers2

3

Use

ffmpeg -ss 10:00 -i in.mp4 \
       -ss 20:00 -i in.mp4 \
       -ss 25:00 -i in.mp4 \
         -map 0:v:0 -vframes 1 1.jpg \
         -map 1:v:0 -vframes 1 2.jpg \
         -map 2:v:0 -vframes 1 3.jpg
Gyan
  • 85,394
  • 9
  • 169
  • 201
  • It returns this : `Automatic encoder selection failed for output stream #0:1. Default encoder for format image2 (codec none) is probably disabled. Please choose an encoder manually. Error selecting an encoder for stream 0:1` – Parsa Saei Mar 01 '18 at 07:22
  • Thank you so much. – Parsa Saei Mar 01 '18 at 07:54
  • When I'm using this command on some files, the ffmpeg output is : `Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)` – Parsa Saei Jul 17 '18 at 06:31
0

Although it does not create thumbnails at specific positions, I think you may find it useful for your use case my answer to this other question where multiple thumbnails are made at regular intervals