Unable to set arguments to convert image files to video

0

I've a bunch of files in a folder with the following format:

center_2016_12_01_13_%2d_%2d_%3d.jpg

I'm trying to use FFmpeg to convert into a video with this command:

ffmpeg -n -i "center_2016_12_01_13_%2d_%2d_%3d.jpg" output.m4v

But I keep getting this error:

center_2016_12_01_13_%2d_%2d_%3d.jpg: No such file or directory

Here's an example of an image that I have: center_2016_12_01_13_41_15_788.jpg

What is missing here? I checked that I run this command inside the folder.

goelakash

Posted 2019-09-15T13:42:38.717

Reputation: 135

1The images need to be consecutively numbered. Use the concat demuxer instead. See superuser.com/a/1379084 – Gyan – 2019-09-15T15:08:55.493

Answers

0

The problem with your input file mask

center_2016_12_01_13_%2d_%2d_%3d.jpg

is that it use multiple placeholders — %2d %2d %3d.

You have to rename your files in such a way that you can use only one placeholder.


My tip how to reach it:

Use Total Commander Multi-Rename Tool (see How to Rename Many Files at Once With Total Commander):

  • copy your files into a new directory (for safety)
  • sort them by name (to keep their order)
  • select them all (Ctrl+A)
  • launch Multi-Rename Tool (Ctrl+M)
  • in the Multi-Rename Tool window: see the picture:
  • enter image description here

MarianD

Posted 2019-09-15T13:42:38.717

Reputation: 2 572