FFMPEG command problem...

Hi,

Currently having some trouble with FFMPEG....

I have the following files:

0001_.gif
0002_.gif
.............
0584_.gif
0585_.gif
0586_.gif
0587_.gif
0588_.gif
0589_.gif
0590_.gif
0591_.gif

And am trying to use ffmpeg to join them to a video as follows:

ffmpeg -r 20 -f image2 -i %%03d.gif -f mp4 -q:v 0 -vcodec mpeg4 -r 20 myVideo.mp4

However I keep getting this:

C:\Users\Pascal\Desktop\folder>ffmpeg -r 20 -f image2 -i %03d.gif -f mp4 -q:v 0
-vcodec mpeg4 -r 20 myVideo.mp4
ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  6 2011 22:02:08 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 24. 0 / 51. 24. 0
  libavcodec   53. 28. 0 / 53. 28. 0
  libavformat  53. 19. 0 / 53. 19. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 47. 0 /  2. 47. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
%03d.gif: No such file or directory

Any idea what I might be doing wrong ?

Thanks in advance:

pasc

You've specified 3 decimal digits, but the gifs in question have 4 digits, followed by an underscore. I think %%04d_.gif might be what you need.

1 Like

Ah ! OK, so that was why :slight_smile:

Thanks.

1 Like

Sorry for the double post, but how would you go on about such mess ?:

Would you be so kind as to phrase your problem precisely in an understandable way?

I would rename all two and three digit numbers into four digit numbers, then use %%04d_tiled.gif

0%%d_tiled.gif might be worth a shot though.

Yeah, I use Aren to do the "rename to 4 digits" part.

I'll try your suggestion though, it would save me a lot of time.

Firing up Aren all the time is very unsmooth and costs a lot of time.

Thanks again !