ffmpeg In the case of 1fps:

  • To convert frames to video, you can use the following command:
    • https://ottverse.com/create-video-from-images-using-ffmpeg/
    • ffmpeg -framerate 1 -pattern_type glob -i '*.png' -c:v libx264 -r 1 -pix_fmt yuv420p VIDEONAME.mp4
    • The glob option specifies that the files should be read in the order of their file names.
      • Note: If the file names have different lengths, they will not be ordered correctly. For example, if you have files named 2, 3, 4, 5…, the file named 100 will come before them. To ensure proper ordering, you should use leading zeros in the file names, such as 002, 003, 004, 005.
  • To convert a video to frames, you can use the following command:
    • ffmpeg -i VIDEONAME.mp4 -vf fps=1 out%d.png