ffmpeg是';t接受";%d";格式?

ffmpeg是';t接受";%d";格式?,ffmpeg,Ffmpeg,因此,我有一个名为motor\u animate\u 000.gif,motor\u animate\u 001.gif,等等的目录 我运行: ffmpeg -r 30 -i motor_animate_%03d.gif -r 30 motor.mpg 我希望得到一个名为motor.mpg的文件,但我得到的是通常的一堆打印输出,最后是: motor_animate_%03d.gif: No such file or directory 什么?这在Ubuntu 14.04中起作用,但现在不起作

因此,我有一个名为
motor\u animate\u 000.gif
motor\u animate\u 001.gif
,等等的目录

我运行:

ffmpeg -r 30 -i motor_animate_%03d.gif -r 30 motor.mpg
我希望得到一个名为
motor.mpg
的文件,但我得到的是通常的一堆打印输出,最后是:

motor_animate_%03d.gif: No such file or directory
什么?这在Ubuntu 14.04中起作用,但现在不起作用。我所做的似乎与ffmpeg手册页一致。我现在正式不知所措了。提前谢谢

以下是我尝试下面建议的备选方案时得到的结果:

tim@Servo:~/Documents/Movies/dcmotor/animation$ ffmpeg -f image2 -framerate 30 -i motor_animate_%03d.gif motor.mpg
ffmpeg version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[image2 @ 0x20bd420] Could not find codec parameters for stream 0 (Video: none, none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
motor_animate_%03d.gif: could not find codec parameters
Input #0, image2, from 'motor_animate_%03d.gif':
  Duration: 00:00:04.03, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: none, none, 30 fps, 30 tbr, 30 tbn, 30 tbc
No decoder for stream #0:0, filtering impossible
Error opening filters!
不支持一系列输入文件。您需要手动告诉它使用以下选项:

  • 图像文件解复用器使用
    -framerate
    而不是
    -r

  • 如果希望输出与输入相同,则不需要两次声明帧速率,因此我删除了输出
    -r


这让我走得更远。现在它出错了:“找不到流0的编解码器参数(视频:无,无):未知的编解码器考虑增加‘分析’和‘概率’选项的值,MoojiActudio%%3D.GIF:找不到编解码器参数。”@TimWescott我必须查看您的实际命令和完整的控制台输出才能提供任何建议。它不适合注释。@TimWescott我不想让您尝试将它适合注释。你可以添加到pastebin网站的链接,也可以编辑你的问题。我编辑了问题,但忘了提到我编辑了。哦。
ffmpeg -f image2 -framerate 30 -i motor_animate_%03d.gif motor.mpg