2012-07-25 88 views
17

在执行命令 ffmpeg -i /path/to/video.mp4我得到一个错误:ffmpeg的10.04找不到编解码器参数

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 
+2

@Randy将有用,有一个想法,为什么这是脱离主题 – geotheory 2013-05-20 10:41:30

+9

@Randy关闭它真的没有帮助任何人,因为它是相当受欢迎。你可以将它移到另一个站点,如果你认为它不属于这个,耶稣。 – Dmitry 2013-05-28 17:53:02

+1

我有同样的问题,并增加分析和探测无助。我最终通过首先将所有图像文件转换为jpeg格式来解决问题。 – xslittlegrass 2014-05-13 16:54:18

回答

13

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

+3

我在这里有一些很重的情况,即使'-analyzeduration 999999999 -probesize 999999999'不起作用。 – rekire 2012-10-05 12:30:36

+0

如果您发现它,@rekire会发布解决方案! – Dmitry 2012-10-05 18:04:29

+13

我的解决方案是'ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i/path/to/video.mp4'。 2147483647是max_int – 2013-04-21 19:02:41

相关问题