【问题标题】:ffmpeg 10.04 Could Not Find Codec Parameters [closed]ffmpeg 10.04 找不到编解码器参数 [关闭]
【发布时间】:2012-07-24 10:44:30
【问题描述】:

执行命令时出现错误 ffmpeg -i /path/to/video.mp4:

  ffmpeg version git-2012-07-24-93342de Copyright (c) 2000-2012 the FFmpeg developers
      built on Jul 24 2012 23:55:41 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
      configuration: --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-vdpau --enable-version3 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab
      libavutil      51. 65.100 / 51. 65.100
      libavcodec     54. 44.100 / 54. 44.100
      libavformat    54. 20.100 / 54. 20.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  3.100 /  3.  3.100
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a1b240] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), 1280x720): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    /path/to/video.mp4: could not find codec parameters

【问题讨论】:

    标签: android ffmpeg ubuntu-10.04 x264


    【解决方案1】:

    调整-probesize 和/或-analyzeduration。

    我正在测试的文件实际上已损坏。但如果有人遇到这个问题,例如将-probesize 和-analyzeduration 设置为100 和10000000 可能会有所帮助。

    来自@DiverseAndRemote.com 的热门评论

    我的解决方案是

    ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i /path/to/video.mp4 
    

    2147483647 是 max_int

    【讨论】:

    • 我这里有一些严重的案例,即使-analyzeduration 999999999 -probesize 999999999 也不起作用。
    • @rekire 如果您找到解决方案,请发布!
    • 我的解决方案是ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i /path/to/video.mp4。 2147483647 是 max_int
    • @DiverseAndRemote.com 这似乎对我有用。由于您的评论如此受欢迎,我编辑了答案并将其添加到那里,以帮助其他人登陆这里。
    猜你喜欢
    • 2011-04-13
    • 2017-08-24
    • 2014-05-25
    • 2021-03-01
    • 2017-07-16
    • 2022-01-17
    • 2013-10-27
    • 2012-06-15
    • 2020-08-01
    相关资源
    最近更新 更多