【问题标题】:FFMPEG Video encoding errorFFMPEG 视频编码错误
【发布时间】:2012-06-14 01:57:55
【问题描述】:

我正在尝试使用 ffmpeg 对我的视频进行编码。我已将每个帧的输出作为单独的图像,然后我使用 ffmpeg 将它们加入到视频中。我从源代码编译了ffmpeg。 这是我使用的命令和我一直遇到的错误!

---:/media/New Volume/temp$ ffmpeg -f image2 -i image%1d.png -vcodec libx264 \
-preset ultrafast -crf 15 output.mp4
ffmpeg version git-2012-03-24-2571506 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 24 2012 03:47:02 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame \
    --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora \
    --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 \
    --enable-x11grab
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
// ERORRS:: 
[png @ 0xa4d5120] Missing png signature
[image2 @ 0xa4ceb00] decoding for stream 0 failed
[image2 @ 0xa4ceb00] Could not find codec parameters (Video: png)
image%1d.png: could not find codec parameters    

【问题讨论】:

  • 尝试使用另一张图片,看看发生了什么

标签: ffmpeg


【解决方案1】:

读取您的图像帧时出错。

它们可以用其他软件正确打开吗?他们的名字是image1.pngimage2.png等吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-02-23
    • 2011-04-15
    • 1970-01-01
    • 2011-04-12
    • 2014-03-15
    • 1970-01-01
    • 2018-10-10
    • 2011-10-30
    相关资源
    最近更新 更多