当前位置:   article > 正文

ffmpeg Could not find codec parameters for stream

could not find codec parameters

在arm上使用ffmpeg rtmp拉流时出现了下面异常:

[flv @ 0x1b0e120] Could not find codec parameters for stream 2 (Video: h264, none, 2560 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, flv, from 'rtmp://devlivepull.migucloud.com/live/T4VBFHD7_C0':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    encoder         :
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Data: none
    Stream #0:1: Audio: aac, 44100 Hz, stereo, 163 kb/s
    Stream #0:2: Video: h264, none, 2560 kb/s, 20 fps, 20 tbr, 1k tbn
 

 是因为运行configure时将decoders关闭了:--disable-decoders。就带上对应的解码器--enable-decoder=h264

重新编译运行结果正确:

 Metadata:
    fileSize        : 0
    audiochannels   : 2
    encoder         : 
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Data: none
    Stream #0:1: Audio: aac, 44100 Hz, stereo, 163 kb/s
    Stream #0:2: Video: h264 (High), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 2560 kb/s, 20 fps, 20 tbr, 1k tbn, 40 tbc
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/341924
推荐阅读
相关标签
  

闽ICP备14008679号