ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 12681|回复: 0

[Windows] 图片合成视频时报错

[复制链接]
发表于 2020-4-20 14:26:33 | 显示全部楼层 |阅读模式
本帖最后由 a1364606235 于 2020-4-20 14:35 编辑

会是图片的问题吗?把那些图片编辑一下就不会报错了!!
命令:ffmpeg -f image2 -framerate 1 -i  image%d.png -vcodec mpeg4  text.mp4ffmpeg version N-91510-gd134b8d85f Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.1 (GCC) 20180722
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 21.106 / 58. 21.106
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 26.100 /  7. 26.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, image2, from 'text.png':
  Duration: 00:00:08.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 800x800 [SAR 3779:3779 DAR 1:1], 1 fps, 1 tbr, 1 tbn, 1 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
[png @ 000001c651dbd140] Invalid PNG signature 0xFFD8FFE000104A46.
[png @ 000001c651dbeb40] Invalid PNG signature 0xFFD8FFE000104A46.
[png @ 000001c651dc1c80] Invalid PNG signature 0xFFD8FFE000104A46.
[png @ 000001c651dc2c80] Invalid PNG signature 0xFFD8FFE000104A46.
[png @ 000001c651dc39c0] Invalid PNG signature 0xFFD8FFE000104A46.
Output #0, mp4, to 'text.mp4':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 800x800 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 1 fps, 16384 tbn, 1 tbc
    Metadata:
      encoder         : Lavc58.21.106 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[png @ 000001c651e81b40] Invalid PNG signature 0xFFD8FFE000104A46.
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 5 times
frame=    2 fps=0.0 q=2.0 Lsize=     294kB time=00:00:01.00 bitrate=2408.8kbits/s speed=4.64x
video:293kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.294771%
Conversion failed!


感谢!感谢!感谢!感谢!感谢!




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-12-27 13:00 , Processed in 0.052549 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表