ffmpeg 制作丢失帧数的 mov

ffmpeg 制作丢失帧数的 mov

我有 1440 tga 文件,我想将它们转换为 24 fps mov。

这是我使用的命令:

/usr/local/homebrew/bin/ffmpeg -y -f image2 -pattern_type glob -i '/Users/ninhenzo64/Documents/Projects/Insta 18/shots/common/images/train/spiral_v023/masterLayer/common_spiral_v023.*.tga' -c:v libx264 -preset veryslow -crf 0 -pix_fmt yuv420p -r 24.0 -s 640x640 '/Users/ninhenzo64/Documents/Projects/Insta 18/shots/common/images/train/spiral_v023/masterLayer/common_spiral_v023.mov'

生成的 mov 为 24 fps,但缺少一些帧,ffprobe 说它只有 57.67 秒 - 应该是 60.0 秒。此外,文件中的动作不流畅,很不流畅,好像有丢帧的情况。

~> ffprobe '/Users/ninhenzo64/Documents/Projects/Insta 18/shots/common/images/train/spiral_v023/masterLayer/common_spiral_v023.mov'
ffprobe version 2.3 Copyright (c) 2007-2014 the FFmpeg developers
  built on Jul 19 2014 11:52:35 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/homebrew/Cellar/ffmpeg/2.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --extra-cflags='-I/usr/local/homebrew/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/ninhenzo64/Documents/Projects/Insta 18/shots/common/images/train/spiral_v023/masterLayer/common_spiral_v023.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf55.48.100
  Duration: 00:00:57.67, start: 0.000000, bitrate: 25460 kb/s
    Stream #0:0(eng): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv420p, 640x640, 25459 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc55.69.100 libx264

谁能告诉我出了什么问题?

相关内容