Using every Nth image in sequence to create video using FFmpeg

Kyle Jones

I have a series of timelapse images that I am using to generate a video. These images are large (1080p) so I am trying to take up as little space on my computer as possible. I currently have about 3500 images. If I use FFmpeg to generate a video at 30fps and 3500kb/s the file is about 50MB which is not really a feasible size to be used in PowerPoint presentations. So I would like to use FFmpeg to generate a video but only use every Nth frame from this image sequence in the video. I have found a bunch of posts that suggest ways to do this but all of which are taking an existing video and cutting it down. I have attempted using the select command to achieve this but to no avail. This is the command that I have been using:

ffmpeg -framerate 30 -i Image%08d.jpg -filter:v select='not(mod(n\,5))' -b:v 3500k Output.mp4

Anyone have any suggestions?

Gyan

You can just use CRF mode, instead of specifying a bitrate:

ffmpeg -framerate 30 -i Image%08d.jpg -crf 23 Output.mp4

Lower values are better but produce larger files. 18-28 is a decent range.


To use every 5th frame,

ffmpeg -framerate 30 -i Image%08d.jpg -vf "select='not(mod(n,5))',setpts=N/30/TB" -crf 23 Output.mp4

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Create video from a growing image sequence using FFMPEG

From Dev

Create video with an image and audio file using ffmpeg

From Dev

python script for convert video to image sequence using FFmpeg

From Dev

FFMpeg image sequence to video using VP9 encoder

From Dev

Convert image sequence to video using ffmpeg and list of files

From Dev

Android ffmpeg: create video from sequence of images using jni

From Dev

Inserting an image inside a video every few frames using ffmpeg

From Dev

Create a image every XX seconds of the video [FFMPEG]

From Dev

Image Sequence to Video using Javascript

From Dev

Create video from images and audio with varying image durations using FFMPEG?

From Dev

concatenate image and video using ffmpeg

From Dev

FFMPEG create image sequence of equal length to original video

From Dev

ffmpeg .iff image sequence to video

From Dev

Convert image sequence to video using Moviepy

From Dev

Concatenate a video, image and audio using ffmpeg

From Dev

Overlay a video over an image using ffmpeg

From Dev

Concatenate audio with image and video using ffmpeg

From Dev

Join Audio and Image -> Output as Video using FFmpeg

From Dev

Image to Video Conversion in Laravel Using FFMpeg

From Dev

Create thumbnail from video using ffmpeg

From Dev

Create thumbnail from a video directory using ffmpeg

From Dev

create video from jpg images using ffmpeg

From Dev

How to overlay sequence of frames on video using ffmpeg-python?

From Dev

images sequence to video and overlay at the same time using ffmpeg

From Dev

How to create side by side two video with padding and image background using ffmpeg?

From Dev

Extracting "one of every 10 frames" in a video using VLC or FFmpeg

From Dev

Selecting one every n frames from a video using ffmpeg

From Dev

Create video from image sequence

From Dev

Overlay image on video using ffmpeg with adjustable png image

Related Related

  1. 1

    Create video from a growing image sequence using FFMPEG

  2. 2

    Create video with an image and audio file using ffmpeg

  3. 3

    python script for convert video to image sequence using FFmpeg

  4. 4

    FFMpeg image sequence to video using VP9 encoder

  5. 5

    Convert image sequence to video using ffmpeg and list of files

  6. 6

    Android ffmpeg: create video from sequence of images using jni

  7. 7

    Inserting an image inside a video every few frames using ffmpeg

  8. 8

    Create a image every XX seconds of the video [FFMPEG]

  9. 9

    Image Sequence to Video using Javascript

  10. 10

    Create video from images and audio with varying image durations using FFMPEG?

  11. 11

    concatenate image and video using ffmpeg

  12. 12

    FFMPEG create image sequence of equal length to original video

  13. 13

    ffmpeg .iff image sequence to video

  14. 14

    Convert image sequence to video using Moviepy

  15. 15

    Concatenate a video, image and audio using ffmpeg

  16. 16

    Overlay a video over an image using ffmpeg

  17. 17

    Concatenate audio with image and video using ffmpeg

  18. 18

    Join Audio and Image -> Output as Video using FFmpeg

  19. 19

    Image to Video Conversion in Laravel Using FFMpeg

  20. 20

    Create thumbnail from video using ffmpeg

  21. 21

    Create thumbnail from a video directory using ffmpeg

  22. 22

    create video from jpg images using ffmpeg

  23. 23

    How to overlay sequence of frames on video using ffmpeg-python?

  24. 24

    images sequence to video and overlay at the same time using ffmpeg

  25. 25

    How to create side by side two video with padding and image background using ffmpeg?

  26. 26

    Extracting "one of every 10 frames" in a video using VLC or FFmpeg

  27. 27

    Selecting one every n frames from a video using ffmpeg

  28. 28

    Create video from image sequence

  29. 29

    Overlay image on video using ffmpeg with adjustable png image

HotTag

Archive